diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md index bdf9d048e8..8d42a0ab27 100644 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -1,4 +1,5 @@ - [ ] I have read and followed the [Contribution Guidelines](https://git.eden-emu.dev/eden-emu/eden/src/branch/master/CONTRIBUTING.md#code-contributions). +- [ ] I have read and followed the [AI Policy](https://git.eden-emu.dev/eden-emu/eden/src/branch/master/docs/policies/AI.md) - [ ] I have read and followed the [Coding Guidelines](https://git.eden-emu.dev/eden-emu/eden/src/branch/master/docs/policies/Coding.md) to the best of my ability. ------------------- diff --git a/.gitignore b/.gitignore index 873b99bec2..4abfc271d2 100644 --- a/.gitignore +++ b/.gitignore @@ -7,7 +7,6 @@ # Build directory /[Bb]uild*/ doc-build/ -out/ AppDir/ uruntime @@ -20,6 +19,7 @@ log.txt # Generated source files src/common/scm_rev.cpp dist/english_plurals/generated_en.ts +*-toolchain.cmake # Project/editor files *.swp diff --git a/.patch/boost/0001-clang-cl.patch b/.patch/boost/0001-clang-cl.patch new file mode 100644 index 0000000000..cdabc712cb --- /dev/null +++ b/.patch/boost/0001-clang-cl.patch @@ -0,0 +1,13 @@ +diff --git a/libs/cobalt/include/boost/cobalt/concepts.hpp b/libs/cobalt/include/boost/cobalt/concepts.hpp +index d49f2ec..a9bdb80 100644 +--- a/libs/cobalt/include/boost/cobalt/concepts.hpp ++++ b/libs/cobalt/include/boost/cobalt/concepts.hpp +@@ -62,7 +62,7 @@ struct enable_awaitables + template + concept with_get_executor = requires (T& t) + { +- {t.get_executor()} -> asio::execution::executor; ++ t.get_executor(); + }; + + diff --git a/.patch/reshade/0001-from-chars-fallback.patch b/.patch/reshade/0001-from-chars-fallback.patch deleted file mode 100644 index 9089b1b9d4..0000000000 --- a/.patch/reshade/0001-from-chars-fallback.patch +++ /dev/null @@ -1,11 +0,0 @@ ---- a/source/effect_lexer.cpp -+++ b/source/effect_lexer.cpp -@@ -1181,7 +1181,7 @@ - } - else - { --#if 0 -+#if !defined(__cpp_lib_to_chars) - exponent += decimal_location - mantissa_size; - - const bool exponent_negative = exponent < 0; diff --git a/AGENTS.md b/AGENTS.md index 05ab7f1160..aabea77170 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -1,7 +1 @@ -# AGENTS - -Read and follow the AI policy found in `docs/policies/AI.md`, and the coding policies found in `docs/policies/Coding.md`. - -Do not, under any circumstances, ever submit PRs or push commits on behalf of the user. - -Keep comments to a reasonable level. Do not overexplain or add/remove comments from unrelated parts of the codebase. +AI and LLM use is *strictly* prohibited within our codebase and surrounding community, including issues and comments. This includes using AI or LLMs to write docs/commit messages, debug issues, brainstorm ideas, research concepts, or search the codebase. diff --git a/CLAUDE.md b/CLAUDE.md new file mode 100644 index 0000000000..aabea77170 --- /dev/null +++ b/CLAUDE.md @@ -0,0 +1 @@ +AI and LLM use is *strictly* prohibited within our codebase and surrounding community, including issues and comments. This includes using AI or LLMs to write docs/commit messages, debug issues, brainstorm ideas, research concepts, or search the codebase. diff --git a/CMakeLists.txt b/CMakeLists.txt index f647204a4b..8b068b85b4 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -85,8 +85,6 @@ option(ENABLE_WERROR "Enable -Werror diagnostics" ON) # Lossless Scaling frame generation. Only Android. cmake_dependent_option(ENABLE_LSFG "Enable Lossless Scaling frame generation" ON "ANDROID" OFF) -option(ENABLE_RESHADE "Enable ReShade FX post-processing effects" ON) - # non-linux bundled qt are static if (YUZU_USE_BUNDLED_QT AND (APPLE OR NOT UNIX)) set(YUZU_STATIC_BUILD ON) @@ -417,9 +415,12 @@ AddJsonPackage(boost) set(BOOST_NO_HEADERS ${Boost_ADDED}) if (Boost_ADDED) - add_compile_definitions(YUZU_BOOST_v1) + if (MSVC OR ANDROID) + add_compile_definitions(YUZU_BOOST_v1) + endif() + if (NOT MSVC OR CXX_CLANG) - # solaris sucks + # boost sucks if (SOLARIS) add_compile_options($<$:-pthreads>) endif() @@ -428,7 +429,8 @@ if (Boost_ADDED) target_compile_options(boost_icl INTERFACE $<$:-Wno-shadow>) target_compile_options(boost_asio INTERFACE $<$:-Wno-conversion> - $<$:-Wno-implicit-fallthrough>) + $<$:-Wno-implicit-fallthrough> + ) endif() endif() diff --git a/CMakeModules/GentooCross.cmake b/CMakeModules/GentooCross.cmake new file mode 100644 index 0000000000..7daff8ea2d --- /dev/null +++ b/CMakeModules/GentooCross.cmake @@ -0,0 +1,18 @@ +# SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project +# SPDX-License-Identifier: GPL-3.0-or-later + +set(CROSS_TARGET "powerpc64le" CACHE STRING "Cross-compilation target (aarch64, powerpc64le, riscv64, etc)") + +set(CMAKE_SYSROOT /usr/${CROSS_TARGET}-unknown-linux-gnu) + +set(CMAKE_C_COMPILER ${CROSS_TARGET}-unknown-linux-gnu-gcc) +set(CMAKE_CXX_COMPILER ${CROSS_TARGET}-unknown-linux-gnu-g++) + +# search programs in the host environment +set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) + +# search headers and libraries in the target environment +set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) + +set(CMAKE_FIND_ROOT_PATH /usr/${CROSS_TARGET}-unknown-linux-gnu) diff --git a/CMakeModules/find/Findlz4.cmake b/CMakeModules/find/Findlz4.cmake index 77ac390160..d4f2153162 100644 --- a/CMakeModules/find/Findlz4.cmake +++ b/CMakeModules/find/Findlz4.cmake @@ -24,7 +24,7 @@ else() endif() if (lz4_FOUND AND NOT TARGET lz4::lz4) - if (TARGET LZ4::lz4_shared AND NOT YUZU_STATIC_BUILD) + if (TARGET LZ4::lz4_shared) add_library(lz4::lz4 ALIAS LZ4::lz4_shared) elseif (TARGET LZ4::lz4_static) add_library(lz4::lz4 ALIAS LZ4::lz4_static) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index c87dd11dbe..c09b1c3679 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -1,5 +1,9 @@ # Contributing + + Eden has lots of different ways that you can contribute to its efforts, even without knowing how to write code: - Donate! This will help us live our lives, pay for infrastructure/testing hardware, and more @@ -16,14 +20,16 @@ Eden is free, open-source, copyleft software, licensed under the terms of the [G ### Policies -- AI usage is allowed, but we reserve the right to close and rework your PR if you don't fully understand the changes you're making. - - As a common courtesy, please disclose your AI usage under the PR description, as `Assisted-by: ()`. -- Usage of any form of profanity or otherwise unsavory language is discouraged but not strictly disallowed. -- New code must follow the same style as the surrounding codebase. Exceptions may be granted in certain cases. +- No LLM or AI usage, *period*, for patches, pull requests, issues, comments, debugging, brainstorming, etc. + - For details on why, see the [detailed AI policy](docs/policies/AI.md). +- Usage of any form of profanity or otherwise unsavory language is generally discouraged. + - This is primarily because it rarely helps to actually understand what's going on. + - Remember that your comments should be focused and actually address what's happening. With very few exceptions, expletives are actively detrimental at best. +- New code must follow the same general style as the surrounding codebase. Exceptions may be granted in certain cases. - Maintainers reserve the right to change your patches and pull requests at will. We will try to avoid this. - You should generally respect all decisions made by the [code owners](docs/CODEOWNERS) in your particular subsystem. - However, if you feel they are overstepping or are incorrect, don't be afraid to stand your ground! Maintainers are not always correct. -- While we do *not* adhere to the terms of a formal code of conduct, you are expected to treat other developers, contributors, and community members respectfully. +- While we do *not* adhere to the terms of a formal code of conduct, you will generally be expected to respect other developers, contributors, and community members. - You **must** have basic knowledge of [Git](https://git-scm.com/learn). Knowing how to manage your branches and follow proper fork policies is a necessity. ### Where do I start? @@ -37,8 +43,7 @@ You may also search for open issues on [GitHub](https://github.com/eden-emulator There are five primary ways to contribute. - Submit pull requests directly to our source tree - - You must first [create an account](https://git.eden-emu.dev/user/sign_up). - - You may use an internal account, or you may use a GitHub/Codeberg account linked to our instance. + - You must first request an account on our Forgejo. See [Signup](#how-do-i-sign-up) - Submit pull requests to our [GitHub mirror](https://github.com/eden-emulator/Issue-Reports) - Note that this is subject to being removed by DMCA, so don't rely on this. - Submit pull requests to our [Codeberg mirror](https://codeberg.org/eden-emu/eden) @@ -50,8 +55,31 @@ There are five primary ways to contribute. To test your changes, ensure to read the [build documentation](./docs/Build.md) for your specific platform(s) to ensure everything compiles and works properly. You should also make sure that your branch is up-to-date with the upstream `master` branch before opening a pull request. +### How do I sign up? + +
+To sign up and begin contributing... (click to open) + +Email [crueter@crueter.xyz](mailto:crueter@crueter.xyz) with the following format: + +```txt +Subject: [Eden Git] Registration Request +Username: +Email: +I wish to sign up because... +``` + +Received mail that does not follow this format will be ignored. + +Once your request is processed, you will receive a confirmation email with your temporary password and some information on Git access and policies. If you do not receive a response within 48 hours, feel free to send another email. + +> [!WARNING] +> Some email providers may place the response email in your spam/junk folder; notable offenders include Gmail and Outlook. *Always* ensure to check your Spam or Junk folder. + +
+ ## Non-code Contributions Alongside the other contribution methods listed up top, you can also choose to contribute through documentation, organization, or community guides. These can be done either through the code contribution methods described above, or created externally and shared via our Discord community. -If you have an external tool/page that you believe would be handy to integrate/link into Eden, please additionally email our developers at [`developers@eden-emu.dev`](mailto:developers@eden-emu.dev). +If you have an external tool/page that you believe would be handy to integrate/link into Eden, please additionally email our developers at [`developers@eden-emu.dev`](mailto:developers@eden-emu.dev). **Do not submit vibe-coded or AI generated tools or applications**. diff --git a/cpmfile.json b/cpmfile.json index 0032734712..af773e0bd0 100644 --- a/cpmfile.json +++ b/cpmfile.json @@ -6,19 +6,22 @@ "version": "v0.19.0" }, "boost": { - "artifact": "boost-%VERSION%.tar.zst", + "artifact": "%VERSION%-cmake.tar.xz", "find_args": "CONFIG OPTIONAL_COMPONENTS headers context system fiber filesystem", - "hash": "681d97be4386767662e230b2e7c9754d45e709cc5db4e747c23c27d1f5b0e87770bdf19b0bc44dcb0e8349324887bbb8fffb432098f4d0ce74a5043021a90afc", + "hash": "6ae6e94664fe7f2fb01976b59b276ac5df8085c7503fa829d810fbfe495960cfec44fa2c36e2cb23480bc19c956ed199d4952b02639a00a6c07625d4e7130c2d", "min_version": "1.57", "package": "Boost", - "repo": "eden-emulator/ext-boost", - "version": "1.92.0" + "patches": [ + "0001-clang-cl.patch" + ], + "repo": "boostorg/boost", + "version": "boost-1.90.0" }, "boost_headers": { "bundled": true, - "hash": "c5fa2cd72f6e6666b7963b97bc359c75284b8fb540c30f3629a028b85270c9bc66c8a051383964f2bd4c1e005a4691593d15696e7ef39ea87cf6cff9e5691fb2", + "hash": "4ef845775e2277a8104ded6ddf749aa262ce52cf8438042869a048f9a0156dd772fbbcfa74efa1378fecef339b7286f6fe4b4feb5c45d49966b35d08e3e83507", "repo": "boostorg/headers", - "version": "boost-1.91.0" + "version": "boost-1.90.0" }, "catch2": { "hash": "7eea385d79d88a5690cde131fe7ccda97d5c54ea09d6f515000d7bf07c828809d61c1ac99912c1ee507cf933f61c1c47ecdcc45df7850ffa82714034b0fccf35", @@ -79,7 +82,7 @@ "name": "ffmpeg", "package": "FFmpeg", "repo": "crueter-ci/FFmpeg", - "version": "9.0.2-1790726865-946fcce07b" + "version": "9.0.1-1788120736-bf1b838f2a" }, "fmt": { "hash": "f0da82c545b01692e9fd30fdfb613dbb8dd9716983dcd0ff19ac2a8d36f74beb5540ef38072fdecc1e34191b3682a8542ecbf3a61ef287dbba0a2679d4e023f2", @@ -235,14 +238,6 @@ "repo": "stachenov/quazip", "version": "2e95c9001b" }, - "reshade": { - "hash": "6fc9b39821ca6e2d91160f05846b3a42159fec759f5d6fba91d1a57801a1bdaf6047740578c136f0b1a60a9c29ad160d87dbfe0dbfbcdf6ea879a8a078377b8c", - "patches": [ - "0001-from-chars-fallback.patch" - ], - "repo": "crosire/reshade", - "version": "v6.8.0" - }, "sdl3": { "hash": "df5a323af7ac366661a3c0e887969c72584d232f3cc211419d59b0487b620b6b2859d4549c9e8df002ee489290062e466fcfddf7edc0872a37b1f2845e81c0f3", "min_version": "3.2.10", @@ -333,11 +328,6 @@ "repo": "herumi/xbyak", "version": "v7.40.1" }, - "zbic": { - "hash": "fbe2f37986377d7f0d96ae3224c80b5971df6e8b6961f68061f1975ebb2e8cb78f07b90f014b007be4023dbf5513581504e7f7d61a5237cb2a8a7a61ae11e482", - "repo": "kinnay/zbic", - "version": "11b08f2712264bbed731545085cbd9702096ceb7" - }, "zlib": { "hash": "16fea4df307a68cf0035858abe2fd550250618a97590e202037acd18a666f57afc10f8836cbbd472d54a0e76539d0e558cb26f059d53de52ff90634bbf4f47d4", "min_version": "1.2", @@ -351,13 +341,13 @@ }, "zstd": { "find_args": "MODULE", - "hash": "2b006c3c110c38bd2f5896b42d36a38931c8eae261f30552f9a9fd04458d218d8f1a1425f117fd12af545ed77042e4b2d1a1a9b6286c4d0b9d74ef79f20a8f08", + "hash": "cc5ad4b119a9c2ea57f0b71eeff01113bb506e0d17000159c5409cb8236d22e38c52d5e9e97e7947a4bf1b2dfc44b6c503ab2d9aedbd59458435c6a2849cb029", "min_version": "1.5", "options": [ "ZSTD_BUILD_SHARED OFF" ], "repo": "facebook/zstd", "source_subdir": "build/cmake", - "version": "33618c8" + "version": "b8d6101fba" } } diff --git a/dist/languages/ar.ts b/dist/languages/ar.ts index 73ab8a2039..0daf86c725 100644 --- a/dist/languages/ar.ts +++ b/dist/languages/ar.ts @@ -303,27 +303,27 @@ This would ban both their forum username and their IP address. Enable Overlay Applet - تفعيل التطبيق المصغر للطبقة + تمكين التطبيق المصغر للطبقة Enables Horizon's built-in overlay applet. Press and hold the home button for 1 second to show it. - تفعيل التطبيق المصغر المدمج في هورايزون. اضغط مع الاستمرار على زر الشاشة الرئيسية لمدة 1 ثانية لإظهاره. + تمكين التطبيق الصغير المدمج في Horizon. اضغط مع الاستمرار على زر الشاشة الرئيسية لمدة 1 ثانية لإظهاره. Output Engine: - :محرك الإخراج + محرك الإخراج: Output Device: - :جهاز الإخراج + جهاز الإخراج: Input Device: - :جهاز الإدخال + جهاز الإدخال: @@ -333,7 +333,7 @@ This would ban both their forum username and their IP address. Volume: - :الصوت + الصوت: @@ -413,7 +413,7 @@ Can help reduce stuttering at lower framerates. Accuracy: - :دقة المحاكاة + الدقة: @@ -424,12 +424,12 @@ Can help reduce stuttering at lower framerates. Backend: - :الخلفية + الخلفية: CPU Clocks - سرعات وحدة المعالجة المركزية + ترددات وحدة المعالجة المركزية @@ -451,7 +451,7 @@ Weaker CPUs may see reduced performance, and certain games may behave improperly Enable Host MMU Emulation (fastmem) - (fastmem) المضيف MMU تفعيل محاكاة + (fastmem) المضيف MMU تمكين محاكاة @@ -528,7 +528,7 @@ Please note this may result in deadlocks and other race conditions. API: - :واجهة برمجة التطبيقات + واجهة برمجة التطبيقات: @@ -540,7 +540,7 @@ Vulkan يُنصح باستخدام Device: - :جهاز + جهاز: @@ -550,7 +550,7 @@ Vulkan يُنصح باستخدام Resolution: - :الدقة + الدقة: @@ -564,7 +564,7 @@ Options lower than 1X can cause artifacts. Window Adapting Filter: - :مرشح التكيف مع النافذة + مرشح تكييف النافذة: @@ -579,7 +579,7 @@ Options lower than 1X can cause artifacts. Anti-Aliasing Method: - :طريقة مضاد التعرج + طريقة مضاد التعرج: @@ -591,22 +591,12 @@ FXAA can produce a more stable picture in lower resolutions. يُمكن لـ FXAA إنتاج صورة أكثر ثباتًا بدقة أقل. - - Enable post-processing effects - تفعيل تأثيرات المعالجة اللاحقة - - - - Applies post-processing effects to the final image. - يُطبق تأثيرات ما بعد المعالجة على الصورة النهائية. - - - + Fullscreen Mode: - :وضع ملء الشاشة + وضع ملء الشاشة: - + The method used to render the window in fullscreen. Borderless offers the best compatibility with the on-screen keyboard that some games request for input. Exclusive fullscreen may offer better performance and better Freesync/Gsync support. @@ -615,12 +605,12 @@ Exclusive fullscreen may offer better performance and better Freesync/Gsync supp قد يوفر وضع ملء الشاشة الحصري أداءً أفضل ودعمًا أفضل لتقنيتي Freesync/Gsync. - + Aspect Ratio: - :نسبة الأبعاد + نسبة العرض إلى الارتفاع: - + Stretches the renderer to fit the specified aspect ratio. Most games only support 16:9, so modifications are required to get other ratios. Also controls the aspect ratio of captured screenshots. @@ -629,48 +619,48 @@ Also controls the aspect ratio of captured screenshots. كما يتحكم في نسبة العرض إلى الارتفاع للقطات الشاشة الملتقطة. - + Use persistent pipeline cache استخدام ذاكرة التخزين المؤقتة الدائمة للأنابيب - + Allows saving shaders to storage for faster loading on following game boots. Disabling it is only intended for debugging. يسمح بحفظ التظليلات في وحدة التخزين لتحميلها بشكل أسرع عند تشغيل اللعبة في المرات التالية. لا يُقصد من تعطيله سوى تصحيح الأخطاء. - + Use asynchronous GPU emulation استخدم محاكاة وحدة معالجة الرسومات غير المتزامنة - + Uses an extra CPU thread for rendering. This option should always remain enabled. يستخدم خيط معالجة إضافي للمعالجة الرسومية. يجب أن يبقى هذا الخيار مُفعّلاً دائماً. - + NVDEC emulation: NVDEC محاكاة: - + Specifies how videos should be decoded. It can either use the CPU or the GPU for decoding, or perform no decoding at all (black screen on videos). In most cases, GPU decoding provides the best performance. يُحدد كيفية فك تشفير الفيديوهات.يمكن استخدام وحدة المعالجة المركزية CPU أو وحدة معالجة الرسومات GPU لفك التشفير، أو عدم فك التشفير إطلاقًا (شاشة سوداء على الفيديوهات).في معظم الحالات، يُوفر فك تشفير وحدة معالجة الرسومات GPU أفضل أداء. - + ASTC Decoding Method: ASTC طريقة فك تشفير: - + This option controls how ASTC textures should be decoded. CPU: Use the CPU for decoding. GPU: Use the GPU's compute shaders to decode ASTC textures (recommended). @@ -682,12 +672,12 @@ stuttering but may present artifacts. وحدة المعالجة المركزية بشكل غير متزامن: استخدمها لفك تشفير قوام ASTC عند الطلب. يزيل هذا الخيار تقطع فك تشفير ASTC، ولكنه قد يُظهر بعض العيوب. - + ASTC Recompression Method: ASTC طريقة إعادة ضغط: - + Most GPUs lack support for ASTC textures and must decompress to anintermediate format: RGBA8. BC1/BC3: The intermediate format will be recompressed to BC1 or BC3 format, saving VRAM but degrading image quality. @@ -695,64 +685,44 @@ BC1/BC3: The intermediate format will be recompressed to BC1 or BC3 format, BC1/BC3: سيتم إعادة ضغط الصيغة الوسيطة إلى صيغة BC1 أو BC3، مما يوفر مساحة على ذاكرة الوصول العشوائي للفيديو VRAM ولكنه يُضعف جودة الصورة. - + Frame Pacing Mode (Vulkan only) (Vulkan فقط) وضع توقيت الإطارات - + Controls how the emulator manages frame pacing to reduce stuttering and make the frame rate smoother and more consistent. يتحكم في كيفية إدارة المحاكي لسرعة الإطارات لتقليل التقطع وجعل معدل الإطارات أكثر سلاسة واتساقًا. - + VRAM Usage Mode: VRAM وضع استهلاك: - + Selects whether the emulator should prefer to conserve memory or make maximum usage of available video memory for performance. Aggressive mode may impact performance of other applications such as recording software. يُحدد ما إذا كان ينبغي على المُحاكي تفضيل توفير الذاكرة أو الاستفادة القصوى من ذاكرة الفيديو المُتاحة لتحسين الأداء. قد يؤثر الوضع المُكثّف على أداء تطبيقات أخرى، مثل برامج التسجيل. - + Skip CPU Inner Invalidation تخطي إبطال وحدة المعالجة المركزية الداخلية - + Skips certain cache invalidations during memory updates, reducing CPU usage and improving latency. This may cause soft-crashes. يتخطى بعض عمليات إبطال ذاكرة التخزين المؤقتة أثناء تحديثات الذاكرة، مما يقلل من استخدام وحدة المعالجة المركزية ويحسّن زمن الوصول. قد يؤدي هذا إلى أعطال مؤقتة. - - GPU Readback Before NCE Invalidation - NCE إعادة قراءة وحدة معالجة الرسومات قبل إبطال صلاحية - - - - Flushes GPU buffer data back to guest memory before NCE invalidates the whole guest page, preserving it while the CPU store proceeds. - يفرغ بيانات ذاكرة المعالج الرسومي المؤقتة ويعيدها إلى ذاكرة المحاكي قبل أن تلغي تقنية التشغيل المباشر عمل الصفحة بالكامل، مما يحافظ على البيانات أثناء استمرار المعالج المركزي في تخزينها - - - - Patch Runtime NROs for NCE - تعديل ملفات تشغيل اللعبة فوراً لتتوافق مع تقنية التشغيل المباشر - - - - Applies NCE code patches to runtime-loaded NRO modules.This is required for some games to run correctly. - يعدل كود تشغيل اللعبة تلقائياً عند فتحها. هذا الإجراء ضروري لتشغيل بعض الألعاب بدون مشاكل. - - - + VSync Mode: VSync وضع: - + FIFO (VSync) does not drop frames or exhibit tearing but is limited by the screen refresh rate. FIFO Relaxed allows tearing as it recovers from a slow down. Mailbox can have lower latency than FIFO and does not tear but may drop frames. @@ -763,12 +733,12 @@ Immediate (no synchronization) presents whatever is available and can exhibit te يُظهر الوضع الفوري (بدون مزامنة) كل ما هو متاح، وقد يُظهر تمزقًا. - + Sync Memory Operations مزامنة عمليات الذاكرة - + Ensures data consistency between compute and memory operations. This option fixes issues in games, but may degrade performance. Unreal Engine 4 games often see the most significant changes thereof. @@ -777,44 +747,44 @@ Unreal Engine 4 games often see the most significant changes thereof. التغييرات الأكثر أهمية Unreal Engine 4 غالبًا ما تشهد ألعاب. - + Enable asynchronous presentation (Vulkan only) - (Vulkan فقط) تفعيل العرض التقديمي غير المتزامن + (Vulkan فقط) تمكين العرض التقديمي غير المتزامن - + Slightly improves performance by moving presentation to a separate CPU thread. تحسين الأداء بشكل طفيف عن طريق نقل العرض التقديمي إلى مؤشر ترابط منفصل في وحدة المعالجة المركزية. - + Force maximum clocks (Vulkan only) (Vulkan فقط) فرض الحد الأقصى للساعات - + Runs work in the background while waiting for graphics commands to keep the GPU from lowering its clock speed. يعمل في الخلفية أثناء انتظار أوامر الرسومات لمنع وحدة معالجة الرسومات من خفض سرعة الساعة. - + Anisotropic Filtering: - :الترشيح متباين الخواص + الترشيح المتباين الخواص: - + Controls the quality of texture rendering at oblique angles. Safe to set at 16x on most GPUs. يتحكم بجودة عرض الملمس بزوايا مائلة. من الآمن ضبطه على 16x على معظم وحدات معالجة الرسومات. - + GPU Mode: - :وضع وحدة معالجة الرسومات + وضع وحدة معالجة الرسومات: - + Controls the GPU emulation mode. Most games render fine with Fast, but Accurate is still required for some. Particles tend to only render correctly with Accurate mode. @@ -823,12 +793,12 @@ Particles tend to only render correctly with Accurate mode. لا تُعرض الجسيمات بشكل صحيح إلا في وضع «دقيق». - + DMA Accuracy: DMA دقة: - + Controls the DMA read mode. Unsafe is faster, while Safe is more stable and can fix issues in some games. Default follows the GPU Accuracy setting. @@ -837,62 +807,76 @@ Default follows the GPU Accuracy setting. يُتبع الإعداد الافتراضي إعداد «دقة وحدة معالجة الرسومات» - + GPU Fence Behavior: :سلوك حاجز وحدة معالجة الرسومات - + Controls the GPU fence synchronization behavior. Immediate is the fastest option, but can introduce some issues. Balanced offers better compatibility and may fix issues in some games. Accurate further improves compatibility at the cost of some performance. -Default follows the GPU Mode setting. - يتحكم في سلوك مزامنة حاجز وحدة معالجة الرسومات. -يُعد الخيار فوري الأسرع، لكنه قد يتسبب في بعض المشكلات. -يوفر الخيار متوازن توافقًا أفضل وقد يعمل على حل المشكلات في بعض الألعاب. -يعمل الخيار دقيق على تحسين التوافق بشكل أكبر على حساب بعض الأداء. -يتبع الخيار افتراضي إعداد وضع وحدة معالجة الرسومات. +Strict is the slowest option, but can fix issues that require stricter synchronization. +Default follows the GPU Accuracy setting. + يتحكم في سلوك تزامن حاجز وحدة معالجة الرسوميات. +الخيار الفوري هو الأسرع، لكنه قد يسبب بعض المشاكل. +الوضع المتوازن يوفر توافقًا أفضل وقد يحل بعض المشاكل في بعض الألعاب. +الدقة تحسّن التوافق أكثر مقابل بعض الأداء. +الوضع الصارم هو الخيار الأبطأ، لكنه يمكن أن يصلح المشاكل التي تتطلب مزامنة أكثر صرامة. +الإعداد الافتراضي يتبع إعداد دقة وحدة معالجة الرسومات. - + + Enable GPU buffer readback + تفعيل قراءة مخزن وحدة معالجة الرسومات + + + + Preserves GPU-modified data by reading it back before uploading. +Some games require this to render certain effects properly. + يحافظ على البيانات المعدلة بواسطة وحدة معالجة الرسومات عن طريق قراءتها قبل رفعها. +بعض الألعاب تحتاج هذا لعرض تأثيرات معينة بشكل صحيح. + + + Enable asynchronous shader compilation تفعيل تجميع التظليل غير المتزامن - + May reduce shader stutter. قد يقلل من تقطع التظليل. - + GPU Clocks - سرعات وحدة معالجة الرسومات + سرعات معالج الرسوميات - + Makes the game believe GPU work finishes faster than it does, so it stops lowering resolution and render distance to fit the Switch's clocks. يجعل اللعبة تعتقد أن عمل وحدة معالجة الرسومات ينتهي بشكل أسرع مما هو عليه في الواقع، لذلك تتوقف عن خفض الدقة ومسافة العرض لتتناسب مع سرعات جهاز Switch. - + GPU Unswizzle إلغاء ترتيب بيانات وحدة معالجة الرسومات - + Accelerates BCn 3D texture decoding using GPU compute. Disable if experiencing crashes or graphical glitches. باستخدام حوسبة وحدة معالجة الرسومات BCn 3D يسرع فك تشفير نسيج. قم بتعطيله في حالة حدوث أعطال أو مشاكل في الرسومات. - + GPU Unswizzle Max Texture Size الحد الأقصى لحجم النسيج في وحدة معالجة الرسومات بعد إعادة ترتيب البيانات - + Sets the maximum size (MiB) for GPU-based texture unswizzling. While the GPU is faster for medium and large textures, the CPU may be more efficient for very small ones. Adjust this to find the balance between GPU acceleration and CPU overhead. @@ -901,48 +885,48 @@ Adjust this to find the balance between GPU acceleration and CPU overhead. - + GPU Unswizzle Stream Size حجم تدفق إلغاء ترتيب بيانات وحدة معالجة الرسومات - + Sets the maximum amount of texture data (in MiB) processed per frame. Higher values can reduce stutter during texture loading but may impact frame consistency. يحدد الحد الأقصى لكمية بيانات النسيج (بالميغابايت) التي تتم معالجتها لكل إطار. يمكن أن تقلل القيم الأعلى من التقطع أثناء تحميل النسيج، ولكنها قد تؤثر على اتساق الإطارات. - + GPU Unswizzle Chunk Size حجم كتلة إلغاء ترتيب بيانات وحدة معالجة الرسومات - + Determines the number of depth slices processed in a single dispatch. Increasing this can improve throughput on high-end GPUs but may cause TDR or driver timeouts on weaker hardware. يُحدد هذا الخيار عدد شرائح العمق التي تتم معالجتها في عملية إرسال واحدة. زيادة هذا الخيار قد تُحسّن الإنتاجية على وحدات معالجة الرسومات المتطورة، ولكنها قد تُسبب أخطاء في إعادة تعيين وقت الاستجابة أو انقطاع الاتصال ببرنامج التشغيل على الأجهزة ذات المواصفات الأقل. - + Use Vulkan pipeline cache Vulkan استخدام ذاكرة التخزين المؤقتة لخط أنابيب - + Enables GPU vendor-specific pipeline cache. This option can improve shader loading time significantly in cases where the Vulkan driver does not store pipeline cache files internally. يُفعّل ذاكرة التخزين المؤقت لخطوط الأنابيب الخاصة ببائع وحدة معالجة الرسومات. بتخزين ملفات ذاكرة التخزين المؤقتة للخطوط الداخلية Vulkan يمكن أن يؤدي هذا الخيار إلى تحسين وقت تحميل التظليل بشكل كبير في الحالات التي لا يقوم فيها برنامج تشغيل. - + Enable Compute Pipelines (Intel Vulkan Only) - (Intel Vulkan فقط) تفعيل خطوط أنابيب الحوسبة + (Intel Vulkan فقط) تمكين خطوط أنابيب الحوسبة - + Required by some games. This setting only exists for Intel proprietary drivers and may crash if enabled. Compute pipelines are always enabled on all other drivers. @@ -951,180 +935,192 @@ Compute pipelines are always enabled on all other drivers. خطوط أنابيب الحوسبة مفعلة دائمًا على جميع برامج التشغيل الأخرى. - + Enable Reactive Flushing - تفعيل التنظيف التفاعلي + تمكين التنظيف التفاعلي - + Uses reactive flushing instead of predictive flushing, allowing more accurate memory syncing. يستخدم التنظيف التفاعلي بدلاً من التنظيف التنبئي، مما يسمح بمزامنة الذاكرة بشكل أكثر دقة. - + Sync to framerate of video playback المزامنة مع معدل الإطارات لتشغيل الفيديو - + Run the game at normal speed during video playback, even when the framerate is unlocked. قم بتشغيل اللعبة بالسرعة العادية أثناء تشغيل الفيديو، حتى عندما يكون معدل الإطارات مفتوحًا. - + Barrier feedback loops حلقات التغذية الراجعة للحواجز - + Improves rendering of transparency effects in specific games. يحسن عرض تأثيرات الشفافية في بعض الألعاب المحددة. - + Enable buffer history - تفعيل سجل التخزين المؤقت + تمكين سجل التخزين المؤقت - + Enables access to previous buffer states. This option may improve rendering quality and performance consistency in some games. يُتيح هذا الخيار الوصول إلى حالات التخزين المؤقت السابقة. وقد يُحسّن جودة العرض وثبات الأداء في بعض الألعاب. - + Fix bloom effects إصلاح تأثيرات التوهج - + Removes bloom in Burnout. يزيل التوهج في وضع الاحتراق. - + + Enable Legacy Rescale Pass + تفعيل ميزة إعادة التحجيم القديمة + + + + May fix rescale issues in some games by relying on behavior from the previous implementation. +Legacy behavior workaround that fixes line artifacts on AMD and Intel GPUs, and grey texture flicker on Nvidia GPUs in Luigis Mansion 3. + قد يصلح مشاكل إعادة القياس في بعض الألعاب بالاعتماد على سلوك من التنفيذ السابق. +حل لسلوك قديم يصلح تشوهات الخطوط على بطاقات AMD وIntel الرسومية، ووميض النسيج الرمادي على بطاقات Nvidia الرسومية في لعبة Luigi's Mansion 3. + + + Extended Dynamic State الحالة الديناميكية الموسعة - + Controls the number of features that can be used in Extended Dynamic State. Higher states allow for more features and can increase performance, but may cause additional graphical issues. يتحكم في عدد الميزات التي يمكن استخدامها في الحالة الديناميكية الموسعة.تسمح الحالات الأعلى بمزيد من الميزات ويمكن أن تزيد من الأداء، ولكنها قد تسبب مشكلات رسومية إضافية. - + Vertex Input Dynamic State حالة ديناميكية لإدخال الرأس - + Enables vertex input dynamic state feature for better quality and performance. يتيح ميزة الحالة الديناميكية لإدخال الرأس لتحسين الجودة والأداء. - + Sample Shading تظليل العينة - + Allows the fragment shader to execute per sample in a multi-sampled fragment instead of once per fragment. Improves graphics quality at the cost of performance. Higher values improve quality but degrade performance. يسمح لمظلل الأجزاء بالتنفيذ لكل عينة في جزء متعدد العينات بدلاً من مرة واحدة لكل جزء. يحسن جودة الرسومات على حساب الأداء. القيم الأعلى تحسن الجودة ولكنها تقلل من الأداء. - + RNG Seed مولد الأرقام العشوائية - + Controls the seed of the random number generator. Mainly used for speedrunning. يتحكم في بذرة مولد الأرقام العشوائية. يُستخدم بشكل رئيسي في سباقات السرعة. - + Device Name اسم الجهاز - + The name of the console. اسم وحدة التحكم. - + Homebrew Args Homebrew وسائط - + Command-line arguments passed to homebrew at launch (e.g. -noglsl). (noglsl -مثل) عند التشغيل Homebrew سطر الأوامر الوسائط المُمررة إلى - + Custom RTC Date: - :تاريخ التوقيت الحقيقي المخصص + المخصص RTC تاريخ: - + This option allows to change the clock of the console. Can be used to manipulate time in games. يتيح لك هذا الخيار تغيير ساعة وحدة التحكم. يمكن استخدامه للتحكم بالوقت في الألعاب. - + The number of seconds from the current unix time عدد الثواني من وقت يونكس الحالي - + Language: - :اللغة + اللغة: - + This option can be overridden when region setting is auto-select يمكن تجاوز هذا الخيار عند تحديد إعداد المنطقة تلقائيًا - + Region: - :المنطقة + المنطقة: - + The region of the console. منطقة وحدة التحكم. - + Time Zone: - :المنطقة الزمنية + المنطقة الزمنية: - + The time zone of the console. المنطقة الزمنية لوحدة التحكم. - + Sound Output Mode: - :وضع إخراج الصوت + وضع إخراج الصوت: - + Console Mode: - :وضع وحدة التحكم + وضع وحدة التحكم: - + Selects if the console is in Docked or Handheld mode. Games will change their resolution, details and supported controllers and depending on this setting. Setting to Handheld can help improve performance for low end systems. @@ -1133,1026 +1129,1042 @@ Setting to Handheld can help improve performance for low end systems. يُمكن أن يُساعد الضبط على الوضع المحمول على تحسين أداء الأجهزة منخفضة المواصفات. - + Prompt for user profile on boot المطالبة بملف تعريف المستخدم عند التشغيل - + Useful if multiple people use the same PC. مفيد إذا كان هناك عدة أشخاص يستخدمون نفس الكمبيوتر. - + Pause when not in focus توقف عند عدم التركيز - + Pauses emulation when focusing on other windows. يوقف المحاكاة عند التركيز على نوافذ أخرى. - + Confirm before stopping emulation تأكيد قبل إيقاف المحاكاة - + Overrides prompts asking to confirm stopping the emulation. Enabling it bypasses such prompts and directly exits the emulation. يتجاوز المطالبات التي تطلب تأكيد إيقاف المحاكاة. -يؤدي تفعيله إلى تجاوز هذه المطالبات والخروج مباشرة من المحاكاة. +يؤدي تمكينه إلى تجاوز هذه المطالبات والخروج مباشرة من المحاكاة. - + Hide mouse on inactivity إخفاء الماوس عند عدم النشاط - + Hides the mouse after 2.5s of inactivity. يخفي الماوس بعد 2.5 ثانية من عدم النشاط. - + + Disable controller applet + تعطيل تطبيق التحكم + + + + Forcibly disables the use of the controller applet in emulated programs. +When a program attempts to open the controller applet, it is immediately closed. + يُعطّل استخدام أداة التحكم في البرامج المُحاكاة قسرًا. +عند محاولة أي برنامج فتح أداة التحكم، تُغلق فورًا. + + + Check for updates التحقق من توفر التحديثات - + Whether or not to check for updates upon startup. ما إذا كان يجب التحقق من التحديثات عند بدء التشغيل أم لا. - + Enable Gamemode - تفعيل وضع اللعبة + تمكين وضع اللعبة - + Force X11 as Graphics Backend كخلفية رسومات X11 فرض - + Custom frontend الواجهة الأمامية المخصصة - + Real applet تطبيق صغير حقيقي - - - Disabled - معطل - - - + Never أبداً - + On Load عند التحميل - + Always دائماً - + CPU وحدة المعالجة المركزية - + GPU وحدة معالجة الرسومات - + CPU Asynchronous وحدة المعالجة المركزية غير المتزامنة - + Uncompressed (Best quality) Uncompressed (أفضل جودة) - + BC1 (Low quality) BC1 (جودة منخفضة) - + BC3 (Medium quality) BC3 (جودة متوسطة) - - + + Auto تلقائي - + 30 FPS 30 إطارًا في الثانية - + 60 FPS 60 إطارًا في الثانية - + 90 FPS 90 إطارًا في الثانية - + 120 FPS 120 إطارًا في الثانية - + Conservative محافظ - + Aggressive عدواني - + Vulkan Vulkan - + OpenGL GLSL OpenGL GLSL - + OpenGL GLASM (Assembly Shaders, NVIDIA Only) OpenGL GLASM (Assembly Shaders, NVIDIA Only) - + OpenGL SPIR-V (Experimental, AMD/Mesa Only) OpenGL SPIR-V (Experimental, AMD/Mesa Only) - + Null لا شيء - + Fast سريع - - - + + + Accurate دقه - - - + + + Default افتراضي - + Unsafe (fast) غير آمن (سريع) - + Safe (stable) آمن (مستقر) - + Immediate فوري - + Balanced متوازن - + + Strict + صارم + + + Unsafe غير آمن - + Paranoid (disables most optimizations) - شديد الحذر (يعطل معظم التحسينات) + جنون العظمة (يعطل معظم التحسينات) - + Debugging تصحيح الأخطاء - + Dynarmic Dynarmic - + NCE NCE - + Borderless Windowed نافذة بلا حدود - + Exclusive Fullscreen شاشة كاملة حصرية - + No Video Output لا يوجد إخراج فيديو - + CPU Video Decoding فك تشفير فيديو وحدة المعالجة المركزية - + GPU Video Decoding (Default) فك تشفير فيديو وحدة معالجة الرسومات (افتراضي) - + 0.25X (180p/270p) [EXPERIMENTAL] 0.25X (180p/270p) [تجريبي] - + 0.5X (360p/540p) [EXPERIMENTAL] 0.5X (360p/540p) [تجريبي] - + 0.75X (540p/810p) [EXPERIMENTAL] 0.75X (540p/810p) [تجريبي] - + 1X (720p/1080p) 1X (720p/1080p) - + 1.25X (900p/1350p) [EXPERIMENTAL] 1.25X (900p/1350p) [تجريبي] - + 1.5X (1080p/1620p) [EXPERIMENTAL] 1.5X (1080p/1620p) [تجريبي] - + 2X (1440p/2160p) 2X (1440p/2160p) - + 3X (2160p/3240p) 3X (2160p/3240p) - + 4X (2880p/4320p) 4X (2880p/4320p) - + 5X (3600p/5400p) 5X (3600p/5400p) - + 6X (4320p/6480p) 6X (4320p/6480p) - + 7X (5040p/7560p) 7X (5040p/7560p) - + 8X (5760p/8640p) 8X (5760p/8640p) - + Nearest Neighbor Nearest Neighbor - + Bilinear Bilinear - + Bicubic Bicubic - + Gaussian Gaussian - + Lanczos Lanczos - + ScaleForce ScaleForce - + AMD FidelityFX Super Resolution AMD FidelityFX Super Resolution - + Area Area - + MMPX MMPX - + Zero-Tangent Zero-Tangent - + B-Spline B-Spline - + Mitchell Mitchell - + Spline-1 Spline-1 - + Snapdragon Game Super Resolution دقة فائقة للألعاب من سنابدراغون - + Snapdragon Game Super Resolution EdgeDir دقة فائقة للألعاب من سنابدراغون EdgeDir - + None لا شيء - + FXAA FXAA - + SMAA SMAA - + Default (16:9) (16:9) افتراضي - + Force 4:3 4:3 فرض - + Force 21:9 21:9 فرض - + Force 16:10 16:10 فرض - + Stretch to Window تمديد إلى النافذة - + Automatic تلقائي - + 2x 2x - + 4x 4x - + 8x 8x - + 16x 16x - + Japanese (日本語) اليابانية (日本語) - + American English الإنجليزية الأمريكية - + French (français) الفرنسية (français) - + German (Deutsch) الألمانية (Deutsch) - + Italian (italiano) الإيطالية (Italiano) - + Spanish (español) الإسبانية (español) - + Chinese الصينية - + Korean (한국어) الكورية (한국어) - + Dutch (Nederlands) الهولندية (Nederlands) - + Portuguese (português) البرتغالية (Português) - + Russian (Русский) الروسية (Русский) - + Taiwanese تايواني - + British English - الإنجليزية البريطانية + الإنكليزية البريطانية - + Canadian French الكندية الفرنسية - + Latin American Spanish أمريكا اللاتينية الإسبانية - + Simplified Chinese الصينية المبسطة - + Traditional Chinese (正體中文) الصينية التقليدية (正體中文) - + Brazilian Portuguese (português do Brasil) البرتغالية البرازيلية (português do Brasil) - + Polish (polska) البولندية (polska) - + Thai (แบบไทย) التايلاندية (แบบไทย) - - + + Japan اليابان - + USA الولايات المتحدة الأمريكية - + Europe أوروبا - + Australia أستراليا - + China الصين - + Korea كوريا - + Taiwan تايوان - + Auto (%1) Auto select time zone تلقائي (%1) - + Default (%1) Default time zone افتراضي (%1) - + CET CET - + CST6CDT CST6CDT - + Cuba Cuba - + EET EET - + Egypt Egypt - + Eire Eire - + EST EST - + EST5EDT EST5EDT - + GB GB - + GB-Eire GB-Eire - + GMT GMT - + GMT+0 GMT+0 - + GMT-0 GMT-0 - + GMT0 GMT0 - + Greenwich Greenwich - + Hongkong Hongkong - + HST HST - + Iceland Iceland - + Iran Iran - + Israel Israel - + Jamaica Jamaica - + Kwajalein Kwajalein - + Libya Libya - + MET MET - + MST MST - + MST7MDT MST7MDT - + Navajo Navajo - + NZ NZ - + NZ-CHAT NZ-CHAT - + Poland Poland - + Portugal Portugal - + PRC PRC - + PST8PDT PST8PDT - + ROC ROC - + ROK ROK - + Singapore Singapore - + Turkey Turkey - + UCT UCT - + Universal - Universal + عالمي - + UTC UTC - + W-SU W-SU - + WET WET - + Zulu Zulu - + Mono أحادي - + Stereo مجسم - + Surround محيطي - + 4GB DRAM (Default) 4GB DRAM (افتراضي) - + 6GB DRAM (Unsafe) 6GB DRAM (غير آمنة) - + 8GB DRAM 8GB DRAM - + 10GB DRAM (Unsafe) 10GB DRAM (غير آمنة) - + 12GB DRAM (Unsafe) 12GB DRAM (غير آمنة) - + Docked الإرساء - + Handheld محمول - - + + Normal - قياسي + طبيعي - - + + Boost تعزيز - - + + Overclock كسر السرعة - + Always ask (Default) اسأل دائمًا (افتراضي) - + Only if game specifies not to stop فقط إذا حددت اللعبة عدم التوقف - + Never ask لا تسأل أبدا - + Very Small (16 MB) صغير جدًا (16 ميغابايت) - + Small (32 MB) صغير (32 ميغابايت) - + Normal (128 MB) قياسي (128 ميغابايت) - + Large (256 MB) كبير (256 ميغابايت) - + Very Large (512 MB) كبير جدًا (512 ميغابايت) - + Very Low (4 MB) منخفض جدًا (4 ميغابايت) - + Low (8 MB) منخفض (8 ميغابايت) - + Normal (16 MB) قياسي (16 ميغابايت) - + Medium (32 MB) متوسط (32 ميغابايت) - + High (64 MB) عالي (64 ميغابايت) - + Very Low (32) منخفض جدًا (32) - + Low (64) منخفض (64) - + Normal (128) قياسي (128) - + Medium (256) متوسط (256) - + High (512) عالي (512) - + + Disabled + معطل + + + ExtendedDynamicState 1 الحالة الديناميكية الممتدة 1 - + ExtendedDynamicState 2 الحالة الديناميكية الممتدة 2 - + ExtendedDynamicState 3 الحالة الديناميكية الممتدة 3 - + Tree View عرض قائمة - + Grid View عرض شبكة @@ -2204,7 +2216,7 @@ Enabling it bypasses such prompts and directly exits the emulation. Input device: - :جهاز الإدخال + :جهاز الادخال @@ -2290,7 +2302,7 @@ Enabling it bypasses such prompts and directly exits the emulation. <html><head/><body><p><span style=" font-weight:600;">For debugging only.</span><br/>If you're not sure what these do, keep all of these enabled. <br/>These settings, when disabled, only take effect when CPU Debugging is enabled. </p></body></html> - <html><head/><body><p><span style=" font-weight:600;">للتصحيح فقط.</span><br/>إذا لم تكن متأكدًا من وظيفة هذه الخيارات، فاتركها جميعًا ممكّنة. <br/>عند تعطيل هذه الإعدادات، لا تصبح سارية المفعول إلا عند تفعيل تصحيح أخطاء وحدة المعالجة المركزية. </p></body></html> + <html><head/><body><p><span style=" font-weight:600;">للتصحيح فقط.</span><br/>إذا لم تكن متأكدًا من وظيفة هذه الخيارات، فاتركها جميعًا ممكّنة. <br/>عند تعطيل هذه الإعدادات، لا تصبح سارية المفعول إلا عند تمكين تصحيح أخطاء وحدة المعالجة المركزية. </p></body></html> @@ -2301,14 +2313,14 @@ Enabling it bypasses such prompts and directly exits the emulation. <div style="white-space: nowrap">يعمل هذا التحسين على تسريع عمليات الوصول إلى الذاكرة بواسطة برنامج الضيف.</div> -<div style="white-space: nowrap">يؤدي تفعيله إلى تضمين الوصول إلى مؤشرات PageTable::pointers في الكود الصادر.</div> +<div style="white-space: nowrap">يؤدي تمكينه إلى تضمين الوصول إلى مؤشرات PageTable::pointers في الكود الصادر.</div> <div style="white-space: nowrap">يؤدي تعطيل هذا إلى إجبار جميع عمليات الوصول إلى الذاكرة على المرور عبر وظائف Memory::Read/Memory::Write.</div> Enable inline page tables - تفعيل جداول الصفحات المضمنة + تمكين جداول الصفحات المضمنة @@ -2322,7 +2334,7 @@ Enabling it bypasses such prompts and directly exits the emulation. Enable block linking - تفعيل ربط الكتلة + تمكين ربط الكتلة @@ -2336,7 +2348,7 @@ Enabling it bypasses such prompts and directly exits the emulation. Enable return stack buffer - تفعيل مخزن مؤقت لمكدس الإرجاع + تمكين مخزن مؤقت لمكدس الإرجاع @@ -2350,7 +2362,7 @@ Enabling it bypasses such prompts and directly exits the emulation. Enable fast dispatcher - تفعيل الموزع السريع + تمكين المرسل السريع @@ -2364,7 +2376,7 @@ Enabling it bypasses such prompts and directly exits the emulation. Enable context elimination - تفعيل حذف السياق + تمكين حذف السياق @@ -2378,7 +2390,7 @@ Enabling it bypasses such prompts and directly exits the emulation. Enable constant propagation - تفعيل الانتشار الثابت + تمكين الانتشار الثابت @@ -2392,7 +2404,7 @@ Enabling it bypasses such prompts and directly exits the emulation. Enable miscellaneous optimizations - تفعيل التحسينات المتنوعة + تمكين التحسينات المتنوعة @@ -2401,14 +2413,14 @@ Enabling it bypasses such prompts and directly exits the emulation. <div style="white-space: nowrap">When disabled, a misalignment is triggered on all misaligned accesses.</div> - <div style="white-space: nowrap">عند التفعيل، لا يتم تشغيل عدم المحاذاة إلا عندما يتجاوز الوصول حدود الصفحة</div> + <div style="white-space: nowrap">عند التمكين، لا يتم تشغيل عدم المحاذاة إلا عندما يتجاوز الوصول حدود الصفحة</div> <div style="white-space: nowrap">عند التعطيل، يتم تشغيل عدم المحاذاة على جميع عمليات الوصول غير المتوافقة</div> Enable misalignment check reduction - تفعيل تقليل التحقق من المحاذاة غير الصحيحة + تمكين تقليل التحقق من المحاذاة غير الصحيحة @@ -2419,14 +2431,14 @@ Enabling it bypasses such prompts and directly exits the emulation. <div style="white-space: nowrap">يعمل هذا التحسين على تسريع عمليات الوصول إلى الذاكرة بواسطة برنامج الضيف.</div> -<div style="white-space: nowrap">يؤدي تفعيله إلى إجراء عمليات قراءة/كتابة ذاكرة الضيف مباشرة في الذاكرة والاستفادة من وحدة MMU الخاصة بالمضيف.</div> +<div style="white-space: nowrap">يؤدي تمكينه إلى إجراء عمليات قراءة/كتابة ذاكرة الضيف مباشرة في الذاكرة والاستفادة من وحدة MMU الخاصة بالمضيف.</div> <div style="white-space: nowrap">يؤدي تعطيل هذا إلى إجبار جميع عمليات الوصول إلى الذاكرة على استخدام محاكاة MMU البرمجية.</div> Enable Host MMU Emulation (general memory instructions) - المضيف (تعليمات الذاكرة العامة) MMU تفعيل محاكاة + المضيف (تعليمات الذاكرة العامة) MMU تمكين محاكاة @@ -2437,14 +2449,14 @@ Enabling it bypasses such prompts and directly exits the emulation. <div style="white-space: nowrap">يعمل هذا التحسين على تسريع عمليات الوصول الحصري للذاكرة بواسطة برنامج الضيف.</div> -<div style="white-space: nowrap">يؤدي تفعيله إلى إجراء عمليات قراءة/كتابة للذاكرة الحصرية للضيوف مباشرة في الذاكرة والاستفادة من وحدة MMU الخاصة بالمضيف.</div> +<div style="white-space: nowrap">يؤدي تمكينه إلى إجراء عمليات قراءة/كتابة للذاكرة الحصرية للضيوف مباشرة في الذاكرة والاستفادة من وحدة MMU الخاصة بالمضيف.</div> <div style="white-space: nowrap">يؤدي تعطيل هذا إلى إجبار جميع عمليات الوصول الحصرية للذاكرة على استخدام محاكاة MMU البرمجية.</div> Enable Host MMU Emulation (exclusive memory instructions) - المضيف (تعليمات الذاكرة الحصرية) MMU تفعيل محاكاة + المضيف (تعليمات الذاكرة الحصرية) MMU تمكين محاكاة @@ -2454,13 +2466,13 @@ Enabling it bypasses such prompts and directly exits the emulation. <div style="white-space: nowrap">يعمل هذا التحسين على تسريع عمليات الوصول الحصري للذاكرة بواسطة برنامج الضيف.</div> -<div style="white-space: nowrap">يؤدي تفعيله إلى تقليل التكلفة الإضافية لفشل fastmem في الوصول إلى الذاكرة الحصرية.</div> +<div style="white-space: nowrap">يؤدي تمكينه إلى تقليل التكلفة الإضافية لفشل fastmem في الوصول إلى الذاكرة الحصرية.</div> Enable recompilation of exclusive memory instructions - تفعيل إعادة تجميع تعليمات الذاكرة الحصرية + تمكين إعادة تجميع تعليمات الذاكرة الحصرية @@ -2470,13 +2482,13 @@ Enabling it bypasses such prompts and directly exits the emulation. <div style="white-space: nowrap">يعمل هذا التحسين على تسريع عمليات الوصول إلى الذاكرة عن طريق السماح بنجاح الوصول إلى الذاكرة غير الصالحة.</div> - <div style="white-space: nowrap">يؤدي تفعيله إلى تقليل الحمل الزائد لجميع عمليات الوصول إلى الذاكرة وليس له أي تأثير على البرامج التي لا تصل إلى الذاكرة غير الصالحة.</div> + <div style="white-space: nowrap">يؤدي تمكينه إلى تقليل الحمل الزائد لجميع عمليات الوصول إلى الذاكرة وليس له أي تأثير على البرامج التي لا تصل إلى الذاكرة غير الصالحة.</div> Enable fallbacks for invalid memory accesses - تفعيل الإجراءات الاحتياطية للوصول إلى الذاكرة غير الصالحة + تمكين الإجراءات الاحتياطية للوصول إلى الذاكرة غير الصالحة @@ -2494,7 +2506,7 @@ Enabling it bypasses such prompts and directly exits the emulation. Enable GDB Stub - GDB Stub تفعيل + GDB Stub تمكين @@ -2604,12 +2616,12 @@ Enabling it bypasses such prompts and directly exits the emulation. When checked, it enables Nsight Aftermath crash dumps - Nsight Aftermath عند تحديد هذا الخيار، يتم تفعيل عمليات تفريغ الأعطال الخاصة بـ + Nsight Aftermath عند تحديد هذا الخيار، يتم تمكين عمليات تفريغ الأعطال الخاصة بـ Enable Nsight Aftermath - Nsight Aftermath تفعيل + Nsight Aftermath تمكين @@ -2624,7 +2636,7 @@ Enabling it bypasses such prompts and directly exits the emulation. Enable Renderdoc Hotkey - Renderdoc تفعيل مفتاح التشغيل السريع لـ + Renderdoc تمكين مفتاح التشغيل السريع لـ @@ -2654,7 +2666,7 @@ Enabling it bypasses such prompts and directly exits the emulation. Enable Graphics Debugging - تفعيل تصحيح الرسومات + تمكين تصحيح الرسومات @@ -2664,7 +2676,7 @@ Enabling it bypasses such prompts and directly exits the emulation. Enable Shader Feedback - تفعيل ملاحظات التظليل + تمكين ملاحظات التظليل @@ -2709,12 +2721,12 @@ Enabling it bypasses such prompts and directly exits the emulation. Enable All Controller Types - تفعيل كافة أنواع اذرع التحكم + تمكين كافة أنواع اذرع التحكم Enable Auto-Stub - تفعيل الملحق تلقائي + تمكين الملحق تلقائي @@ -2729,7 +2741,7 @@ Enabling it bypasses such prompts and directly exits the emulation. Enable Debug Asserts - تفعيل تأكيدات التصحيح + تمكين تأكيدات التصحيح @@ -2739,12 +2751,12 @@ Enabling it bypasses such prompts and directly exits the emulation. Battery Serial: - :الرقم التسلسلي للبطارية + :رقم تسلسلي للبطارية Debug Knobs: - :أزرار تصحيح الأخطاء + أزرار تصحيح الأخطاء: @@ -2774,7 +2786,7 @@ Enabling it bypasses such prompts and directly exits the emulation. Enable this to output the latest generated audio command list to the console. Only affects games using the audio renderer. - قم بتفعيل هذه الخيار لإخراج أحدث قائمة أوامر صوتية تم إنشاؤها إلى وحدة التحكم. يؤثر فقط على الألعاب التي تستخدم عارض الصوت. + قم بتمكين هذه الخيار لإخراج أحدث قائمة أوامر صوتية تم إنشاؤها إلى وحدة التحكم. يؤثر فقط على الألعاب التي تستخدم عارض الصوت. @@ -2789,12 +2801,12 @@ Enabling it bypasses such prompts and directly exits the emulation. Enable FS Access Log - FS تفعيل سجل وصول + FS تمكين سجل وصول Enable Verbose Reporting Services** - تفعيل خدمات التقارير التفصيلية + تمكين خدمات التقارير التفصيلية @@ -3084,7 +3096,7 @@ Enabling it bypasses such prompts and directly exits the emulation. Choose an action for the save data directory: - :اختر إجراءً لمجلد بيانات الحفظ + اختر إجراءً لمجلد بيانات الحفظ: @@ -3252,38 +3264,33 @@ Would you like to delete the old save data? :لون الخلفية - + % FSR/SGSR sharpening percentage (e.g. 50%) % - - Configure Effects... - إعداد التأثيرات... - - - + Off معطل - + VSync Off VSync معطل - + Recommended مستحسن - + On مفعل - + VSync On VSync مفعل @@ -3403,7 +3410,7 @@ Would you like to delete the old save data? [waiting] - [جارٍ الانتظار] + [انتظار] @@ -3740,7 +3747,7 @@ Would you like to delete the old save data? Ring Controller - ذراع تحكم الحلقة + وحدة تحكم الحلقة @@ -3767,12 +3774,12 @@ Would you like to delete the old save data? Enable XInput 8 player support (disables web applet) - (يعطل تطبيق الويب الصغير) XInput 8 تفعيل دعم مشغل + (يعطل تطبيق الويب الصغير) XInput 8 تمكين دعم مشغل Enable UDP controllers (not needed for motion) - (غير مطلوبة للحركة) UDP تفعيل وحدات التحكم + (غير مطلوبة للحركة) UDP تمكين وحدات التحكم @@ -3782,12 +3789,12 @@ Would you like to delete the old save data? Enable direct JoyCon driver - تفعيل برنامج تشغيل جوي كون المباشر + تمكين برنامج تشغيل جوي كون المباشر Enable direct Pro Controller driver [EXPERIMENTAL] - المباشر [تجريبي] Pro Controller تفعيل برنامج تشغيل + المباشر [تجريبي] Pro Controller تمكين برنامج تشغيل @@ -4320,7 +4327,7 @@ To invert the axes, first move your joystick vertically, and then horizontally.< [waiting] - [جارٍ الانتظار] + [انتظار] @@ -4330,7 +4337,7 @@ To invert the axes, first move your joystick vertically, and then horizontally.< Enter a profile name: - :أدخل اسم ملف التعريف + أدخل اسم ملف التعريف: @@ -4510,7 +4517,7 @@ To invert the axes, first move your joystick vertically, and then horizontally.< Testing - جارٍ الاختبار + اختبار @@ -4553,7 +4560,7 @@ To invert the axes, first move your joystick vertically, and then horizontally.< Enable mouse panning - تفعيل تحريك الماوس + تمكين تحريك الماوس @@ -4629,12 +4636,12 @@ Current values are %1% and %2% respectively. Emulated mouse is enabled. This is incompatible with mouse panning. - تم تفعيل الماوس الذي تمت محاكاته. وهذا غير متوافق مع تحريك الماوس. + تم تمكين الماوس الذي تمت محاكاته. وهذا غير متوافق مع تحريك الماوس. Emulated mouse is enabled - تم تفعيل الماوس الذي تمت محاكاته + تم تمكين الماوس الذي تمت محاكاته @@ -4667,7 +4674,7 @@ Current values are %1% and %2% respectively. Enable Airplane Mode - تفعيل وضع الطيران + تمكين وضع الطيران @@ -4901,131 +4908,6 @@ Once deleted, these can NOT be recovered. Are you 100% sure you want to delete t &فتح في مدير الملفات - - ConfigurePostProcessing - - - Post-Processing Effects - تأثيرات ما بعد المعالجة - - - - Changes apply immediately while a game is running. - تُطبق التغييرات فورًا أثناء سير اللعبة. - - - - Enable post-processing - تفعيل المعالجة اللاحقة - - - - Preset: - :الإعداد المسبق - - - - Apply - تطبيق - - - - Reset Values - إعادة تعيين القيم - - - - Return every effect to the values the preset ships with. - إعادة كل تأثير إلى القيم التي تأتي بها الإعدادات المسبقة. - - - - Save As... - حفظ باسم... - - - - Save Preset - حفظ الإعداد المسبق - - - - Preset name: - :اسم الإعداد المسبق - - - - Clear - مسح - - - - Remove every effect in use and deselect the preset. - قم بإزالة جميع المؤثرات قيد الاستخدام وإلغاء تحديد الإعداد المسبق. - - - - Add Effect - إضافة تأثير - - - - None - لا شيء - - - - No effects in use. Pick a preset and press Apply, or add effects one by one. - لا توجد تأثيرات قيد الاستخدام. اختر إعدادًا مسبقًا واضغط على تطبيق، أو أضف التأثيرات واحدًا تلو الآخر. - - - - Custom chain. Pick a preset above and press Apply to replace it. - سلسلة مخصصة. اختر إعدادًا مسبقًا أعلاه واضغط على تطبيق لاستبداله. - - - - Active preset: %1 (modified). Press Reset Values to go back to how it ships. - الإعداد المسبق النشط: %1 (معدّل). اضغط على إعادة تعيين القيم للعودة إلى الإعدادات الافتراضية. - - - - Active preset: %1 - الإعداد المسبق النشط: %1 - - - - Enabled - تفعيل - - - - Disabled - تعطيل - - - - Reset to defaults - إعادة التعيين إلى الإعدادات الافتراضية - - - - Effect '%1' was not found. - لم يتم العثور على التأثير '1%'. - - - - Effect failed to compile: -%1 - فشل تجميع التأثير: -%1 - - - - No usable ReShade FX effects were found. Place .fx files in the post_shaders folder. - No usable ReShade FX effects were found. Place .fx files in the post_shaders folder. - - ConfigureProfileManager @@ -5104,7 +4986,7 @@ Once deleted, these can NOT be recovered. Are you 100% sure you want to delete t Unable to create directory %1 for storing user images. - تعذر إنشاء المجلد %1 لتخزين صور المستخدم. + غير قادر على إنشاء الدليل %1 لتخزين صور المستخدم. @@ -5157,7 +5039,7 @@ UUID: %2 Configure Ring Controller - إعدادات حلقة ذراع التحكم + إعدادات حلقة وحدة التحكم @@ -5194,7 +5076,7 @@ UUID: %2 Enable Ring Input - تفعيل إدخال الحلقة + تمكين إدخال الحلقة @@ -5242,12 +5124,12 @@ UUID: %2 Error enabling ring input - حدث خطأ أثناء تفعيل إدخال الحلقة + حدث خطأ أثناء تمكين إدخال الحلقة Direct Joycon driver is not enabled - لم يتم تفعيل برنامج تشغيل جوي كون المباشر + لم يتم تمكين برنامج تشغيل جوي كون المباشر @@ -5257,12 +5139,12 @@ UUID: %2 The current mapped device doesn't support the ring controller - الجهاز المعين حاليا لا يدعم ذراع التحكم بالحلقة + الجهاز المُعيَّن حاليًا لا يدعم وحدة التحكم بالحلقة The current mapped device doesn't have a ring attached - الجهاز المعين حاليا ليس به حلقة مرفقة + الجهاز المُعَيَّن حاليًا ليس به حلقة مُرفقة @@ -5277,7 +5159,7 @@ UUID: %2 [waiting] - [جارٍ الانتظار] + [انتظار] @@ -5334,7 +5216,7 @@ UUID: %2 Enable TAS features - TAS تفعيل ميزات + TAS تمكين ميزات @@ -5669,7 +5551,7 @@ Drag points to change position, or double-click table cells to edit values. English - English + الإنجليزية @@ -5755,7 +5637,7 @@ Drag points to change position, or double-click table cells to edit values. Enable Accurate Vibration - تفعيل الاهتزاز الدقيق + تمكين الاهتزاز الدقيق @@ -5798,7 +5680,7 @@ Drag points to change position, or double-click table cells to edit values. Discord Presence - التواجد على ديسكورد + الحضور على ديسكورد @@ -5896,7 +5778,7 @@ Drag points to change position, or double-click table cells to edit values. Delete all data in this directory. THIS IS 100% IRREVERSABLE! - حذف جميع البيانات الموجودة في هذا المجلد. هذه العملية لا رجعة فيها بنسبة 100%! + حذف جميع البيانات الموجودة في هذا الدليل. هذا الإجراء لا رجعة فيه بنسبة 100%! @@ -5990,7 +5872,7 @@ Drag points to change position, or double-click table cells to edit values. Connecting - جارٍ الاتصال + الاتصال @@ -6113,50 +5995,50 @@ Please go to Configure -> System -> Network and make a selection. GRenderWindow - - + + OpenGL not available! OpenGL غير متوفر! - + OpenGL shared contexts are not supported. OpenGL لا يتم دعم السياقات المشتركة - + Eden has not been compiled with OpenGL support. OpenGL لم يتم تجميع إيدن بدعم - - - + + + Error while initializing OpenGL! OpenGL حدث خطأ أثناء تهيئة - + Your GPU may not support OpenGL, or you do not have the latest graphics driver. أو قد لا يكون لديك أحدث برنامج تشغيل للرسومات OpenGL قد لا تدعم بطاقة الرسومات الخاصة بك - + Error while initializing OpenGL 4.6! OpenGL 4.6 حدث خطأ أثناء تهيئة - + Your GPU may not support OpenGL 4.6, or you do not have the latest graphics driver.<br><br>GL Renderer:<br>%1 أو قد لا يكون لديك أحدث برنامج تشغيل للرسومات OpenGL 4.6 قد لا تدعم بطاقة الرسومات الخاصة بك.<br><br>GL Renderer:<br>%1 - + Your GPU may not support one or more required OpenGL extensions. Please ensure you have the latest graphics driver.<br><br>GL Renderer:<br>%1<br><br>Unsupported extensions:<br>%2 قد لا تدعم وحدة معالجة الرسومات لديك ملحقًا واحدًا أو أكثر من ملحقات OpenGL المطلوبة. يُرجى التأكد من تثبيت أحدث برنامج تشغيل للرسومات.<br><br>GL Renderer:<br>1%<br><br>إضافات غير مدعومة: <br>2% - + This build doesn't have OpenGL support. هذا الإصدار لا يدعم OpenGL. @@ -6978,42 +6860,42 @@ Debug Message: 1080p إعادة تعيين حجم النافذة إلى - + &Multiplayer &متعدد اللاعبين - + &Tools &أدوات - + Am&iibo أم&يبو - + Launch &Applet تشغيل &التطبيق المصغر - + &TAS &TAS - + &Create Home Menu Shortcut &إنشاء اختصار لقائمة الشاشة الرئيسية - + Install &Firmware تثبيت &الفيرموير - + &Help &مساعدة @@ -7039,7 +6921,7 @@ Debug Message: - + &Pause &إيقاف مؤقت @@ -7076,7 +6958,7 @@ Debug Message: Enable Overlay Display Applet - تفعيل التطبيق المصغر لعرض الطبقة + تمكين التطبيق المصغر لعرض الطبقة @@ -7140,584 +7022,578 @@ Debug Message: - &User Handbook - &دليل المستخدم + Open &Quickstart Guide + دليل &البدء السريع - + + &FAQ + &الأسئلة الشائعة + + + &Capture Screenshot &التقاط لقطة للشاشة - + &Album &الألبوم - + &Set Nickname and Owner &تعيين الاسم المستعار والمالك - + &Delete Game Data حذف بيانات اللعبة - + &Restore Amiibo &استعادة أميبو - + &Format Amiibo &تنسيق أميبو - + &Mii Editor &Mii محرر - + &Configure TAS... &TAS إعدادات - + Configure C&urrent Game... إعدادات اللعبة ال&حالية - - + + &Start &بدء - + &Reset &إعادة تعيين - - + + R&ecord ت&سجيل - + Open &Controller Menu &قائمة ذراع التحكم - + Install Decryption &Keys تثبيت &مفاتيح فك التشفير - + &Home Menu &القائمة الرئيسية - + &Desktop &سطح المكتب - + &Application Menu &قائمة التطبيقات - + &Root Data Folder &مجلد البيانات الرئيسي - + &NAND Folder &مجلد الذاكرة الداخلية - + &SDMC Folder &مجلد بطاقة الذاكرة - + &Mod Folder &مجلد التعديلات - + &Log Folder &مجلد السجلات - + From Folder من مجلد - + From ZIP من ملف مضغوط - + &Eden Dependencies &تبعيات إيدن - + &Data Manager &إدارة البيانات - + &Tree View &عرض قائمة - + &Grid View &عرض شبكة - + Game Icon Size حجم أيقونة اللعبة - - + + None لا شيء - + Show Game &Name عرض اسم &اللعبة - + Show &Performance Overlay عرض &طبقة الأداء - - - Post-Processing &Shaders... - المعالجة اللاحقة &الظلال... - &Carousel View &عرض دائري - + Small (32x32) - (32x32) صغير + صغير (32x32) - + Standard (64x64) - (64x64) قياسي + قياسي (64x64) - + Large (128x128) - (128x128) كبير + كبير (128x128) - + Full Size (256x256) - (256x256) حجم كامل + حجم كامل (256x256) - + Broken Vulkan Installation Detected Vulkan تم الكشف عن تلف في تثبيت - + Vulkan initialization failed during boot. أثناء التشغيل Vulkan فشل تهيئة. - + Running a game TRANSLATORS: This string is shown to the user to explain why yuzu needs to prevent the computer from sleeping تشغيل لعبة - + Loading Web Applet... جارٍ تحميل تطبيق الويب... - - + + Disable Web Applet تعطيل تطبيق الويب - + Disabling the web applet can lead to undefined behavior and should only be used with Super Mario 3D All-Stars. Are you sure you want to disable the web applet? (This can be re-enabled in the Debug settings.) قد يؤدي تعطيل أداة الويب إلى سلوك غير محدد، ويجب استخدامه فقط مع لعبة Super Mario 3D All-Stars. هل أنت متأكد من رغبتك في تعطيل أداة الويب؟ (يمكن إعادة تفعيلها في إعدادات التصحيح.) - + The amount of shaders currently being built كمية التظليلات التي يتم بناؤها حاليًا - + The current selected resolution scaling multiplier. مضاعف قياس الدقة المحددة حالياً. - + Current emulation speed. Values higher or lower than 100% indicate emulation is running faster or slower than a Switch. Switch سرعة المحاكاة الحالية. تشير القيم الأعلى أو الأقل من 100٪ إلى أن المحاكاة تعمل بشكل أسرع أو أبطأ من. - + How many frames per second the game is currently displaying. This will vary from game to game and scene to scene. عدد الإطارات في الثانية التي تعرضها اللعبة حاليًا. يختلف هذا العدد من لعبة إلى أخرى ومن مشهد إلى آخر. - + Time taken to emulate a Switch frame, not counting framelimiting or v-sync. For full-speed emulation this should be at most 16.67 ms. الوقت المستغرق لمحاكاة إطار على جهاز سويتش، بدون احتساب تحديد الإطارات أو المزامنة العمودية. لمحاكاة بسرعة كاملة، يجب أن يكون هذا في حدود 16.67 مللي ثانية كحد أقصى. - + Unmute إلغاء كتم الصوت - + Mute كتم الصوت - + Reset Volume إعادة تعيين مستوى الصوت - - Configure Effects... - إعداد التأثيرات... - - - + &Clear Recent Files &مسح الملفات الحديثة - + &Continue &متابعة - + Warning: Outdated Game Format تحذير: تنسيق اللعبة قديم - + You are using the deconstructed ROM directory format for this game, which is an outdated format that has been superseded by others such as NCA, NAX, XCI, or NSP. Deconstructed ROM directories lack icons, metadata, and update support.<br>For an explanation of the various Switch formats Eden supports, out our user handbook. This message will not be shown again. أنت تستخدم تنسيق مجلد ROM المُفكك لهذه اللعبة، وهو تنسيق قديم استُبدل بآخر مثل NCA وNAX وXCI وNSP. تفتقر مجلدات ROM المُفككة إلى الأيقونات والبيانات الوصفية ودعم التحديثات. <br>لتوضيح تنسيقات Switch المختلفة التي يدعمها Eden، يُرجى مراجعة دليل المستخدم. لن تظهر هذه الرسالة مرة أخرى. - - + + Error while loading ROM! ROM خطأ أثناء تحميل - + The ROM format is not supported. غير مدعوم ROM تنسيق. - + An error occurred initializing the video core. حدث خطأ أثناء تهيئة نواة الفيديو. - - This is usually caused by outdated GPU drivers. Please see the log for more details. See: <a href='https://git.eden-emu.dev/eden-emu/eden/src/branch/master/docs/user/HowToAccessLogs.md'>How to access log files</a>. - عادةً ما يحدث هذا بسبب برامج تشغيل وحدة معالجة الرسومات القديمة. يرجى الاطلاع على السجل لمزيد من التفاصيل. انظر: -<a href='https://git.eden-emu.dev/eden-emu/eden/src/branch/master/docs/user/HowToAccessLogs.md'>كيفية الوصول إلى ملفات السجلات</a>. + + Eden has encountered an error while running the video core. This is usually caused by outdated GPU drivers, including integrated ones. Please see the log for more details. For more information on accessing the log, please see the following page: <a href='https://yuzu-mirror.github.io/help/reference/log-files/'>How to Upload the Log File</a>. + واجه إيدن خطأً أثناء تشغيل نواة الفيديو. عادةً ما يكون السبب هو برامج تشغيل وحدة معالجة الرسومات القديمة، بما في ذلك المدمجة منها. يُرجى مراجعة السجل لمزيد من التفاصيل. لمزيد من المعلومات حول الوصول إلى السجل، يُرجى زيارة الصفحة التالية: <a href='https://yuzu-mirror.github.io/help/reference/log-files/'>كيفيه رفع سجلات الإخطاء</a>. - + Error while loading ROM! %1 %1 signifies a numeric error code. حدث خطأ أثناء تحميل ROM! %1 - + %1<br>Please redump your files or ask on Discord/Stoat for help. %1 signifies an error string. %1<br>Discord/Stoat يرجى إعادة تحميل ملفاتك أو طلب المساعدة على - + An unknown error occurred. Please see the log for more details. حدث خطأ غير معروف. يرجى الاطلاع على السجل لمزيد من التفاصيل. - - + + (64-bit) (64-bit) - - + + (32-bit) (32-bit) - - + + %1 %2 %1 is the title name. %2 indicates if the title is 64-bit or 32-bit %1 %2 - + Closing software... جارٍ إغلاق البرنامج... - + Save Data بيانات الحفظ - + Mod Data بيانات التعديل - + Error Opening %1 Folder خطأ في فتح المجلد %1 - - + + Folder does not exist! المجلد غير موجود! - + Remove Installed Game Contents? إزالة محتويات اللعبة المثبتة؟ - + Remove Installed Game Update? إزالة تحديث اللعبة المثبت؟ - + Remove Installed Game DLC? إزالة المحتوى القابل للتنزيل المثبت للعبة؟ - + Remove Entry إزالة الإدخال - + Delete OpenGL Transferable Shader Cache? OpenGL Shader حذف ذاكرة التخزين المؤقتة القابلة للنقل لـ - + Delete Vulkan Transferable Shader Cache? Vulkan Shader حذف ذاكرة التخزين المؤقتة القابلة للنقل لـ - + Delete All Transferable Shader Caches? حذف جميع مخازن ذاكرة التظليل القابلة للنقل؟ - + Remove Custom Game Configuration? إزالة إعدادات اللعبة المخصص؟ - + Remove Cache Storage? إزالة ذاكرة التخزين المؤقتة؟ - + Remove File إزالة الملف - + Remove Play Time Data إزالة بيانات زمن اللعب - + Reset play time? إعادة تعيين زمن اللعب؟ - - + + RomFS Extraction Failed! RomFS فشل استخراج - + There was an error copying the RomFS files or the user cancelled the operation. أو قام المستخدم بإلغاء العملية RomFS حدث خطأ أثناء نسخ ملفات - + Full كامل - + Skeleton Skeleton - + Select RomFS Dump Mode RomFS حدد وضع تفريغ - + Please select the how you would like the RomFS dumped.<br>Full will copy all of the files into the new directory while <br>skeleton will only create the directory structure. الرجاء تحديد الطريقة التي تريد بها تفريغ RomFS. <br>سيتم نسخ جميع الملفات إلى المجلد الجديد في أثناء <br>قيام الهيكل العظمي بإنشاء بنية المجلد فقط. - + There is not enough free space at %1 to extract the RomFS. Please free up space or select a different dump directory at Emulation > Configure > System > Filesystem > Dump Root لا توجد مساحة فارغة كافية في %1 لاستخراج نظام الملفات RomFS. يُرجى تحرير مساحة أو اختيار مجلد تفريغ آخر من: المحاكاة > التكوين > النظام > نظام الملفات > تفريغ الجذر. - + Extracting RomFS... RomFS استخراج... - - + + Cancel إلغاء - + RomFS Extraction Succeeded! بنجاح RomFS تم استخراج! - + The operation completed successfully. تمت العملية بنجاح. - + Error Opening %1 خطأ في فتح %1 - + Select Directory حدد المجلد - + Properties خصائص - + The game properties could not be loaded. تعذر تحميل خصائص اللعبة. - + Switch Executable (%1);;All Files (*.*) %1 is an identifier for the Switch executable file extensions. تشغيل الملف القابل للتنفيذ (%1)؛؛جميع الملفات (*.*) - + Load File تحميل الملف - + Open Extracted ROM Directory المستخرج ROM فتح ملف - + Invalid Directory Selected تم تحديد مجلد غير صالح - + The directory you have selected does not contain a 'main' file. لا يحتوي المجلد الذي حددته على ملف رئيسي - + Installable Switch File (*.nca *.nsp *.xci);;Nintendo Content Archive (*.nca);;Nintendo Submission Package (*.nsp);;NX Cartridge Image (*.xci) Installable Switch File (*.nca *.nsp *.xci);;Nintendo Content Archive (*.nca);;Nintendo Submission Package (*.nsp);;NX Cartridge Image (*.xci) - + Install Files تثبيت الملفات - + %n file(s) remaining %n ملف (ملفات) متبقية%n ملف (ملفات) متبقية%n ملف (ملفات) متبقية%n ملف (ملفات) متبقية%n ملف (ملفات) متبقية%n ملف (ملفات) متبقية - + Installing file "%1"... تثبيت الملف ”%1“... - - + + Install Results نتائج التثبيت - + To avoid possible conflicts, we discourage users from installing base games to the NAND. Please, only use this feature to install updates and DLC. لتجنب أي تعارضات محتملة، ننصح المستخدمين بعدم تثبيت الألعاب الأساسية على الذاكرة الداخلية. يرجى استخدام هذه الميزة فقط لتثبيت التحديثات والمحتوى القابل للتنزيل. - + %n file(s) were newly installed %n تم تثبيت ملف (ملفات) جديدة @@ -7729,7 +7605,7 @@ Please, only use this feature to install updates and DLC. - + %n file(s) were overwritten %n تم استبدال ملف (ملفات) @@ -7741,7 +7617,7 @@ Please, only use this feature to install updates and DLC. - + %n file(s) failed to install %n فشل تثبيت ملف (ملفات) @@ -7753,324 +7629,314 @@ Please, only use this feature to install updates and DLC. - + System Application تطبيق النظام - + System Archive أرشيف النظام - + System Application Update تحديث تطبيق النظام - + Firmware Package (Type A) حزمة الفيرموير (النوع أ) - + Firmware Package (Type B) حزمة الفيرموير (النوع ب) - + Game لعبة - + Game Update تحديث اللعبة - + Game DLC الخاص باللعبة DLC الـ - + Delta Title Delta عنوان - + Select NCA Install Type... NCA حدد نوع تثبيت... - + Please select the type of title you would like to install this NCA as: (In most instances, the default 'Game' is fine.) يرجى تحديد نوع اللعبة التي ترغب في تثبيت NCA عليها: (في معظم الحالات، يكون الإعداد الافتراضي "لعبة" مناسبًا.) - + Failed to Install فشل التثبيت - + The title type you selected for the NCA is invalid. غير صالح NCA نوع العنوان الذي حددته لـ. - + File not found لم يتم العثور على الملف - + File "%1" not found لم يتم العثور على الملف "%1" - + OK موافق - + Function Disabled الوظيفة معطلة - + Compatibility list reporting is currently disabled. Check back later! تقارير قائمة التوافق معطلة حاليًا. يرجى التحقق لاحقًا! - + Error opening URL خطأ في فتح الرابط - + Unable to open the URL "%1". تعذر فتح الرابط ”%1“ - + TAS Recording TAS تسجيل - + Overwrite file of player 1? الكتابة فوق ملف اللاعب 1؟ - + Invalid config detected تم اكتشاف إعدادات غير صالح - + Handheld controller can't be used on docked mode. Pro controller will be selected. لا يمكن استخدام وحدة التحكم المحمولة في وضع الإرساء. سيتم اختيار وحدة تحكم احترافية. - - + + Amiibo أميبو - - + + The current amiibo has been removed تمت إزالة أميبو الحالي. - + Error خطأ - - + + The current game is not looking for amiibos اللعبة الحالية لا تبحث عن أميبو - + Amiibo File (%1);; All Files (*.*) جميع الملفات (%1)؛؛ ملف أميبو (*.*) - + Load Amiibo تحميل أميبو - + Error loading Amiibo data خطأ أثناء تحميل بيانات أميبو - + The selected file is not a valid amiibo الملف المحدد ليس أميبو صالح - + The selected file is already on use الملف المحدد قيد الاستخدام بالفعل - + An unknown error occurred حدث خطأ غير معروف - + No firmware available لا يوجد فيرموير متوفر - + Firmware Corrupted الفيرموير تالف - + Unknown applet تطبيق غير معروف - + Applet doesn't map to a known value. لا يرتبط التطبيق المصغر بقيمة معروفة. - + Record not found لم يتم العثور على السجل - + Applet not found. Please reinstall firmware. لم يتم العثور على التطبيق المصغر. يرجى إعادة تثبيت الفيرموير. - + Capture Screenshot التقاط لقطة شاشة - + PNG Image (*.png) PNG Image (*.png) - + TAS state: Running %1/%2 حالة TAS: تشغيل %1/%2 - + TAS state: Recording %1 حالة TAS: تسجيل %1 - + TAS state: Idle %1/%2 حالة TAS: خامل %1/%2 - + TAS State: Invalid حالة TAS: غير صالحة - + &Stop Running &إيقاف التشغيل - + Stop R&ecording إيقاف ال&تسجيل - + Building: %n shader(s) بناء: %n تظليل(ات)بناء: %n تظليل(ات)بناء: %n تظليل(ات)بناء: %n تظليل(ات)بناء: %n تظليل(ات)بناء: %n تظليل(ات) - + Scale: %1x %1 is the resolution scaling factor الدقة: %1x - + Speed: %1% / %2% السرعة: %1% / %2% - + Speed: %1% السرعة: %1% - + Game: %1 FPS - اللعبة: %1 إطار + اللعبة: %1 FPS - + Frame: %1 ms الإطار: %1 ms - + NO AA NO AA - - NO FX - NO FX - - - - FX - FX - - - + VOLUME: MUTE الصوت: كتم الصوت - + VOLUME: %1% Volume percentage (e.g. 50%) %1% :الصوت - + Derivation Components Missing مكونات الاشتقاق مفقودة - + Decryption keys are missing. Install them now? مفاتيح فك التشفير مفقودة. هل تريد تثبيتها الآن؟ - + Wayland Detected! Wayland تم الكشف عن - + Wayland is known to have significant performance issues and mysterious bugs. It's recommended to use X11 instead. @@ -8081,74 +7947,74 @@ Would you like to force it for future launches? هل ترغب في فرض استخدامه في عمليات التشغيل المستقبلية؟ - + Use X11 X11 استخدم - + Continue with Wayland Wayland متابعة مع - + Don't show again لا تعرض مرة أخرى - + Restart Required إعادة التشغيل مطلوبة - + Restart Eden to apply the X11 backend. X11 أعد تشغيل إيدن لتطبيق الخلفية - + Slow بطيء - + Turbo تيربو - + Unlocked إلغاء القفل - + Select RomFS Dump Target RomFS حدد هدف تفريغ - + Please select which RomFS you would like to dump. الذي تريد تفريغه RomFS الرجاء تحديد - + Are you sure you want to close Eden? هل أنت متأكد من أنك تريد إغلاق إيدن؟ - - - + + + Eden إيدن - + Are you sure you want to stop the emulation? Any unsaved progress will be lost. هل أنت متأكد من أنك تريد إيقاف المحاكاة؟ سيتم فقدان أي تقدم لم يتم حفظه. - + The currently running application has requested Eden to not exit. Would you like to bypass this and exit anyway? @@ -8321,7 +8187,7 @@ If you wish to clean up the files which were left in the old data location, you %1 -إذا كنت ترغب في إزالة الملفات التي بقيت في موقع البيانات القديم، فيمكنك القيام بذلك عن طريق حذف المجلد التالي: +إذا كنت ترغب في تنظيف الملفات التي تركت في موقع البيانات القديم، يمكنك القيام بذلك عن طريق حذف الدليل التالي: %1 @@ -8667,7 +8533,7 @@ p, li { white-space: pre-wrap; } FPS - إطار في الثانية + معدل الإطارات في الثانية @@ -8677,7 +8543,7 @@ p, li { white-space: pre-wrap; } %1 fps - %1 إطار في الثانية + %1 معدل الإطارات في الثانية @@ -9273,7 +9139,7 @@ p, li { white-space: pre-wrap; } Creation Date - تاريخ الإنشاء + تاريخ الانشاء @@ -9318,7 +9184,7 @@ p, li { white-space: pre-wrap; } No game data present - لا توجد بيانات اللعبة + لا توجد بيانات للعبة @@ -9333,7 +9199,7 @@ p, li { white-space: pre-wrap; } Set nickname and owner: - :تعيين الاسم المستعار والمالك + تعيين الاسم المستعار والمالك @@ -9350,278 +9216,278 @@ p, li { white-space: pre-wrap; } - This game may require firmware to function properly, and you don't have any installed. Please install firmware before launching, or press "OK" to launch anyways. - قد تتطلب هذه اللعبة برنامجاً ثابتاً لتعمل بشكل صحيح، ولم يتم تثبيت أي منها لديك. يرجى تثبيت البرنامج الثابت قبل التشغيل، أو الضغط على "موافق" للتشغيل على أية حال. + The game you are trying to launch requires firmware to boot or to get past the opening menu. Please <a href='https://yuzu-mirror.github.io/help/quickstart'>dump and install firmware</a>, or press "OK" to launch anyways. + اللعبة التي تحاول تشغيلها تتطلب فيرموير للتشغيل أو لتجاوز قائمة الفتح. يُرجى <a href='https://yuzu-mirror.github.io/help/quickstart'>تفريغ فيرموير وتثبيتها</a>، أو اضغط "حسنًا" للعب على أي حال - + Installing Firmware... تثبيت الفيرموير... - - - - - + + + + + Cancel إلغاء - + Firmware Install Failed فشل تثبيت الفيرموير - + Firmware Install Succeeded تم تثبيت الفيرموير بنجاح - + Firmware integrity verification failed! فشل التحقق من سلامة الفيرموير! - - + + Verification failed for the following files: %1 - :فشل التحقق من الملفات التالية + فشل التحقق من الملفات التالية: %1 - - + + Verifying integrity... جارٍ التحقق من السلامة... - - + + Integrity verification succeeded! تم التحقق من السلامة بنجاح! - - + + The operation completed successfully. اكتملت العملية بنجاح. - - + + Integrity verification failed! فشل التحقق من السلامة! - + File contents may be corrupt or missing. قد تكون محتويات الملف تالفة أو مفقودة. - + Integrity verification couldn't be performed تعذر إجراء التحقق من السلامة - + Firmware installation cancelled, firmware may be in a bad state or corrupted. File contents could not be checked for validity. تم إلغاء تثبيت الفيرموير، قد يكون الفيرموير في حالة سيئة أو تآلف. تعذر التحقق من صحة محتويات الملف. - + Select Dumped Keys Location حدد موقع المفاتيح المفرغة - + Decryption Keys install succeeded تم تثبيت مفاتيح فك التشفير بنجاح - + Decryption Keys install failed فشل تثبيت مفاتيح فك التشفير - + Orphaned Profiles Detected! تم الكشف عن ملفات تعريف مهملة! - + UNEXPECTED BAD THINGS MAY HAPPEN IF YOU DON'T READ THIS!<br>Eden has detected the following save directories with no attached profile:<br>%1<br><br>The following profiles are valid:<br>%2<br><br>Click "OK" to open your save folder and fix up your profiles.<br>Hint: copy the contents of the largest or last-modified folder elsewhere, delete all orphaned profiles, and move your copied contents to the good profile.<br><br>Still confused? See the <a href='https://git.eden-emu.dev/eden-emu/eden/src/branch/master/docs/user/Orphaned.md'>help page</a>.<br> قد تحدث أمور سيئة غير متوقعة إذا لم تقرأ هذا<br>!لقد اكتشف إيدن مجلدات الحفظ التالية بدون ملف تعريف مرفق:<br>%1<br><br>ملفات التعريف التالية صالحة:<br>%2<br><br>انقر على ”موافق“ لفتح مجلد الحفظ وإصلاح ملفات التعريف الخاصة بك.<br>تلميح: انسخ محتويات المجلد الأكبر أو آخر مجلد تم تعديله إلى مكان آخر، واحذف جميع ملفات التعريف اليتيمة، وانقل المحتويات المنسوخة إلى ملف التعريف الصحيح.<br><br>هل ما زلت تشعر بالارتباك؟ انظر إلى <a href='https://git.eden-emu.dev/eden-emu/eden/src/branch/master/docs/user/Orphaned.md'>صفحة المساعدة</a>.<br> - + Really clear data? مسح البيانات بالفعل؟ - + Important data may be lost! قد يتم فقدان بيانات مهمة! - + Are you REALLY sure? هل أنت متأكد حقًا؟ - + Once deleted, your data will NOT come back! Only do this if you're 100% sure you want to delete this data. بمجرد حذفها، لن تتمكن من استعادة بياناتك! قم بذلك فقط إذا كنت متأكدًا بنسبة 100٪ أنك تريد حذف هذه البيانات. - + Clearing... إزالة... - + Select Export Location حدد موقع التصدير - + %1.zip %1.zip - - - + + + Zipped Archives (*.zip) Zipped Archives (*.zip) - + Exporting data. This may take a while... تصدير البيانات. قد يستغرق هذا بعض الوقت... - + Exporting التصدير - + Exported Successfully تم التصدير بنجاح - + Data was exported successfully. تم تصدير البيانات بنجاح. - + Export Cancelled تم إلغاء التصدير - + Export was cancelled by the user. تم إلغاء التصدير من قبل المستخدم. - + Export Failed فشل التصدير - + Ensure you have write permissions on the targeted directory and try again. تأكد من أن لديك أذونات الكتابة على المجلد المحدد وحاول مرة أخرى. - + Select Import Location حدد موقع الاستيراد - + Import Warning تحذير الاستيراد - + All previous data in this directory will be deleted. Are you sure you wish to proceed? سيتم حذف جميع البيانات السابقة في هذا المجلد. هل أنت متأكد من رغبتك في المتابعة؟ - + Importing data. This may take a while... استيراد البيانات. قد يستغرق هذا بعض الوقت... - + Importing استيراد - + Imported Successfully تم الاستيراد بنجاح - + Data was imported successfully. تم استيراد البيانات بنجاح. - + Import Cancelled تم إلغاء الاستيراد - + Import was cancelled by the user. تم إلغاء الاستيراد من قبل المستخدم. - + Import Failed فشل الاستيراد - + Ensure you have read permissions on the targeted directory and try again. تأكد من أن لديك أذونات قراءة على المجلد المحدد وحاول مرة أخرى. - + Keys not installed المفاتيح غير مثبتة - + Install decryption keys and restart Eden before attempting to install firmware. قم بتثبيت مفاتيح فك التشفير وأعد تشغيل إيدن قبل محاولة تثبيت الفيرموير. - + Select Dumped Firmware Source Location حدد موقع مصدر الفيرموير المفرغة - + Select Dumped Firmware ZIP حدد ملف الفيرموير المضغوط الذي تم تفريغه - + Firmware cleanup failed فشل مسح الفيرموير - + Failed to clean up extracted firmware cache. Check write permissions in the system temp directory and try again. OS reported error: %1 @@ -9653,7 +9519,7 @@ OS reported error: %1 %1 To: %2 - :تعذر ربط المجلد + تعذر ربط المجلد: %1 To: %2 @@ -10552,7 +10418,7 @@ Please try again or contact the developer of the software. Select a user: - :حدد مستخدمًا + حدد مستخدمًا: diff --git a/dist/languages/ca.ts b/dist/languages/ca.ts index 534d4e4af1..dd295efbb2 100644 --- a/dist/languages/ca.ts +++ b/dist/languages/ca.ts @@ -569,80 +569,70 @@ FXAA can produce a more stable picture in lower resolutions. - - Enable post-processing effects - - - - - Applies post-processing effects to the final image. - - - - + Fullscreen Mode: Mode pantalla completa: - + The method used to render the window in fullscreen. Borderless offers the best compatibility with the on-screen keyboard that some games request for input. Exclusive fullscreen may offer better performance and better Freesync/Gsync support. - + Aspect Ratio: Relació d'aspecte: - + Stretches the renderer to fit the specified aspect ratio. Most games only support 16:9, so modifications are required to get other ratios. Also controls the aspect ratio of captured screenshots. - + Use persistent pipeline cache - + Allows saving shaders to storage for faster loading on following game boots. Disabling it is only intended for debugging. - + Use asynchronous GPU emulation - + Uses an extra CPU thread for rendering. This option should always remain enabled. - + NVDEC emulation: Emulació NVDEC: - + Specifies how videos should be decoded. It can either use the CPU or the GPU for decoding, or perform no decoding at all (black screen on videos). In most cases, GPU decoding provides the best performance. - + ASTC Decoding Method: - + This option controls how ASTC textures should be decoded. CPU: Use the CPU for decoding. GPU: Use the GPU's compute shaders to decode ASTC textures (recommended). @@ -651,75 +641,55 @@ stuttering but may present artifacts. - + ASTC Recompression Method: - + Most GPUs lack support for ASTC textures and must decompress to anintermediate format: RGBA8. BC1/BC3: The intermediate format will be recompressed to BC1 or BC3 format, saving VRAM but degrading image quality. - + Frame Pacing Mode (Vulkan only) - + Controls how the emulator manages frame pacing to reduce stuttering and make the frame rate smoother and more consistent. - + VRAM Usage Mode: - + Selects whether the emulator should prefer to conserve memory or make maximum usage of available video memory for performance. Aggressive mode may impact performance of other applications such as recording software. - + Skip CPU Inner Invalidation - + Skips certain cache invalidations during memory updates, reducing CPU usage and improving latency. This may cause soft-crashes. - - GPU Readback Before NCE Invalidation - - - - - Flushes GPU buffer data back to guest memory before NCE invalidates the whole guest page, preserving it while the CPU store proceeds. - - - - - Patch Runtime NROs for NCE - - - - - Applies NCE code patches to runtime-loaded NRO modules.This is required for some games to run correctly. - - - - + VSync Mode: Mode de sincronització vertical: - + FIFO (VSync) does not drop frames or exhibit tearing but is limited by the screen refresh rate. FIFO Relaxed allows tearing as it recovers from a slow down. Mailbox can have lower latency than FIFO and does not tear but may drop frames. @@ -727,1371 +697,1409 @@ Immediate (no synchronization) presents whatever is available and can exhibit te - + Sync Memory Operations - + Ensures data consistency between compute and memory operations. This option fixes issues in games, but may degrade performance. Unreal Engine 4 games often see the most significant changes thereof. - + Enable asynchronous presentation (Vulkan only) - + Slightly improves performance by moving presentation to a separate CPU thread. - + Force maximum clocks (Vulkan only) - + Runs work in the background while waiting for graphics commands to keep the GPU from lowering its clock speed. - + Anisotropic Filtering: Filtrat anisotròpic: - + Controls the quality of texture rendering at oblique angles. Safe to set at 16x on most GPUs. - + GPU Mode: Mode de la GPU: - + Controls the GPU emulation mode. Most games render fine with Fast, but Accurate is still required for some. Particles tend to only render correctly with Accurate mode. - + DMA Accuracy: Precisió DMA: - + Controls the DMA read mode. Unsafe is faster, while Safe is more stable and can fix issues in some games. Default follows the GPU Accuracy setting. - + GPU Fence Behavior: - + Controls the GPU fence synchronization behavior. Immediate is the fastest option, but can introduce some issues. Balanced offers better compatibility and may fix issues in some games. Accurate further improves compatibility at the cost of some performance. -Default follows the GPU Mode setting. +Strict is the slowest option, but can fix issues that require stricter synchronization. +Default follows the GPU Accuracy setting. - + + Enable GPU buffer readback + + + + + Preserves GPU-modified data by reading it back before uploading. +Some games require this to render certain effects properly. + + + + Enable asynchronous shader compilation - + May reduce shader stutter. - + GPU Clocks - + Makes the game believe GPU work finishes faster than it does, so it stops lowering resolution and render distance to fit the Switch's clocks. - + GPU Unswizzle - + Accelerates BCn 3D texture decoding using GPU compute. Disable if experiencing crashes or graphical glitches. - + GPU Unswizzle Max Texture Size - + Sets the maximum size (MiB) for GPU-based texture unswizzling. While the GPU is faster for medium and large textures, the CPU may be more efficient for very small ones. Adjust this to find the balance between GPU acceleration and CPU overhead. - + GPU Unswizzle Stream Size - + Sets the maximum amount of texture data (in MiB) processed per frame. Higher values can reduce stutter during texture loading but may impact frame consistency. - + GPU Unswizzle Chunk Size - + Determines the number of depth slices processed in a single dispatch. Increasing this can improve throughput on high-end GPUs but may cause TDR or driver timeouts on weaker hardware. - + Use Vulkan pipeline cache - + Enables GPU vendor-specific pipeline cache. This option can improve shader loading time significantly in cases where the Vulkan driver does not store pipeline cache files internally. - + Enable Compute Pipelines (Intel Vulkan Only) - + Required by some games. This setting only exists for Intel proprietary drivers and may crash if enabled. Compute pipelines are always enabled on all other drivers. - + Enable Reactive Flushing - + Uses reactive flushing instead of predictive flushing, allowing more accurate memory syncing. - + Sync to framerate of video playback - + Run the game at normal speed during video playback, even when the framerate is unlocked. - + Barrier feedback loops - + Improves rendering of transparency effects in specific games. - + Enable buffer history - + Enables access to previous buffer states. This option may improve rendering quality and performance consistency in some games. - + Fix bloom effects - + Removes bloom in Burnout. - + + Enable Legacy Rescale Pass + + + + + May fix rescale issues in some games by relying on behavior from the previous implementation. +Legacy behavior workaround that fixes line artifacts on AMD and Intel GPUs, and grey texture flicker on Nvidia GPUs in Luigis Mansion 3. + + + + Extended Dynamic State - + Controls the number of features that can be used in Extended Dynamic State. Higher states allow for more features and can increase performance, but may cause additional graphical issues. - + Vertex Input Dynamic State - + Enables vertex input dynamic state feature for better quality and performance. - + Sample Shading - + Allows the fragment shader to execute per sample in a multi-sampled fragment instead of once per fragment. Improves graphics quality at the cost of performance. Higher values improve quality but degrade performance. - + RNG Seed Llavor de GNA - + Controls the seed of the random number generator. Mainly used for speedrunning. - + Device Name Nom del dispositiu - + The name of the console. - + Homebrew Args - + Command-line arguments passed to homebrew at launch (e.g. -noglsl). - + Custom RTC Date: - + This option allows to change the clock of the console. Can be used to manipulate time in games. - + The number of seconds from the current unix time - + Language: Idioma: - + This option can be overridden when region setting is auto-select - + Region: Regió: - + The region of the console. - + Time Zone: Zona horària: - + The time zone of the console. - + Sound Output Mode: - + Console Mode: Mode de la consola - + Selects if the console is in Docked or Handheld mode. Games will change their resolution, details and supported controllers and depending on this setting. Setting to Handheld can help improve performance for low end systems. - + Prompt for user profile on boot - + Useful if multiple people use the same PC. - + Pause when not in focus - + Pauses emulation when focusing on other windows. - + Confirm before stopping emulation - + Overrides prompts asking to confirm stopping the emulation. Enabling it bypasses such prompts and directly exits the emulation. - + Hide mouse on inactivity Ocultar el cursor del ratolí en cas d'inactivitat - + Hides the mouse after 2.5s of inactivity. - + + Disable controller applet + + + + + Forcibly disables the use of the controller applet in emulated programs. +When a program attempts to open the controller applet, it is immediately closed. + + + + Check for updates - + Whether or not to check for updates upon startup. - + Enable Gamemode Activa el mode joc - + Force X11 as Graphics Backend - + Custom frontend - + Real applet - - - Disabled - - - - + Never Mai - + On Load - + Always Sempre - + CPU CPU - + GPU GPU - + CPU Asynchronous - + Uncompressed (Best quality) - + BC1 (Low quality) - + BC3 (Medium quality) - - + + Auto Auto - + 30 FPS 30 FPS - + 60 FPS 60 FPS - + 90 FPS 90 FPS - + 120 FPS 120 FPS - + Conservative Conservador - + Aggressive Agressiu - + Vulkan Vulkan - + OpenGL GLSL OpenGL GLSL - + OpenGL GLASM (Assembly Shaders, NVIDIA Only) OpenGL GLASM (Ensamblat d'ombrejadors, només NVIDIA) - + OpenGL SPIR-V (Experimental, AMD/Mesa Only) OpenGL SPIR-V (Experimental, només AMD/Mesa) - + Null Nul - + Fast Ràpid - - - + + + Accurate Precís - - - + + + Default Valor predeterminat - + Unsafe (fast) Insegur (ràpid) - + Safe (stable) Segur (estable) - + Immediate - + Balanced Equilibrat - + + Strict + + + + Unsafe Insegur - + Paranoid (disables most optimizations) Paranoic (desactiva la majoria d'optimitzacions) - + Debugging Depuració - + Dynarmic Dynarmic - + NCE NCE - + Borderless Windowed Finestra sense vores - + Exclusive Fullscreen Pantalla completa exclusiva - + No Video Output Sense sortida de vídeo - + CPU Video Decoding Descodificació de vídeo a la CPU - + GPU Video Decoding (Default) Descodificació de vídeo a la GPU (Valor predeterminat) - + 0.25X (180p/270p) [EXPERIMENTAL] 0.25X (180p/270p) [EXPERIMENTAL] - + 0.5X (360p/540p) [EXPERIMENTAL] 0.5X (360p/540p) [EXPERIMENTAL] - + 0.75X (540p/810p) [EXPERIMENTAL] 0.75X (540p/810p) [EXPERIMENTAL] - + 1X (720p/1080p) 1X (720p/1080p) - + 1.25X (900p/1350p) [EXPERIMENTAL] 1.25X (900p/1350p) [EXPERIMENTAL] - + 1.5X (1080p/1620p) [EXPERIMENTAL] 1.5X (1080p/1620p) [EXPERIMENTAL] - + 2X (1440p/2160p) 2X (1440p/2160p) - + 3X (2160p/3240p) 3X (2160p/3240p) - + 4X (2880p/4320p) 4X (2880p/4320p) - + 5X (3600p/5400p) 5X (3600p/5400p) - + 6X (4320p/6480p) 6X (4320p/6480p) - + 7X (5040p/7560p) 7X (5040p/7560p) - + 8X (5760p/8640p) 8X (5760p/8640p) - + Nearest Neighbor Veí més proper - + Bilinear Bilineal - + Bicubic Bicúbic - + Gaussian Gaussià - + Lanczos Lanczos - + ScaleForce ScaleForce - + AMD FidelityFX Super Resolution Super resolució AMD FidelityFX - + Area Àrea - + MMPX MMPX - + Zero-Tangent Tangència zero - + B-Spline B-Spline - + Mitchell Mitchell - + Spline-1 Spline-1 - + Snapdragon Game Super Resolution - + Snapdragon Game Super Resolution EdgeDir - + None Cap - + FXAA FXAA - + SMAA SMAA - + Default (16:9) Valor predeterminat (16:9) - + Force 4:3 Forçar 4:3 - + Force 21:9 Forçar 21:9 - + Force 16:10 - + Stretch to Window Estirar a la finestra - + Automatic Automàtic - + 2x 2x - + 4x 4x - + 8x 8x - + 16x 16x - + Japanese (日本語) Japonès (日本語) - + American English Anglès americà - + French (français) Francès (français) - + German (Deutsch) Alemany (Deutsch) - + Italian (italiano) Italià (italiano) - + Spanish (español) Castellà (español) - + Chinese Xinès - + Korean (한국어) Coreà (한국어) - + Dutch (Nederlands) Holandès (Nederlands) - + Portuguese (português) Portuguès (português) - + Russian (Русский) Rus (Русский) - + Taiwanese Taiwanès - + British English Anglès britànic - + Canadian French Francès canadenc - + Latin American Spanish Espanyol llatinoamericà - + Simplified Chinese Xinès simplificat - + Traditional Chinese (正體中文) Xinès tradicional (正體中文) - + Brazilian Portuguese (português do Brasil) Portuguès brasiler (português do Brasil) - + Polish (polska) Polonès (polska) - + Thai (แบบไทย) Tailandès (แบบไทย) - - + + Japan Japó - + USA EUA - + Europe Europa - + Australia Austràlia - + China Xina - + Korea Corea - + Taiwan Taiwan - + Auto (%1) Auto select time zone Auto (%1) - + Default (%1) Default time zone Per defecte (%1) - + CET CET - + CST6CDT CST6CDT - + Cuba Cuba - + EET EET - + Egypt Egipte - + Eire Eire - + EST EST - + EST5EDT EST5EDT - + GB GB - + GB-Eire GB-Eire - + GMT GMT - + GMT+0 GMT+0 - + GMT-0 GMT-0 - + GMT0 GMT0 - + Greenwich Greenwich - + Hongkong Hong Kong - + HST HST - + Iceland Islàndia - + Iran Iran - + Israel Isreal - + Jamaica Jamaica - + Kwajalein Kwajalein - + Libya Líbia - + MET MET - + MST MST - + MST7MDT MST7MDT - + Navajo Navajo - + NZ NZ - + NZ-CHAT NZ-CHAT - + Poland Polònia - + Portugal Portugal - + PRC PRC - + PST8PDT PST8PDT - + ROC ROC - + ROK ROK - + Singapore Singapur - + Turkey Turquia - + UCT UCT - + Universal Universal - + UTC UTC - + W-SU W-SU - + WET WET - + Zulu Zulu - + Mono Mono - + Stereo Estèreo - + Surround Envoltant - + 4GB DRAM (Default) 4GB DRAM (Insegur) - + 6GB DRAM (Unsafe) 6GB DRAM (Insegur) - + 8GB DRAM 8GB DRAM - + 10GB DRAM (Unsafe) 10GB DRAM (Insegur) - + 12GB DRAM (Unsafe) 12GB DRAM (Insegur) - + Docked Sobretaula - + Handheld Portàtil + + + + Normal + + - Normal + Boost - Boost - - - - - Overclock - + Always ask (Default) - + Only if game specifies not to stop Tan sols si el joc especifica no parar - + Never ask No preguntar mai - + Very Small (16 MB) - + Small (32 MB) - + Normal (128 MB) - + Large (256 MB) - + Very Large (512 MB) - + Very Low (4 MB) - + Low (8 MB) - + Normal (16 MB) - + Medium (32 MB) - + High (64 MB) - + Very Low (32) - + Low (64) - + Normal (128) - + Medium (256) - + High (512) - + + Disabled + + + + ExtendedDynamicState 1 - + ExtendedDynamicState 2 - + ExtendedDynamicState 3 - + Tree View - + Grid View @@ -3190,38 +3198,33 @@ Would you like to delete the old save data? Color de fons: - + % FSR/SGSR sharpening percentage (e.g. 50%) - - Configure Effects... - - - - + Off Apagat - + VSync Off Vsync Apagat - + Recommended Recomanat - + On Encés - + VSync On VSync Encés @@ -4833,130 +4836,6 @@ Once deleted, these can NOT be recovered. Are you 100% sure you want to delete t - - ConfigurePostProcessing - - - Post-Processing Effects - - - - - Changes apply immediately while a game is running. - - - - - Enable post-processing - - - - - Preset: - - - - - Apply - - - - - Reset Values - - - - - Return every effect to the values the preset ships with. - - - - - Save As... - - - - - Save Preset - - - - - Preset name: - - - - - Clear - - - - - Remove every effect in use and deselect the preset. - - - - - Add Effect - - - - - None - - - - - No effects in use. Pick a preset and press Apply, or add effects one by one. - - - - - Custom chain. Pick a preset above and press Apply to replace it. - - - - - Active preset: %1 (modified). Press Reset Values to go back to how it ships. - - - - - Active preset: %1 - - - - - Enabled - - - - - Disabled - - - - - Reset to defaults - - - - - Effect '%1' was not found. - - - - - Effect failed to compile: -%1 - - - - - No usable ReShade FX effects were found. Place .fx files in the post_shaders folder. - - - ConfigureProfileManager @@ -6042,50 +5921,50 @@ Please go to Configure -> System -> Network and make a selection. GRenderWindow - - + + OpenGL not available! OpenGL no disponible! - + OpenGL shared contexts are not supported. - + Eden has not been compiled with OpenGL support. - - - + + + Error while initializing OpenGL! Error al inicialitzar OpenGL! - + Your GPU may not support OpenGL, or you do not have the latest graphics driver. La seva GPU no suporta OpenGL, o no té instal·lat els últims controladors gràfics. - + Error while initializing OpenGL 4.6! Error inicialitzant OpenGL 4.6! - + Your GPU may not support OpenGL 4.6, or you do not have the latest graphics driver.<br><br>GL Renderer:<br>%1 La seva GPU no suporta OpenGL 4.6, o no té instal·lats els últims controladors gràfics.<br><br>GL Renderer:<br>%1 - + Your GPU may not support one or more required OpenGL extensions. Please ensure you have the latest graphics driver.<br><br>GL Renderer:<br>%1<br><br>Unsupported extensions:<br>%2 És possible que la seva GPU no suporti una o més extensions necessàries d'OpenGL. Si us plau, asseguris de tenir els últims controladors de la tarjeta gràfica.<br><br>GL Renderer:<br>%1<br><br>Extensions no suportades:<br>%2 - + This build doesn't have OpenGL support. Aquesta compilació no té suport per a OpenGL. @@ -6906,42 +6785,42 @@ Debug Message: Reiniciar el tamany de la finestra a 1080p - + &Multiplayer - + &Tools &Eines - + Am&iibo - + Launch &Applet - + &TAS &TAS - + &Create Home Menu Shortcut - + Install &Firmware - + &Help &Ajuda @@ -6967,7 +6846,7 @@ Debug Message: - + &Pause &Pausar @@ -7068,176 +6947,176 @@ Debug Message: - &User Handbook - + Open &Quickstart Guide + Obre la guia d'&inici ràpid - + + &FAQ + &Preguntes freqüents + + + &Capture Screenshot &Captura de pantalla - + &Album - + &Set Nickname and Owner - + &Delete Game Data - + &Restore Amiibo - + &Format Amiibo - + &Mii Editor Editor de &Mii - + &Configure TAS... &Configurar TAS... - + Configure C&urrent Game... Configurar joc a&ctual... - - + + &Start &Iniciar - + &Reset &Reiniciar - - + + R&ecord E&nregistrar - + Open &Controller Menu - + Install Decryption &Keys - + &Home Menu - + &Desktop - + &Application Menu - + &Root Data Folder - + &NAND Folder - + &SDMC Folder - + &Mod Folder - + &Log Folder - + From Folder - + From ZIP - + &Eden Dependencies - + &Data Manager - + &Tree View - + &Grid View - + Game Icon Size - - + + None Cap - + Show Game &Name - - - Show &Performance Overlay - - - Post-Processing &Shaders... + Show &Performance Overlay @@ -7246,737 +7125,722 @@ Debug Message: - + Small (32x32) Petit (32x32) - + Standard (64x64) - + Large (128x128) - + Full Size (256x256) - + Broken Vulkan Installation Detected - + Vulkan initialization failed during boot. - + Running a game TRANSLATORS: This string is shown to the user to explain why yuzu needs to prevent the computer from sleeping - + Loading Web Applet... - - + + Disable Web Applet - + Disabling the web applet can lead to undefined behavior and should only be used with Super Mario 3D All-Stars. Are you sure you want to disable the web applet? (This can be re-enabled in the Debug settings.) - + The amount of shaders currently being built - + The current selected resolution scaling multiplier. - + Current emulation speed. Values higher or lower than 100% indicate emulation is running faster or slower than a Switch. - + How many frames per second the game is currently displaying. This will vary from game to game and scene to scene. - + Time taken to emulate a Switch frame, not counting framelimiting or v-sync. For full-speed emulation this should be at most 16.67 ms. - + Unmute Desilenciar - + Mute Silenciar - + Reset Volume - - Configure Effects... - - - - + &Clear Recent Files - + &Continue - + Warning: Outdated Game Format - + You are using the deconstructed ROM directory format for this game, which is an outdated format that has been superseded by others such as NCA, NAX, XCI, or NSP. Deconstructed ROM directories lack icons, metadata, and update support.<br>For an explanation of the various Switch formats Eden supports, out our user handbook. This message will not be shown again. - - + + Error while loading ROM! - + The ROM format is not supported. - + An error occurred initializing the video core. - - This is usually caused by outdated GPU drivers. Please see the log for more details. See: <a href='https://git.eden-emu.dev/eden-emu/eden/src/branch/master/docs/user/HowToAccessLogs.md'>How to access log files</a>. + + Eden has encountered an error while running the video core. This is usually caused by outdated GPU drivers, including integrated ones. Please see the log for more details. For more information on accessing the log, please see the following page: <a href='https://yuzu-mirror.github.io/help/reference/log-files/'>How to Upload the Log File</a>. - + Error while loading ROM! %1 %1 signifies a numeric error code. - + %1<br>Please redump your files or ask on Discord/Stoat for help. %1 signifies an error string. - + An unknown error occurred. Please see the log for more details. - - + + (64-bit) (64-bit) - - + + (32-bit) (32-bit) - - + + %1 %2 %1 is the title name. %2 indicates if the title is 64-bit or 32-bit %1 %2 - + Closing software... - + Save Data - + Mod Data - + Error Opening %1 Folder - - + + Folder does not exist! - + Remove Installed Game Contents? - + Remove Installed Game Update? - + Remove Installed Game DLC? - + Remove Entry - + Delete OpenGL Transferable Shader Cache? - + Delete Vulkan Transferable Shader Cache? - + Delete All Transferable Shader Caches? - + Remove Custom Game Configuration? - + Remove Cache Storage? - + Remove File - + Remove Play Time Data - + Reset play time? - - + + RomFS Extraction Failed! - + There was an error copying the RomFS files or the user cancelled the operation. - + Full Complet - + Skeleton Esquelet - + Select RomFS Dump Mode - + Please select the how you would like the RomFS dumped.<br>Full will copy all of the files into the new directory while <br>skeleton will only create the directory structure. - + There is not enough free space at %1 to extract the RomFS. Please free up space or select a different dump directory at Emulation > Configure > System > Filesystem > Dump Root - + Extracting RomFS... - - + + Cancel Cancel·lar - + RomFS Extraction Succeeded! - + The operation completed successfully. - + Error Opening %1 - + Select Directory - + Properties Propietats - + The game properties could not be loaded. - + Switch Executable (%1);;All Files (*.*) %1 is an identifier for the Switch executable file extensions. - + Load File Carregar arxiu - + Open Extracted ROM Directory - + Invalid Directory Selected - + The directory you have selected does not contain a 'main' file. - + Installable Switch File (*.nca *.nsp *.xci);;Nintendo Content Archive (*.nca);;Nintendo Submission Package (*.nsp);;NX Cartridge Image (*.xci) - + Install Files Instal·lar arxius - + %n file(s) remaining - + Installing file "%1"... - - + + Install Results - + To avoid possible conflicts, we discourage users from installing base games to the NAND. Please, only use this feature to install updates and DLC. - + %n file(s) were newly installed - + %n file(s) were overwritten - + %n file(s) failed to install - + System Application - + System Archive - + System Application Update - + Firmware Package (Type A) - + Firmware Package (Type B) - + Game Joc - + Game Update - + Game DLC - + Delta Title - + Select NCA Install Type... - + Please select the type of title you would like to install this NCA as: (In most instances, the default 'Game' is fine.) - + Failed to Install - + The title type you selected for the NCA is invalid. - + File not found - + File "%1" not found - + OK D'acord - + Function Disabled - + Compatibility list reporting is currently disabled. Check back later! - + Error opening URL - + Unable to open the URL "%1". - + TAS Recording - + Overwrite file of player 1? - + Invalid config detected - + Handheld controller can't be used on docked mode. Pro controller will be selected. - - + + Amiibo - - + + The current amiibo has been removed - + Error - - + + The current game is not looking for amiibos - + Amiibo File (%1);; All Files (*.*) - + Load Amiibo - + Error loading Amiibo data - + The selected file is not a valid amiibo - + The selected file is already on use - + An unknown error occurred - + No firmware available - + Firmware Corrupted - + Unknown applet - + Applet doesn't map to a known value. - + Record not found - + Applet not found. Please reinstall firmware. - + Capture Screenshot - + PNG Image (*.png) - + TAS state: Running %1/%2 - + TAS state: Recording %1 - + TAS state: Idle %1/%2 - + TAS State: Invalid - + &Stop Running - + Stop R&ecording - + Building: %n shader(s) - + Scale: %1x %1 is the resolution scaling factor Escala: %1x - + Speed: %1% / %2% Velocitat: %1% / %2% - + Speed: %1% Velocitat: %1% - + Game: %1 FPS Joc: %1 FPS - + Frame: %1 ms Fotograma: %1 ms - + NO AA SENSE AA - - NO FX - - - - - FX - - - - + VOLUME: MUTE - + VOLUME: %1% Volume percentage (e.g. 50%) VOLUMEN: %1% - + Derivation Components Missing - + Decryption keys are missing. Install them now? - + Wayland Detected! - + Wayland is known to have significant performance issues and mysterious bugs. It's recommended to use X11 instead. @@ -7984,74 +7848,74 @@ Would you like to force it for future launches? - + Use X11 - + Continue with Wayland - + Don't show again - + Restart Required - + Restart Eden to apply the X11 backend. - + Slow Lent - + Turbo Turbo - + Unlocked - + Select RomFS Dump Target - + Please select which RomFS you would like to dump. - + Are you sure you want to close Eden? - - - + + + Eden Eden - + Are you sure you want to stop the emulation? Any unsaved progress will be lost. - + The currently running application has requested Eden to not exit. Would you like to bypass this and exit anyway? @@ -9238,275 +9102,275 @@ p, li { white-space: pre-wrap; } - This game may require firmware to function properly, and you don't have any installed. Please install firmware before launching, or press "OK" to launch anyways. + The game you are trying to launch requires firmware to boot or to get past the opening menu. Please <a href='https://yuzu-mirror.github.io/help/quickstart'>dump and install firmware</a>, or press "OK" to launch anyways. - + Installing Firmware... - - - - - + + + + + Cancel Cancel·lar - + Firmware Install Failed - + Firmware Install Succeeded - + Firmware integrity verification failed! - - + + Verification failed for the following files: %1 - - + + Verifying integrity... - - - - Integrity verification succeeded! - - + Integrity verification succeeded! + + + + + The operation completed successfully. - - + + Integrity verification failed! - + File contents may be corrupt or missing. - + Integrity verification couldn't be performed - + Firmware installation cancelled, firmware may be in a bad state or corrupted. File contents could not be checked for validity. - + Select Dumped Keys Location - + Decryption Keys install succeeded - + Decryption Keys install failed - + Orphaned Profiles Detected! - + UNEXPECTED BAD THINGS MAY HAPPEN IF YOU DON'T READ THIS!<br>Eden has detected the following save directories with no attached profile:<br>%1<br><br>The following profiles are valid:<br>%2<br><br>Click "OK" to open your save folder and fix up your profiles.<br>Hint: copy the contents of the largest or last-modified folder elsewhere, delete all orphaned profiles, and move your copied contents to the good profile.<br><br>Still confused? See the <a href='https://git.eden-emu.dev/eden-emu/eden/src/branch/master/docs/user/Orphaned.md'>help page</a>.<br> - + Really clear data? - + Important data may be lost! - + Are you REALLY sure? - + Once deleted, your data will NOT come back! Only do this if you're 100% sure you want to delete this data. - + Clearing... - + Select Export Location - + %1.zip %1.zip - - - + + + Zipped Archives (*.zip) - + Exporting data. This may take a while... - + Exporting Exportant - + Exported Successfully - + Data was exported successfully. - + Export Cancelled - + Export was cancelled by the user. - + Export Failed - + Ensure you have write permissions on the targeted directory and try again. - + Select Import Location - + Import Warning - + All previous data in this directory will be deleted. Are you sure you wish to proceed? - + Importing data. This may take a while... - + Importing - + Imported Successfully - + Data was imported successfully. - + Import Cancelled - + Import was cancelled by the user. - + Import Failed - + Ensure you have read permissions on the targeted directory and try again. - + Keys not installed - + Install decryption keys and restart Eden before attempting to install firmware. - + Select Dumped Firmware Source Location - + Select Dumped Firmware ZIP - + Firmware cleanup failed - + Failed to clean up extracted firmware cache. Check write permissions in the system temp directory and try again. OS reported error: %1 diff --git a/dist/languages/cs.ts b/dist/languages/cs.ts index abbc0b4db0..4c459d5d52 100644 --- a/dist/languages/cs.ts +++ b/dist/languages/cs.ts @@ -569,80 +569,70 @@ FXAA can produce a more stable picture in lower resolutions. - - Enable post-processing effects - - - - - Applies post-processing effects to the final image. - - - - + Fullscreen Mode: Režim celé obrazovky: - + The method used to render the window in fullscreen. Borderless offers the best compatibility with the on-screen keyboard that some games request for input. Exclusive fullscreen may offer better performance and better Freesync/Gsync support. - + Aspect Ratio: Poměr stran: - + Stretches the renderer to fit the specified aspect ratio. Most games only support 16:9, so modifications are required to get other ratios. Also controls the aspect ratio of captured screenshots. - + Use persistent pipeline cache - + Allows saving shaders to storage for faster loading on following game boots. Disabling it is only intended for debugging. - + Use asynchronous GPU emulation - + Uses an extra CPU thread for rendering. This option should always remain enabled. - + NVDEC emulation: - + Specifies how videos should be decoded. It can either use the CPU or the GPU for decoding, or perform no decoding at all (black screen on videos). In most cases, GPU decoding provides the best performance. - + ASTC Decoding Method: - + This option controls how ASTC textures should be decoded. CPU: Use the CPU for decoding. GPU: Use the GPU's compute shaders to decode ASTC textures (recommended). @@ -651,75 +641,55 @@ stuttering but may present artifacts. - + ASTC Recompression Method: - + Most GPUs lack support for ASTC textures and must decompress to anintermediate format: RGBA8. BC1/BC3: The intermediate format will be recompressed to BC1 or BC3 format, saving VRAM but degrading image quality. - + Frame Pacing Mode (Vulkan only) - + Controls how the emulator manages frame pacing to reduce stuttering and make the frame rate smoother and more consistent. - + VRAM Usage Mode: - + Selects whether the emulator should prefer to conserve memory or make maximum usage of available video memory for performance. Aggressive mode may impact performance of other applications such as recording software. - + Skip CPU Inner Invalidation - + Skips certain cache invalidations during memory updates, reducing CPU usage and improving latency. This may cause soft-crashes. - - GPU Readback Before NCE Invalidation - - - - - Flushes GPU buffer data back to guest memory before NCE invalidates the whole guest page, preserving it while the CPU store proceeds. - - - - - Patch Runtime NROs for NCE - - - - - Applies NCE code patches to runtime-loaded NRO modules.This is required for some games to run correctly. - - - - + VSync Mode: - + FIFO (VSync) does not drop frames or exhibit tearing but is limited by the screen refresh rate. FIFO Relaxed allows tearing as it recovers from a slow down. Mailbox can have lower latency than FIFO and does not tear but may drop frames. @@ -727,1371 +697,1409 @@ Immediate (no synchronization) presents whatever is available and can exhibit te - + Sync Memory Operations - + Ensures data consistency between compute and memory operations. This option fixes issues in games, but may degrade performance. Unreal Engine 4 games often see the most significant changes thereof. - + Enable asynchronous presentation (Vulkan only) - + Slightly improves performance by moving presentation to a separate CPU thread. - + Force maximum clocks (Vulkan only) - + Runs work in the background while waiting for graphics commands to keep the GPU from lowering its clock speed. - + Anisotropic Filtering: Anizotropní filtrování: - + Controls the quality of texture rendering at oblique angles. Safe to set at 16x on most GPUs. - + GPU Mode: - + Controls the GPU emulation mode. Most games render fine with Fast, but Accurate is still required for some. Particles tend to only render correctly with Accurate mode. - + DMA Accuracy: - + Controls the DMA read mode. Unsafe is faster, while Safe is more stable and can fix issues in some games. Default follows the GPU Accuracy setting. - + GPU Fence Behavior: - + Controls the GPU fence synchronization behavior. Immediate is the fastest option, but can introduce some issues. Balanced offers better compatibility and may fix issues in some games. Accurate further improves compatibility at the cost of some performance. -Default follows the GPU Mode setting. +Strict is the slowest option, but can fix issues that require stricter synchronization. +Default follows the GPU Accuracy setting. - + + Enable GPU buffer readback + + + + + Preserves GPU-modified data by reading it back before uploading. +Some games require this to render certain effects properly. + + + + Enable asynchronous shader compilation - + May reduce shader stutter. - + GPU Clocks - + Makes the game believe GPU work finishes faster than it does, so it stops lowering resolution and render distance to fit the Switch's clocks. - + GPU Unswizzle - + Accelerates BCn 3D texture decoding using GPU compute. Disable if experiencing crashes or graphical glitches. - + GPU Unswizzle Max Texture Size - + Sets the maximum size (MiB) for GPU-based texture unswizzling. While the GPU is faster for medium and large textures, the CPU may be more efficient for very small ones. Adjust this to find the balance between GPU acceleration and CPU overhead. - + GPU Unswizzle Stream Size - + Sets the maximum amount of texture data (in MiB) processed per frame. Higher values can reduce stutter during texture loading but may impact frame consistency. - + GPU Unswizzle Chunk Size - + Determines the number of depth slices processed in a single dispatch. Increasing this can improve throughput on high-end GPUs but may cause TDR or driver timeouts on weaker hardware. - + Use Vulkan pipeline cache - + Enables GPU vendor-specific pipeline cache. This option can improve shader loading time significantly in cases where the Vulkan driver does not store pipeline cache files internally. - + Enable Compute Pipelines (Intel Vulkan Only) - + Required by some games. This setting only exists for Intel proprietary drivers and may crash if enabled. Compute pipelines are always enabled on all other drivers. - + Enable Reactive Flushing - + Uses reactive flushing instead of predictive flushing, allowing more accurate memory syncing. - + Sync to framerate of video playback - + Run the game at normal speed during video playback, even when the framerate is unlocked. - + Barrier feedback loops - + Improves rendering of transparency effects in specific games. - + Enable buffer history - + Enables access to previous buffer states. This option may improve rendering quality and performance consistency in some games. - + Fix bloom effects - + Removes bloom in Burnout. - + + Enable Legacy Rescale Pass + + + + + May fix rescale issues in some games by relying on behavior from the previous implementation. +Legacy behavior workaround that fixes line artifacts on AMD and Intel GPUs, and grey texture flicker on Nvidia GPUs in Luigis Mansion 3. + + + + Extended Dynamic State - + Controls the number of features that can be used in Extended Dynamic State. Higher states allow for more features and can increase performance, but may cause additional graphical issues. - + Vertex Input Dynamic State - + Enables vertex input dynamic state feature for better quality and performance. - + Sample Shading - + Allows the fragment shader to execute per sample in a multi-sampled fragment instead of once per fragment. Improves graphics quality at the cost of performance. Higher values improve quality but degrade performance. - + RNG Seed RNG Seed - + Controls the seed of the random number generator. Mainly used for speedrunning. - + Device Name Název Zařízení - + The name of the console. - + Homebrew Args - + Command-line arguments passed to homebrew at launch (e.g. -noglsl). - + Custom RTC Date: - + This option allows to change the clock of the console. Can be used to manipulate time in games. - + The number of seconds from the current unix time - + Language: Jazyk: - + This option can be overridden when region setting is auto-select - + Region: Region: - + The region of the console. - + Time Zone: Časové Pásmo: - + The time zone of the console. - + Sound Output Mode: - + Console Mode: - + Selects if the console is in Docked or Handheld mode. Games will change their resolution, details and supported controllers and depending on this setting. Setting to Handheld can help improve performance for low end systems. - + Prompt for user profile on boot - + Useful if multiple people use the same PC. - + Pause when not in focus - + Pauses emulation when focusing on other windows. - + Confirm before stopping emulation Potvrzení před zastavením emulace - + Overrides prompts asking to confirm stopping the emulation. Enabling it bypasses such prompts and directly exits the emulation. - + Hide mouse on inactivity Skrýt myš při neaktivitě - + Hides the mouse after 2.5s of inactivity. - + + Disable controller applet + + + + + Forcibly disables the use of the controller applet in emulated programs. +When a program attempts to open the controller applet, it is immediately closed. + + + + Check for updates - + Whether or not to check for updates upon startup. - + Enable Gamemode - + Force X11 as Graphics Backend - + Custom frontend - + Real applet - - - Disabled - - - - + Never - + On Load - + Always - + CPU CPU - + GPU - + CPU Asynchronous - + Uncompressed (Best quality) - + BC1 (Low quality) - + BC3 (Medium quality) - - + + Auto Automatické - + 30 FPS - + 60 FPS - + 90 FPS - + 120 FPS - + Conservative - + Aggressive - + Vulkan Vulkan - + OpenGL GLSL - + OpenGL GLASM (Assembly Shaders, NVIDIA Only) - + OpenGL SPIR-V (Experimental, AMD/Mesa Only) - + Null - + Fast - - - + + + Accurate Přesné - - - + + + Default Výchozí - + Unsafe (fast) - + Safe (stable) - + Immediate - + Balanced - + + Strict + + + + Unsafe Nebezpečné - + Paranoid (disables most optimizations) Paranoidní (zakáže většinu optimizací) - + Debugging - + Dynarmic - + NCE - + Borderless Windowed Okno bez okrajů - + Exclusive Fullscreen Exkluzivní - + No Video Output - + CPU Video Decoding - + GPU Video Decoding (Default) - + 0.25X (180p/270p) [EXPERIMENTAL] - + 0.5X (360p/540p) [EXPERIMENTAL] - + 0.75X (540p/810p) [EXPERIMENTAL] - + 1X (720p/1080p) 1X (720p/1080p) - + 1.25X (900p/1350p) [EXPERIMENTAL] - + 1.5X (1080p/1620p) [EXPERIMENTAL] - + 2X (1440p/2160p) - + 3X (2160p/3240p) - + 4X (2880p/4320p) - + 5X (3600p/5400p) - + 6X (4320p/6480p) - + 7X (5040p/7560p) - + 8X (5760p/8640p) - + Nearest Neighbor - + Bilinear Bilineární - + Bicubic - + Gaussian - + Lanczos - + ScaleForce - + AMD FidelityFX Super Resolution - + Area - + MMPX - + Zero-Tangent - + B-Spline - + Mitchell - + Spline-1 - + Snapdragon Game Super Resolution - + Snapdragon Game Super Resolution EdgeDir - + None Žádné - + FXAA FXAA - + SMAA SMAA - + Default (16:9) Výchozí (16:9) - + Force 4:3 Vynutit 4:3 - + Force 21:9 Vynutit 21:9 - + Force 16:10 - + Stretch to Window Roztáhnout podle okna - + Automatic - + 2x 2x - + 4x 4x - + 8x 8x - + 16x 16x - + Japanese (日本語) Japonština (日本語) - + American English - + French (français) Francouzština (français) - + German (Deutsch) Nemčina (Deutsch) - + Italian (italiano) Italština (Italiano) - + Spanish (español) Španělština (español) - + Chinese Čínština - + Korean (한국어) Korejština (한국어) - + Dutch (Nederlands) Holandština (Nederlands) - + Portuguese (português) Portugalština (português) - + Russian (Русский) Ruština (Русский) - + Taiwanese Tajwanština - + British English Britská Angličtina - + Canadian French Kanadská Francouzština - + Latin American Spanish Latinsko Americká Španělština - + Simplified Chinese Zjednodušená Čínština - + Traditional Chinese (正體中文) Tradiční Čínština (正體中文) - + Brazilian Portuguese (português do Brasil) Brazilská Portugalština (português do Brasil) - + Polish (polska) - + Thai (แบบไทย) - - + + Japan Japonsko - + USA USA - + Europe Evropa - + Australia Austrálie - + China Čína - + Korea Korea - + Taiwan Taiwan - + Auto (%1) Auto select time zone - + Default (%1) Default time zone - + CET CET - + CST6CDT CST6CDT - + Cuba Cuba - + EET EET - + Egypt Egypt - + Eire Eire - + EST EST - + EST5EDT EST5EDT - + GB GB - + GB-Eire GB-Eire - + GMT GMT - + GMT+0 GMT+0 - + GMT-0 GMT-0 - + GMT0 GMT0 - + Greenwich Greenwich - + Hongkong Hongkong - + HST HST - + Iceland Island - + Iran Iran - + Israel Israel - + Jamaica Jamajka - + Kwajalein Kwajalein - + Libya Lybie - + MET MET - + MST MST - + MST7MDT MST7MDT - + Navajo Navajo - + NZ NZ - + NZ-CHAT NZ-CHAT - + Poland Polsko - + Portugal Portugalsko - + PRC PRC - + PST8PDT PST8PDT - + ROC ROC - + ROK ROK - + Singapore Singapur - + Turkey Turecko - + UCT UCT - + Universal Univerzální - + UTC UTC - + W-SU W-SU - + WET WET - + Zulu Zulu - + Mono Mono - + Stereo Stereo - + Surround Surround - + 4GB DRAM (Default) - + 6GB DRAM (Unsafe) - + 8GB DRAM - + 10GB DRAM (Unsafe) - + 12GB DRAM (Unsafe) - + Docked Zadokovaná - + Handheld Příruční + + + + Normal + + - Normal + Boost - Boost - - - - - Overclock - + Always ask (Default) Vždy se zeptat (Výchozí) - + Only if game specifies not to stop - + Never ask - + Very Small (16 MB) - + Small (32 MB) - + Normal (128 MB) - + Large (256 MB) - + Very Large (512 MB) - + Very Low (4 MB) - + Low (8 MB) - + Normal (16 MB) - + Medium (32 MB) - + High (64 MB) - + Very Low (32) - + Low (64) - + Normal (128) - + Medium (256) - + High (512) - + + Disabled + + + + ExtendedDynamicState 1 - + ExtendedDynamicState 2 - + ExtendedDynamicState 3 - + Tree View - + Grid View @@ -3182,38 +3190,33 @@ Would you like to delete the old save data? Barva Pozadí: - + % FSR/SGSR sharpening percentage (e.g. 50%) - - Configure Effects... - - - - + Off - + VSync Off - + Recommended - + On - + VSync On @@ -4825,130 +4828,6 @@ Once deleted, these can NOT be recovered. Are you 100% sure you want to delete t - - ConfigurePostProcessing - - - Post-Processing Effects - - - - - Changes apply immediately while a game is running. - - - - - Enable post-processing - - - - - Preset: - - - - - Apply - - - - - Reset Values - - - - - Return every effect to the values the preset ships with. - - - - - Save As... - - - - - Save Preset - - - - - Preset name: - - - - - Clear - - - - - Remove every effect in use and deselect the preset. - - - - - Add Effect - - - - - None - - - - - No effects in use. Pick a preset and press Apply, or add effects one by one. - - - - - Custom chain. Pick a preset above and press Apply to replace it. - - - - - Active preset: %1 (modified). Press Reset Values to go back to how it ships. - - - - - Active preset: %1 - - - - - Enabled - - - - - Disabled - - - - - Reset to defaults - - - - - Effect '%1' was not found. - - - - - Effect failed to compile: -%1 - - - - - No usable ReShade FX effects were found. Place .fx files in the post_shaders folder. - - - ConfigureProfileManager @@ -6033,50 +5912,50 @@ Please go to Configure -> System -> Network and make a selection. GRenderWindow - - + + OpenGL not available! OpenGL není k dispozici! - + OpenGL shared contexts are not supported. - + Eden has not been compiled with OpenGL support. - - - + + + Error while initializing OpenGL! Chyba při inicializaci OpenGL! - + Your GPU may not support OpenGL, or you do not have the latest graphics driver. Vaše grafická karta pravděpodobně nepodporuje OpenGL nebo nejsou nainstalovány nejnovější ovladače. - + Error while initializing OpenGL 4.6! Chyba při inicializaci OpenGL 4.6! - + Your GPU may not support OpenGL 4.6, or you do not have the latest graphics driver.<br><br>GL Renderer:<br>%1 Vaše grafická karta pravděpodobně nepodporuje OpenGL 4.6 nebo nejsou nainstalovány nejnovější ovladače.<br><br>GL Renderer:<br>%1 - + Your GPU may not support one or more required OpenGL extensions. Please ensure you have the latest graphics driver.<br><br>GL Renderer:<br>%1<br><br>Unsupported extensions:<br>%2 Vaše grafická karta pravděpodobně nepodporuje jedno nebo více rozšíření OpenGL. Ujistěte se prosím, že jsou nainstalovány nejnovější ovladače.<br><br>GL Renderer:<br>%1<br><br>Nepodporované rozšíření:<br>%2 - + This build doesn't have OpenGL support. @@ -6896,42 +6775,42 @@ Debug Message: Nastavit velikost okna na 1080p - + &Multiplayer - + &Tools &Nástroje - + Am&iibo - + Launch &Applet - + &TAS - + &Create Home Menu Shortcut - + Install &Firmware - + &Help &Pomoc @@ -6957,7 +6836,7 @@ Debug Message: - + &Pause &Pauza @@ -7058,176 +6937,176 @@ Debug Message: - &User Handbook - + Open &Quickstart Guide + Otevřít &rychlého průvodce - + + &FAQ + Často &kladené otázky + + + &Capture Screenshot Za&chytit snímek obrazovky - + &Album - + &Set Nickname and Owner &Nastavit Přezdívku a Vlastníka - + &Delete Game Data &Odstranit Herní Data - + &Restore Amiibo &Obnovit Amiibo - + &Format Amiibo - + &Mii Editor - + &Configure TAS... - + Configure C&urrent Game... Nastavení současné hry - - + + &Start &Start - + &Reset &Resetovat - - + + R&ecord - + Open &Controller Menu Otevřít &Menu Ovladače - + Install Decryption &Keys - + &Home Menu - + &Desktop - + &Application Menu - + &Root Data Folder - + &NAND Folder - + &SDMC Folder - + &Mod Folder - + &Log Folder - + From Folder - + From ZIP - + &Eden Dependencies - + &Data Manager - + &Tree View - + &Grid View - + Game Icon Size - - + + None - + Show Game &Name - - - Show &Performance Overlay - - - Post-Processing &Shaders... + Show &Performance Overlay @@ -7236,737 +7115,722 @@ Debug Message: - + Small (32x32) - + Standard (64x64) - + Large (128x128) - + Full Size (256x256) - + Broken Vulkan Installation Detected - + Vulkan initialization failed during boot. - + Running a game TRANSLATORS: This string is shown to the user to explain why yuzu needs to prevent the computer from sleeping - + Loading Web Applet... - - + + Disable Web Applet - + Disabling the web applet can lead to undefined behavior and should only be used with Super Mario 3D All-Stars. Are you sure you want to disable the web applet? (This can be re-enabled in the Debug settings.) - + The amount of shaders currently being built - + The current selected resolution scaling multiplier. - + Current emulation speed. Values higher or lower than 100% indicate emulation is running faster or slower than a Switch. - + How many frames per second the game is currently displaying. This will vary from game to game and scene to scene. - + Time taken to emulate a Switch frame, not counting framelimiting or v-sync. For full-speed emulation this should be at most 16.67 ms. - + Unmute - + Mute - + Reset Volume - - Configure Effects... - - - - + &Clear Recent Files - + &Continue - + Warning: Outdated Game Format - + You are using the deconstructed ROM directory format for this game, which is an outdated format that has been superseded by others such as NCA, NAX, XCI, or NSP. Deconstructed ROM directories lack icons, metadata, and update support.<br>For an explanation of the various Switch formats Eden supports, out our user handbook. This message will not be shown again. - - + + Error while loading ROM! - + The ROM format is not supported. - + An error occurred initializing the video core. - - This is usually caused by outdated GPU drivers. Please see the log for more details. See: <a href='https://git.eden-emu.dev/eden-emu/eden/src/branch/master/docs/user/HowToAccessLogs.md'>How to access log files</a>. + + Eden has encountered an error while running the video core. This is usually caused by outdated GPU drivers, including integrated ones. Please see the log for more details. For more information on accessing the log, please see the following page: <a href='https://yuzu-mirror.github.io/help/reference/log-files/'>How to Upload the Log File</a>. - + Error while loading ROM! %1 %1 signifies a numeric error code. - + %1<br>Please redump your files or ask on Discord/Stoat for help. %1 signifies an error string. - + An unknown error occurred. Please see the log for more details. - - + + (64-bit) - - + + (32-bit) - - + + %1 %2 %1 is the title name. %2 indicates if the title is 64-bit or 32-bit - + Closing software... - + Save Data - + Mod Data - + Error Opening %1 Folder - - + + Folder does not exist! - + Remove Installed Game Contents? - + Remove Installed Game Update? - + Remove Installed Game DLC? - + Remove Entry - + Delete OpenGL Transferable Shader Cache? - + Delete Vulkan Transferable Shader Cache? - + Delete All Transferable Shader Caches? - + Remove Custom Game Configuration? - + Remove Cache Storage? - + Remove File - + Remove Play Time Data - + Reset play time? - - + + RomFS Extraction Failed! - + There was an error copying the RomFS files or the user cancelled the operation. - + Full - + Skeleton - + Select RomFS Dump Mode - + Please select the how you would like the RomFS dumped.<br>Full will copy all of the files into the new directory while <br>skeleton will only create the directory structure. - + There is not enough free space at %1 to extract the RomFS. Please free up space or select a different dump directory at Emulation > Configure > System > Filesystem > Dump Root - + Extracting RomFS... - - + + Cancel - + RomFS Extraction Succeeded! - + The operation completed successfully. - + Error Opening %1 - + Select Directory - + Properties - + The game properties could not be loaded. - + Switch Executable (%1);;All Files (*.*) %1 is an identifier for the Switch executable file extensions. - + Load File - + Open Extracted ROM Directory - + Invalid Directory Selected - + The directory you have selected does not contain a 'main' file. - + Installable Switch File (*.nca *.nsp *.xci);;Nintendo Content Archive (*.nca);;Nintendo Submission Package (*.nsp);;NX Cartridge Image (*.xci) - + Install Files - + %n file(s) remaining - + Installing file "%1"... - - + + Install Results - + To avoid possible conflicts, we discourage users from installing base games to the NAND. Please, only use this feature to install updates and DLC. - + %n file(s) were newly installed - + %n file(s) were overwritten - + %n file(s) failed to install - + System Application - + System Archive - + System Application Update - + Firmware Package (Type A) - + Firmware Package (Type B) - + Game - + Game Update - + Game DLC - + Delta Title - + Select NCA Install Type... - + Please select the type of title you would like to install this NCA as: (In most instances, the default 'Game' is fine.) - + Failed to Install - + The title type you selected for the NCA is invalid. - + File not found - + File "%1" not found - + OK - + Function Disabled - + Compatibility list reporting is currently disabled. Check back later! - + Error opening URL - + Unable to open the URL "%1". - + TAS Recording - + Overwrite file of player 1? - + Invalid config detected - + Handheld controller can't be used on docked mode. Pro controller will be selected. - - + + Amiibo - - + + The current amiibo has been removed - + Error - - + + The current game is not looking for amiibos - + Amiibo File (%1);; All Files (*.*) - + Load Amiibo - + Error loading Amiibo data - + The selected file is not a valid amiibo - + The selected file is already on use - + An unknown error occurred - + No firmware available - + Firmware Corrupted - + Unknown applet - + Applet doesn't map to a known value. - + Record not found - + Applet not found. Please reinstall firmware. - + Capture Screenshot - + PNG Image (*.png) - + TAS state: Running %1/%2 - + TAS state: Recording %1 - + TAS state: Idle %1/%2 - + TAS State: Invalid - + &Stop Running - + Stop R&ecording - + Building: %n shader(s) - + Scale: %1x %1 is the resolution scaling factor - + Speed: %1% / %2% - + Speed: %1% - + Game: %1 FPS - + Frame: %1 ms - + NO AA - - NO FX - - - - - FX - - - - + VOLUME: MUTE - + VOLUME: %1% Volume percentage (e.g. 50%) - + Derivation Components Missing - + Decryption keys are missing. Install them now? - + Wayland Detected! - + Wayland is known to have significant performance issues and mysterious bugs. It's recommended to use X11 instead. @@ -7974,74 +7838,74 @@ Would you like to force it for future launches? - + Use X11 - + Continue with Wayland - + Don't show again - + Restart Required - + Restart Eden to apply the X11 backend. - + Slow - + Turbo - + Unlocked - + Select RomFS Dump Target - + Please select which RomFS you would like to dump. - + Are you sure you want to close Eden? - - - + + + Eden - + Are you sure you want to stop the emulation? Any unsaved progress will be lost. - + The currently running application has requested Eden to not exit. Would you like to bypass this and exit anyway? @@ -9226,275 +9090,275 @@ p, li { white-space: pre-wrap; } - This game may require firmware to function properly, and you don't have any installed. Please install firmware before launching, or press "OK" to launch anyways. + The game you are trying to launch requires firmware to boot or to get past the opening menu. Please <a href='https://yuzu-mirror.github.io/help/quickstart'>dump and install firmware</a>, or press "OK" to launch anyways. - + Installing Firmware... - - - - - + + + + + Cancel - + Firmware Install Failed - + Firmware Install Succeeded - + Firmware integrity verification failed! - - + + Verification failed for the following files: %1 - - + + Verifying integrity... - - - - Integrity verification succeeded! - - + Integrity verification succeeded! + + + + + The operation completed successfully. - - + + Integrity verification failed! - + File contents may be corrupt or missing. - + Integrity verification couldn't be performed - + Firmware installation cancelled, firmware may be in a bad state or corrupted. File contents could not be checked for validity. - + Select Dumped Keys Location - + Decryption Keys install succeeded - + Decryption Keys install failed - + Orphaned Profiles Detected! - + UNEXPECTED BAD THINGS MAY HAPPEN IF YOU DON'T READ THIS!<br>Eden has detected the following save directories with no attached profile:<br>%1<br><br>The following profiles are valid:<br>%2<br><br>Click "OK" to open your save folder and fix up your profiles.<br>Hint: copy the contents of the largest or last-modified folder elsewhere, delete all orphaned profiles, and move your copied contents to the good profile.<br><br>Still confused? See the <a href='https://git.eden-emu.dev/eden-emu/eden/src/branch/master/docs/user/Orphaned.md'>help page</a>.<br> - + Really clear data? - + Important data may be lost! - + Are you REALLY sure? - + Once deleted, your data will NOT come back! Only do this if you're 100% sure you want to delete this data. - + Clearing... - + Select Export Location - + %1.zip - - - + + + Zipped Archives (*.zip) - + Exporting data. This may take a while... - + Exporting - + Exported Successfully - + Data was exported successfully. - + Export Cancelled - + Export was cancelled by the user. - + Export Failed - + Ensure you have write permissions on the targeted directory and try again. - + Select Import Location - + Import Warning - + All previous data in this directory will be deleted. Are you sure you wish to proceed? - + Importing data. This may take a while... - + Importing - + Imported Successfully - + Data was imported successfully. - + Import Cancelled - + Import was cancelled by the user. - + Import Failed - + Ensure you have read permissions on the targeted directory and try again. - + Keys not installed - + Install decryption keys and restart Eden before attempting to install firmware. - + Select Dumped Firmware Source Location - + Select Dumped Firmware ZIP - + Firmware cleanup failed - + Failed to clean up extracted firmware cache. Check write permissions in the system temp directory and try again. OS reported error: %1 diff --git a/dist/languages/da.ts b/dist/languages/da.ts index 4e34f94af9..a651706061 100644 --- a/dist/languages/da.ts +++ b/dist/languages/da.ts @@ -571,80 +571,70 @@ FXAA can produce a more stable picture in lower resolutions. - - Enable post-processing effects - - - - - Applies post-processing effects to the final image. - - - - + Fullscreen Mode: Fuldskærmstilstand: - + The method used to render the window in fullscreen. Borderless offers the best compatibility with the on-screen keyboard that some games request for input. Exclusive fullscreen may offer better performance and better Freesync/Gsync support. - + Aspect Ratio: Skærmformat: - + Stretches the renderer to fit the specified aspect ratio. Most games only support 16:9, so modifications are required to get other ratios. Also controls the aspect ratio of captured screenshots. - + Use persistent pipeline cache - + Allows saving shaders to storage for faster loading on following game boots. Disabling it is only intended for debugging. - + Use asynchronous GPU emulation - + Uses an extra CPU thread for rendering. This option should always remain enabled. - + NVDEC emulation: NVDEC-emulering: - + Specifies how videos should be decoded. It can either use the CPU or the GPU for decoding, or perform no decoding at all (black screen on videos). In most cases, GPU decoding provides the best performance. - + ASTC Decoding Method: - + This option controls how ASTC textures should be decoded. CPU: Use the CPU for decoding. GPU: Use the GPU's compute shaders to decode ASTC textures (recommended). @@ -653,75 +643,55 @@ stuttering but may present artifacts. - + ASTC Recompression Method: - + Most GPUs lack support for ASTC textures and must decompress to anintermediate format: RGBA8. BC1/BC3: The intermediate format will be recompressed to BC1 or BC3 format, saving VRAM but degrading image quality. - + Frame Pacing Mode (Vulkan only) - + Controls how the emulator manages frame pacing to reduce stuttering and make the frame rate smoother and more consistent. - + VRAM Usage Mode: - + Selects whether the emulator should prefer to conserve memory or make maximum usage of available video memory for performance. Aggressive mode may impact performance of other applications such as recording software. - + Skip CPU Inner Invalidation - + Skips certain cache invalidations during memory updates, reducing CPU usage and improving latency. This may cause soft-crashes. - - GPU Readback Before NCE Invalidation - - - - - Flushes GPU buffer data back to guest memory before NCE invalidates the whole guest page, preserving it while the CPU store proceeds. - - - - - Patch Runtime NROs for NCE - - - - - Applies NCE code patches to runtime-loaded NRO modules.This is required for some games to run correctly. - - - - + VSync Mode: - + FIFO (VSync) does not drop frames or exhibit tearing but is limited by the screen refresh rate. FIFO Relaxed allows tearing as it recovers from a slow down. Mailbox can have lower latency than FIFO and does not tear but may drop frames. @@ -729,1371 +699,1409 @@ Immediate (no synchronization) presents whatever is available and can exhibit te - + Sync Memory Operations - + Ensures data consistency between compute and memory operations. This option fixes issues in games, but may degrade performance. Unreal Engine 4 games often see the most significant changes thereof. - + Enable asynchronous presentation (Vulkan only) - + Slightly improves performance by moving presentation to a separate CPU thread. - + Force maximum clocks (Vulkan only) - + Runs work in the background while waiting for graphics commands to keep the GPU from lowering its clock speed. - + Anisotropic Filtering: Anisotropisk Filtrering: - + Controls the quality of texture rendering at oblique angles. Safe to set at 16x on most GPUs. - + GPU Mode: - + Controls the GPU emulation mode. Most games render fine with Fast, but Accurate is still required for some. Particles tend to only render correctly with Accurate mode. - + DMA Accuracy: - + Controls the DMA read mode. Unsafe is faster, while Safe is more stable and can fix issues in some games. Default follows the GPU Accuracy setting. - + GPU Fence Behavior: - + Controls the GPU fence synchronization behavior. Immediate is the fastest option, but can introduce some issues. Balanced offers better compatibility and may fix issues in some games. Accurate further improves compatibility at the cost of some performance. -Default follows the GPU Mode setting. +Strict is the slowest option, but can fix issues that require stricter synchronization. +Default follows the GPU Accuracy setting. - + + Enable GPU buffer readback + + + + + Preserves GPU-modified data by reading it back before uploading. +Some games require this to render certain effects properly. + + + + Enable asynchronous shader compilation - + May reduce shader stutter. - + GPU Clocks - + Makes the game believe GPU work finishes faster than it does, so it stops lowering resolution and render distance to fit the Switch's clocks. - + GPU Unswizzle - + Accelerates BCn 3D texture decoding using GPU compute. Disable if experiencing crashes or graphical glitches. - + GPU Unswizzle Max Texture Size - + Sets the maximum size (MiB) for GPU-based texture unswizzling. While the GPU is faster for medium and large textures, the CPU may be more efficient for very small ones. Adjust this to find the balance between GPU acceleration and CPU overhead. - + GPU Unswizzle Stream Size - + Sets the maximum amount of texture data (in MiB) processed per frame. Higher values can reduce stutter during texture loading but may impact frame consistency. - + GPU Unswizzle Chunk Size - + Determines the number of depth slices processed in a single dispatch. Increasing this can improve throughput on high-end GPUs but may cause TDR or driver timeouts on weaker hardware. - + Use Vulkan pipeline cache - + Enables GPU vendor-specific pipeline cache. This option can improve shader loading time significantly in cases where the Vulkan driver does not store pipeline cache files internally. - + Enable Compute Pipelines (Intel Vulkan Only) - + Required by some games. This setting only exists for Intel proprietary drivers and may crash if enabled. Compute pipelines are always enabled on all other drivers. - + Enable Reactive Flushing - + Uses reactive flushing instead of predictive flushing, allowing more accurate memory syncing. - + Sync to framerate of video playback - + Run the game at normal speed during video playback, even when the framerate is unlocked. - + Barrier feedback loops - + Improves rendering of transparency effects in specific games. - + Enable buffer history - + Enables access to previous buffer states. This option may improve rendering quality and performance consistency in some games. - + Fix bloom effects - + Removes bloom in Burnout. - + + Enable Legacy Rescale Pass + + + + + May fix rescale issues in some games by relying on behavior from the previous implementation. +Legacy behavior workaround that fixes line artifacts on AMD and Intel GPUs, and grey texture flicker on Nvidia GPUs in Luigis Mansion 3. + + + + Extended Dynamic State - + Controls the number of features that can be used in Extended Dynamic State. Higher states allow for more features and can increase performance, but may cause additional graphical issues. - + Vertex Input Dynamic State - + Enables vertex input dynamic state feature for better quality and performance. - + Sample Shading - + Allows the fragment shader to execute per sample in a multi-sampled fragment instead of once per fragment. Improves graphics quality at the cost of performance. Higher values improve quality but degrade performance. - + RNG Seed RNG-Seed - + Controls the seed of the random number generator. Mainly used for speedrunning. - + Device Name - + The name of the console. - + Homebrew Args - + Command-line arguments passed to homebrew at launch (e.g. -noglsl). - + Custom RTC Date: - + This option allows to change the clock of the console. Can be used to manipulate time in games. - + The number of seconds from the current unix time - + Language: - + This option can be overridden when region setting is auto-select - + Region: Region - + The region of the console. - + Time Zone: Tidszone - + The time zone of the console. - + Sound Output Mode: - + Console Mode: - + Selects if the console is in Docked or Handheld mode. Games will change their resolution, details and supported controllers and depending on this setting. Setting to Handheld can help improve performance for low end systems. - + Prompt for user profile on boot - + Useful if multiple people use the same PC. - + Pause when not in focus - + Pauses emulation when focusing on other windows. - + Confirm before stopping emulation - + Overrides prompts asking to confirm stopping the emulation. Enabling it bypasses such prompts and directly exits the emulation. - + Hide mouse on inactivity Skjul mus ved inaktivitet - + Hides the mouse after 2.5s of inactivity. - + + Disable controller applet + + + + + Forcibly disables the use of the controller applet in emulated programs. +When a program attempts to open the controller applet, it is immediately closed. + + + + Check for updates - + Whether or not to check for updates upon startup. - + Enable Gamemode - + Force X11 as Graphics Backend - + Custom frontend - + Real applet - - - Disabled - - - - + Never - + On Load - + Always - + CPU CPU - + GPU - + CPU Asynchronous - + Uncompressed (Best quality) - + BC1 (Low quality) - + BC3 (Medium quality) - - + + Auto Automatisk - + 30 FPS - + 60 FPS - + 90 FPS - + 120 FPS - + Conservative - + Aggressive - + Vulkan - + OpenGL GLSL - + OpenGL GLASM (Assembly Shaders, NVIDIA Only) - + OpenGL SPIR-V (Experimental, AMD/Mesa Only) - + Null - + Fast - - - + + + Accurate Nøjagtig - - - + + + Default Standard - + Unsafe (fast) - + Safe (stable) - + Immediate - + Balanced - + + Strict + + + + Unsafe Usikker - + Paranoid (disables most optimizations) Paranoid (deaktiverer de fleste optimeringer) - + Debugging - + Dynarmic - + NCE - + Borderless Windowed Uindrammet Vindue - + Exclusive Fullscreen Eksklusiv Fuld Skærm - + No Video Output Ingen Video-Output - + CPU Video Decoding CPU-Video Afkodning - + GPU Video Decoding (Default) GPU-Video Afkodning (Standard) - + 0.25X (180p/270p) [EXPERIMENTAL] - + 0.5X (360p/540p) [EXPERIMENTAL] - + 0.75X (540p/810p) [EXPERIMENTAL] 0,75X (540p/810p) [EKSPERIMENTEL] - + 1X (720p/1080p) 1X (720p/1080p) - + 1.25X (900p/1350p) [EXPERIMENTAL] - + 1.5X (1080p/1620p) [EXPERIMENTAL] - + 2X (1440p/2160p) 2X (1440p/2160p) - + 3X (2160p/3240p) 3X (2160p/3240p) - + 4X (2880p/4320p) 4X (2880p/4320p) - + 5X (3600p/5400p) 5X (3600p/5400p) - + 6X (4320p/6480p) 6X (4320p/6480p) - + 7X (5040p/7560p) - + 8X (5760p/8640p) - + Nearest Neighbor Nærmeste Nabo - + Bilinear Bilineær - + Bicubic Bikubisk - + Gaussian Gausisk - + Lanczos - + ScaleForce ScaleForce - + AMD FidelityFX Super Resolution - + Area - + MMPX - + Zero-Tangent - + B-Spline - + Mitchell - + Spline-1 - + Snapdragon Game Super Resolution - + Snapdragon Game Super Resolution EdgeDir - + None Ingen - + FXAA FXAA - + SMAA - + Default (16:9) Standard (16:9) - + Force 4:3 Tving 4:3 - + Force 21:9 Tving 21:9 - + Force 16:10 - + Stretch to Window Stræk til Vindue - + Automatic - + 2x - + 4x - + 8x - + 16x - + Japanese (日本語) Japansk (日本語) - + American English - + French (français) Fransk (français) - + German (Deutsch) Tysk (Deutsch) - + Italian (italiano) Italiensk (italiano) - + Spanish (español) Spansk (español) - + Chinese Kinesisk - + Korean (한국어) Koreansk (한국어) - + Dutch (Nederlands) Hollandsk (Nederlands) - + Portuguese (português) Portugisisk (português) - + Russian (Русский) Russisk (Русский) - + Taiwanese Taiwanesisk - + British English Britisk Engelsk - + Canadian French Candadisk Fransk - + Latin American Spanish Latinamerikansk Spansk - + Simplified Chinese Forenklet Kinesisk - + Traditional Chinese (正體中文) Traditionelt Kinesisk (正體中文) - + Brazilian Portuguese (português do Brasil) Braziliansk Portugisisk (português do Brasil) - + Polish (polska) - + Thai (แบบไทย) - - + + Japan Japan - + USA USA - + Europe Europa - + Australia Australien - + China Kina - + Korea Korea - + Taiwan Taiwan - + Auto (%1) Auto select time zone - + Default (%1) Default time zone - + CET CET - + CST6CDT CST6CDT - + Cuba Cuba - + EET EET - + Egypt Ægypten - + Eire Eire - + EST EST - + EST5EDT EST5EDT - + GB GB - + GB-Eire GB-Eire - + GMT GMT - + GMT+0 GMT+0 - + GMT-0 GMT-0 - + GMT0 GMT0 - + Greenwich Greenwich - + Hongkong Hongkong - + HST HST - + Iceland Island - + Iran Iran - + Israel Israel - + Jamaica Jamaica - + Kwajalein Kwajalein - + Libya Libyen - + MET MET - + MST MST - + MST7MDT MST7MDT - + Navajo Navajo - + NZ NZ - + NZ-CHAT NZ-CHAT - + Poland Polen - + Portugal Portugal - + PRC PRC - + PST8PDT PST8PDT - + ROC ROC - + ROK ROK - + Singapore Singapore - + Turkey Tyrkiet - + UCT UCT - + Universal Universel - + UTC UTC - + W-SU W-SU - + WET WET - + Zulu Zulu - + Mono Mono - + Stereo Stereo - + Surround Surround - + 4GB DRAM (Default) - + 6GB DRAM (Unsafe) - + 8GB DRAM - + 10GB DRAM (Unsafe) - + 12GB DRAM (Unsafe) - + Docked Dokket - + Handheld Håndholdt + + + + Normal + + - Normal + Boost - Boost - - - - - Overclock - + Always ask (Default) - + Only if game specifies not to stop - + Never ask - + Very Small (16 MB) - + Small (32 MB) - + Normal (128 MB) - + Large (256 MB) - + Very Large (512 MB) - + Very Low (4 MB) - + Low (8 MB) - + Normal (16 MB) - + Medium (32 MB) - + High (64 MB) - + Very Low (32) - + Low (64) - + Normal (128) - + Medium (256) - + High (512) - + + Disabled + + + + ExtendedDynamicState 1 - + ExtendedDynamicState 2 - + ExtendedDynamicState 3 - + Tree View - + Grid View @@ -3190,38 +3198,33 @@ Would you like to delete the old save data? Baggrundsfarve: - + % FSR/SGSR sharpening percentage (e.g. 50%) - - Configure Effects... - - - - + Off - + VSync Off - + Recommended - + On - + VSync On @@ -4833,130 +4836,6 @@ Once deleted, these can NOT be recovered. Are you 100% sure you want to delete t - - ConfigurePostProcessing - - - Post-Processing Effects - - - - - Changes apply immediately while a game is running. - - - - - Enable post-processing - - - - - Preset: - - - - - Apply - - - - - Reset Values - - - - - Return every effect to the values the preset ships with. - - - - - Save As... - - - - - Save Preset - - - - - Preset name: - - - - - Clear - - - - - Remove every effect in use and deselect the preset. - - - - - Add Effect - - - - - None - - - - - No effects in use. Pick a preset and press Apply, or add effects one by one. - - - - - Custom chain. Pick a preset above and press Apply to replace it. - - - - - Active preset: %1 (modified). Press Reset Values to go back to how it ships. - - - - - Active preset: %1 - - - - - Enabled - - - - - Disabled - - - - - Reset to defaults - - - - - Effect '%1' was not found. - - - - - Effect failed to compile: -%1 - - - - - No usable ReShade FX effects were found. Place .fx files in the post_shaders folder. - - - ConfigureProfileManager @@ -6041,50 +5920,50 @@ Please go to Configure -> System -> Network and make a selection. GRenderWindow - - + + OpenGL not available! - + OpenGL shared contexts are not supported. - + Eden has not been compiled with OpenGL support. - - - + + + Error while initializing OpenGL! - + Your GPU may not support OpenGL, or you do not have the latest graphics driver. - + Error while initializing OpenGL 4.6! - + Your GPU may not support OpenGL 4.6, or you do not have the latest graphics driver.<br><br>GL Renderer:<br>%1 - + Your GPU may not support one or more required OpenGL extensions. Please ensure you have the latest graphics driver.<br><br>GL Renderer:<br>%1<br><br>Unsupported extensions:<br>%2 - + This build doesn't have OpenGL support. @@ -6904,42 +6783,42 @@ Debug Message: - + &Multiplayer - + &Tools - + Am&iibo - + Launch &Applet - + &TAS - + &Create Home Menu Shortcut - + Install &Firmware - + &Help &Hjælp @@ -6965,7 +6844,7 @@ Debug Message: - + &Pause @@ -7066,176 +6945,176 @@ Debug Message: - &User Handbook + Open &Quickstart Guide - - &Capture Screenshot + + &FAQ - &Album + &Capture Screenshot - &Set Nickname and Owner + &Album - &Delete Game Data + &Set Nickname and Owner - &Restore Amiibo + &Delete Game Data - &Format Amiibo + &Restore Amiibo - &Mii Editor + &Format Amiibo + &Mii Editor + + + + &Configure TAS... - + Configure C&urrent Game... - - + + &Start - + &Reset - - + + R&ecord - + Open &Controller Menu - + Install Decryption &Keys - + &Home Menu - + &Desktop - + &Application Menu - + &Root Data Folder - + &NAND Folder - + &SDMC Folder - + &Mod Folder - + &Log Folder - + From Folder - + From ZIP - + &Eden Dependencies - + &Data Manager - + &Tree View - + &Grid View - + Game Icon Size - - + + None - + Show Game &Name - - - Show &Performance Overlay - - - Post-Processing &Shaders... + Show &Performance Overlay @@ -7244,737 +7123,722 @@ Debug Message: - + Small (32x32) - + Standard (64x64) - + Large (128x128) - + Full Size (256x256) - + Broken Vulkan Installation Detected - + Vulkan initialization failed during boot. - + Running a game TRANSLATORS: This string is shown to the user to explain why yuzu needs to prevent the computer from sleeping - + Loading Web Applet... - - + + Disable Web Applet - + Disabling the web applet can lead to undefined behavior and should only be used with Super Mario 3D All-Stars. Are you sure you want to disable the web applet? (This can be re-enabled in the Debug settings.) - + The amount of shaders currently being built - + The current selected resolution scaling multiplier. - + Current emulation speed. Values higher or lower than 100% indicate emulation is running faster or slower than a Switch. - + How many frames per second the game is currently displaying. This will vary from game to game and scene to scene. - + Time taken to emulate a Switch frame, not counting framelimiting or v-sync. For full-speed emulation this should be at most 16.67 ms. - + Unmute - + Mute - + Reset Volume - - Configure Effects... - - - - + &Clear Recent Files - + &Continue - + Warning: Outdated Game Format - + You are using the deconstructed ROM directory format for this game, which is an outdated format that has been superseded by others such as NCA, NAX, XCI, or NSP. Deconstructed ROM directories lack icons, metadata, and update support.<br>For an explanation of the various Switch formats Eden supports, out our user handbook. This message will not be shown again. - - + + Error while loading ROM! - + The ROM format is not supported. - + An error occurred initializing the video core. - - This is usually caused by outdated GPU drivers. Please see the log for more details. See: <a href='https://git.eden-emu.dev/eden-emu/eden/src/branch/master/docs/user/HowToAccessLogs.md'>How to access log files</a>. + + Eden has encountered an error while running the video core. This is usually caused by outdated GPU drivers, including integrated ones. Please see the log for more details. For more information on accessing the log, please see the following page: <a href='https://yuzu-mirror.github.io/help/reference/log-files/'>How to Upload the Log File</a>. - + Error while loading ROM! %1 %1 signifies a numeric error code. - + %1<br>Please redump your files or ask on Discord/Stoat for help. %1 signifies an error string. - + An unknown error occurred. Please see the log for more details. - - + + (64-bit) - - + + (32-bit) - - + + %1 %2 %1 is the title name. %2 indicates if the title is 64-bit or 32-bit - + Closing software... - + Save Data - + Mod Data - + Error Opening %1 Folder - - + + Folder does not exist! - + Remove Installed Game Contents? - + Remove Installed Game Update? - + Remove Installed Game DLC? - + Remove Entry - + Delete OpenGL Transferable Shader Cache? - + Delete Vulkan Transferable Shader Cache? - + Delete All Transferable Shader Caches? - + Remove Custom Game Configuration? - + Remove Cache Storage? - + Remove File - + Remove Play Time Data - + Reset play time? - - + + RomFS Extraction Failed! - + There was an error copying the RomFS files or the user cancelled the operation. - + Full - + Skeleton - + Select RomFS Dump Mode - + Please select the how you would like the RomFS dumped.<br>Full will copy all of the files into the new directory while <br>skeleton will only create the directory structure. - + There is not enough free space at %1 to extract the RomFS. Please free up space or select a different dump directory at Emulation > Configure > System > Filesystem > Dump Root - + Extracting RomFS... - - + + Cancel - + RomFS Extraction Succeeded! - + The operation completed successfully. - + Error Opening %1 - + Select Directory - + Properties - + The game properties could not be loaded. - + Switch Executable (%1);;All Files (*.*) %1 is an identifier for the Switch executable file extensions. - + Load File - + Open Extracted ROM Directory - + Invalid Directory Selected - + The directory you have selected does not contain a 'main' file. - + Installable Switch File (*.nca *.nsp *.xci);;Nintendo Content Archive (*.nca);;Nintendo Submission Package (*.nsp);;NX Cartridge Image (*.xci) - + Install Files - + %n file(s) remaining - + Installing file "%1"... - - + + Install Results - + To avoid possible conflicts, we discourage users from installing base games to the NAND. Please, only use this feature to install updates and DLC. - + %n file(s) were newly installed - + %n file(s) were overwritten - + %n file(s) failed to install - + System Application - + System Archive - + System Application Update - + Firmware Package (Type A) - + Firmware Package (Type B) - + Game - + Game Update - + Game DLC - + Delta Title - + Select NCA Install Type... - + Please select the type of title you would like to install this NCA as: (In most instances, the default 'Game' is fine.) - + Failed to Install - + The title type you selected for the NCA is invalid. - + File not found - + File "%1" not found - + OK - + Function Disabled - + Compatibility list reporting is currently disabled. Check back later! - + Error opening URL - + Unable to open the URL "%1". - + TAS Recording - + Overwrite file of player 1? - + Invalid config detected - + Handheld controller can't be used on docked mode. Pro controller will be selected. - - + + Amiibo - - + + The current amiibo has been removed - + Error - - + + The current game is not looking for amiibos - + Amiibo File (%1);; All Files (*.*) - + Load Amiibo - + Error loading Amiibo data - + The selected file is not a valid amiibo - + The selected file is already on use - + An unknown error occurred - + No firmware available - + Firmware Corrupted - + Unknown applet - + Applet doesn't map to a known value. - + Record not found - + Applet not found. Please reinstall firmware. - + Capture Screenshot - + PNG Image (*.png) - + TAS state: Running %1/%2 - + TAS state: Recording %1 - + TAS state: Idle %1/%2 - + TAS State: Invalid - + &Stop Running - + Stop R&ecording - + Building: %n shader(s) - + Scale: %1x %1 is the resolution scaling factor - + Speed: %1% / %2% - + Speed: %1% - + Game: %1 FPS - + Frame: %1 ms - + NO AA - - NO FX - - - - - FX - - - - + VOLUME: MUTE - + VOLUME: %1% Volume percentage (e.g. 50%) - + Derivation Components Missing - + Decryption keys are missing. Install them now? - + Wayland Detected! - + Wayland is known to have significant performance issues and mysterious bugs. It's recommended to use X11 instead. @@ -7982,74 +7846,74 @@ Would you like to force it for future launches? - + Use X11 - + Continue with Wayland - + Don't show again - + Restart Required - + Restart Eden to apply the X11 backend. - + Slow - + Turbo - + Unlocked - + Select RomFS Dump Target - + Please select which RomFS you would like to dump. - + Are you sure you want to close Eden? - - - + + + Eden - + Are you sure you want to stop the emulation? Any unsaved progress will be lost. - + The currently running application has requested Eden to not exit. Would you like to bypass this and exit anyway? @@ -9230,275 +9094,275 @@ p, li { white-space: pre-wrap; } - This game may require firmware to function properly, and you don't have any installed. Please install firmware before launching, or press "OK" to launch anyways. + The game you are trying to launch requires firmware to boot or to get past the opening menu. Please <a href='https://yuzu-mirror.github.io/help/quickstart'>dump and install firmware</a>, or press "OK" to launch anyways. - + Installing Firmware... - - - - - + + + + + Cancel - + Firmware Install Failed - + Firmware Install Succeeded - + Firmware integrity verification failed! - - + + Verification failed for the following files: %1 - - + + Verifying integrity... - - - - Integrity verification succeeded! - - + Integrity verification succeeded! + + + + + The operation completed successfully. - - + + Integrity verification failed! - + File contents may be corrupt or missing. - + Integrity verification couldn't be performed - + Firmware installation cancelled, firmware may be in a bad state or corrupted. File contents could not be checked for validity. - + Select Dumped Keys Location - + Decryption Keys install succeeded - + Decryption Keys install failed - + Orphaned Profiles Detected! - + UNEXPECTED BAD THINGS MAY HAPPEN IF YOU DON'T READ THIS!<br>Eden has detected the following save directories with no attached profile:<br>%1<br><br>The following profiles are valid:<br>%2<br><br>Click "OK" to open your save folder and fix up your profiles.<br>Hint: copy the contents of the largest or last-modified folder elsewhere, delete all orphaned profiles, and move your copied contents to the good profile.<br><br>Still confused? See the <a href='https://git.eden-emu.dev/eden-emu/eden/src/branch/master/docs/user/Orphaned.md'>help page</a>.<br> - + Really clear data? - + Important data may be lost! - + Are you REALLY sure? - + Once deleted, your data will NOT come back! Only do this if you're 100% sure you want to delete this data. - + Clearing... - + Select Export Location - + %1.zip - - - + + + Zipped Archives (*.zip) - + Exporting data. This may take a while... - + Exporting - + Exported Successfully - + Data was exported successfully. - + Export Cancelled - + Export was cancelled by the user. - + Export Failed - + Ensure you have write permissions on the targeted directory and try again. - + Select Import Location - + Import Warning - + All previous data in this directory will be deleted. Are you sure you wish to proceed? - + Importing data. This may take a while... - + Importing - + Imported Successfully - + Data was imported successfully. - + Import Cancelled - + Import was cancelled by the user. - + Import Failed - + Ensure you have read permissions on the targeted directory and try again. - + Keys not installed - + Install decryption keys and restart Eden before attempting to install firmware. - + Select Dumped Firmware Source Location - + Select Dumped Firmware ZIP - + Firmware cleanup failed - + Failed to clean up extracted firmware cache. Check write permissions in the system temp directory and try again. OS reported error: %1 diff --git a/dist/languages/de.ts b/dist/languages/de.ts index a911437c44..db3d3020b4 100644 --- a/dist/languages/de.ts +++ b/dist/languages/de.ts @@ -591,22 +591,12 @@ SMAA bietet die beste Bildqualität. FXAA liefert bei niedrigeren Auflösungen ein stabileres Bild. - - Enable post-processing effects - - - - - Applies post-processing effects to the final image. - - - - + Fullscreen Mode: Vollbild-Modus: - + The method used to render the window in fullscreen. Borderless offers the best compatibility with the on-screen keyboard that some games request for input. Exclusive fullscreen may offer better performance and better Freesync/Gsync support. @@ -615,12 +605,12 @@ Der randlose Modus bietet die beste Kompatibilität mit der Bildschirmtastatur, Der exklusive Vollbildmodus bietet möglicherweise eine bessere Leistung und eine bessere Freesync-/G-Sync-Unterstützung. - + Aspect Ratio: Seitenverhältnis: - + Stretches the renderer to fit the specified aspect ratio. Most games only support 16:9, so modifications are required to get other ratios. Also controls the aspect ratio of captured screenshots. @@ -629,36 +619,36 @@ Die meisten Spiele unterstützen nur das Seitenverhältnis 16:9, sodass Anpassun Steuert außerdem das Seitenverhältnis der aufgenommenen Bildschirmfotos. - + Use persistent pipeline cache Persistenten Rohrleitungs-Cache verwenden - + Allows saving shaders to storage for faster loading on following game boots. Disabling it is only intended for debugging. Ermöglicht das Speichern von Shadern, um sie beim nächsten Spielstart schneller laden zu können. Die Deaktivierung ist ausschließlich für Fehlerbehebungszwecke vorgesehen. - + Use asynchronous GPU emulation Asynchrone GPU-Emulation verwenden - + Uses an extra CPU thread for rendering. This option should always remain enabled. Verwendet einen zusätzlichen CPU-Thread für das Rendern. Diese Option sollte immer aktiviert bleiben. - + NVDEC emulation: NVDEC-Emulation: - + Specifies how videos should be decoded. It can either use the CPU or the GPU for decoding, or perform no decoding at all (black screen on videos). In most cases, GPU decoding provides the best performance. @@ -667,12 +657,12 @@ Dabei kann entweder die CPU oder die GPU für die Dekodierung verwendet werden, In den meisten Fällen bietet die GPU-Dekodierung die beste Leistung. - + ASTC Decoding Method: ASTC-Dekodier-Methode: - + This option controls how ASTC textures should be decoded. CPU: Use the CPU for decoding. GPU: Use the GPU's compute shaders to decode ASTC textures (recommended). @@ -685,12 +675,12 @@ CPU asynchron: Die Dekodierung von ASTC-Texturen erfolgt bei Bedarf über die CP kann jedoch zu Artefakten führen. - + ASTC Recompression Method: ASTC-Rekompression-Methode: - + Most GPUs lack support for ASTC textures and must decompress to anintermediate format: RGBA8. BC1/BC3: The intermediate format will be recompressed to BC1 or BC3 format, saving VRAM but degrading image quality. @@ -699,64 +689,44 @@ BC1/BC3: Das Zwischenformat wird wieder in das BC1- oder BC3-Format komprimiert, was VRAM spart, jedoch zu Einbußen bei der Bildqualität führt. - + Frame Pacing Mode (Vulkan only) Frame-Pacing-Modus (nur Vulkan) - + Controls how the emulator manages frame pacing to reduce stuttering and make the frame rate smoother and more consistent. Steuert, wie der Emulator das Frame-Pacing verwaltet, um Ruckeln zu reduzieren und die Bildrate flüssiger und gleichmäßiger zu gestalten. - + VRAM Usage Mode: VRAM-Nutzungs Modus: - + Selects whether the emulator should prefer to conserve memory or make maximum usage of available video memory for performance. Aggressive mode may impact performance of other applications such as recording software. Legt fest, ob der Emulator vorrangig Speicherplatz sparen oder den verfügbaren Grafikspeicher zur Leistungsoptimierung maximal ausnutzen soll. Der aggressive Modus kann die Leistung anderer Anwendungen, wie z. B. Aufnahmesoftware, beeinträchtigen. - + Skip CPU Inner Invalidation CPU-interne Invalidierung überspringen - + Skips certain cache invalidations during memory updates, reducing CPU usage and improving latency. This may cause soft-crashes. Überspringt bestimmte Cache-Invalidierungen auf CPU-Seite während Speicherupdates, reduziert die CPU-Auslastung und verbessert die Leistung. Dies verursacht vielleicht Abstürze. - - GPU Readback Before NCE Invalidation - - - - - Flushes GPU buffer data back to guest memory before NCE invalidates the whole guest page, preserving it while the CPU store proceeds. - - - - - Patch Runtime NROs for NCE - - - - - Applies NCE code patches to runtime-loaded NRO modules.This is required for some games to run correctly. - - - - + VSync Mode: VSync-Modus: - + FIFO (VSync) does not drop frames or exhibit tearing but is limited by the screen refresh rate. FIFO Relaxed allows tearing as it recovers from a slow down. Mailbox can have lower latency than FIFO and does not tear but may drop frames. @@ -767,12 +737,12 @@ Postkasten kann eine geringere Latenz als FIFO aufweisen und verursacht kein Tea Sofort (ohne Synchronisation) zeigt alles an, was verfügbar ist, und kann Tearing verursachen. - + Sync Memory Operations Speicheroperationen synchronisieren - + Ensures data consistency between compute and memory operations. This option fixes issues in games, but may degrade performance. Unreal Engine 4 games often see the most significant changes thereof. @@ -781,44 +751,44 @@ Diese Option behebt Probleme in Spielen, kann jedoch zu Leistungseinbußen führ Bei Spielen mit Unreal Engine 4 sind die Auswirkungen oft am deutlichsten spürbar. - + Enable asynchronous presentation (Vulkan only) Aktiviere asynchrone Präsentation (Nur Vulkan) - + Slightly improves performance by moving presentation to a separate CPU thread. Verbessert die Leistung geringfügig, indem die Darstellung auf einen separaten CPU-Thread verlagert wird. - + Force maximum clocks (Vulkan only) Erzwinge Maximale Taktrate (Vulkan only) - + Runs work in the background while waiting for graphics commands to keep the GPU from lowering its clock speed. Lässt im Hintergrund die GPU Aufgaben erledigen während diese auf Grafikbefehle wartet, damit diese nicht herunter taktet. - + Anisotropic Filtering: Anisotrope Filterung: - + Controls the quality of texture rendering at oblique angles. Safe to set at 16x on most GPUs. Steuert die Qualität der Texturwiedergabe bei schrägen Blickwinkeln. Bei den meisten Grafikkarten kann dieser Wert bedenkenlos auf 16x eingestellt werden. - + GPU Mode: GPU-Modus: - + Controls the GPU emulation mode. Most games render fine with Fast, but Accurate is still required for some. Particles tend to only render correctly with Accurate mode. @@ -827,12 +797,12 @@ Die meisten Spiele werden im Modus Schnell in Ordnung gerendert, für einige ist Partikel werden in der Regel nur im Modus Akkurat korrekt gerendert. - + DMA Accuracy: DMA-Genauigkeit: - + Controls the DMA read mode. Unsafe is faster, while Safe is more stable and can fix issues in some games. Default follows the GPU Accuracy setting. @@ -841,58 +811,76 @@ Unsicher ist schneller, während Sicher stabiler ist und in manchen Spielen Prob Standard folgt der GPU-Genauigkeit Einstellung. - + GPU Fence Behavior: GPU-Zaunobjekt-Verhalten: - + Controls the GPU fence synchronization behavior. Immediate is the fastest option, but can introduce some issues. Balanced offers better compatibility and may fix issues in some games. Accurate further improves compatibility at the cost of some performance. -Default follows the GPU Mode setting. - +Strict is the slowest option, but can fix issues that require stricter synchronization. +Default follows the GPU Accuracy setting. + Steuert das GPU-Zaunobjekt-Synchronisations-Verhalten. +Direkt ist die schnellste Option, kann aber zu Problemen führen. +Ausbalanciert bietet bessere Kompatibilität und kann in manchen Spielen Probleme beheben. +Genau bietet noch bessere Kompatibilität auf Kosten von etwas Leisung. +Strikt ist die langsamste Option, kann aber Probleme beheben, die striktere Synchronisation erfordern. +Standard folgt der GPU-Genauigkeit Einstellung. - + + Enable GPU buffer readback + GPU-Puffer-Rücklesung aktivieren + + + + Preserves GPU-modified data by reading it back before uploading. +Some games require this to render certain effects properly. + Bewahrt von der GPU modifizierte Pufferdaten, indem diese vor dem Hochladen zurückgelesen werden. +Einige Spiele benötigen dies, um bestimmte Effekte korrekt darzustellen. + + + Enable asynchronous shader compilation Aktiviere asynchrones Shader-Kompilieren - + May reduce shader stutter. Kann Shader-Ruckler reduzieren. - + GPU Clocks GPU-Takte - + Makes the game believe GPU work finishes faster than it does, so it stops lowering resolution and render distance to fit the Switch's clocks. Führt dazu, dass das Spiel glaubt, die Arbeit der GPU würde früher fertig sein, als sie eigentlich ist. Dadurch hört das Spiel auf die Auflösung und Render-Distanz zu verringern um sich den Takten der Switch anzupassen. - + GPU Unswizzle GPU-Unswizzle - + Accelerates BCn 3D texture decoding using GPU compute. Disable if experiencing crashes or graphical glitches. Beschleunigt die Dekodierung von BCn-3D-Texturen mithilfe von GPU-Rechenleistung. Deaktiviere diese Option, falls Abstürze oder Grafikfehler auftreten. - + GPU Unswizzle Max Texture Size GPU-Unswizzle max. Texturgröße - + Sets the maximum size (MiB) for GPU-based texture unswizzling. While the GPU is faster for medium and large textures, the CPU may be more efficient for very small ones. Adjust this to find the balance between GPU acceleration and CPU overhead. @@ -901,48 +889,48 @@ Während die GPU für mittelgroße und große Texturen schneller ist, kann die C Passen Sie diesen Wert an, um das Gleichgewicht zwischen GPU-Beschleunigung und CPU-Overhead zu finden. - + GPU Unswizzle Stream Size GPU-Unswizzle-Streamgröße - + Sets the maximum amount of texture data (in MiB) processed per frame. Higher values can reduce stutter during texture loading but may impact frame consistency. Legt die maximale Menge an Texturdaten (in MiB) fest, die pro Bild verarbeitet wird. Höhere Werte können Ruckeln beim Laden von Texturen verringern, können sich jedoch auf die Bildrate auswirken. - + GPU Unswizzle Chunk Size GPU-Unswizzle Chunk-Größe - + Determines the number of depth slices processed in a single dispatch. Increasing this can improve throughput on high-end GPUs but may cause TDR or driver timeouts on weaker hardware. Legt die Anzahl der Tiefenschnitte fest, die in einem einzelnen Durchlauf verarbeitet werden. Eine Erhöhung dieses Werts kann den Durchsatz auf High-End-GPUs verbessern, bei schwächerer Hardware jedoch zu TDR- oder Treiber-Auszeiten führen. - + Use Vulkan pipeline cache Vulkan-Pipeline-Cache verwenden - + Enables GPU vendor-specific pipeline cache. This option can improve shader loading time significantly in cases where the Vulkan driver does not store pipeline cache files internally. Aktiviert den herstellerspezifischen Pipeline-Cache der GPU. Diese Option kann die Ladezeit von Shadern erheblich verkürzen, wenn der Vulkan-Treiber die Pipeline-Cache-Dateien nicht intern speichert. - + Enable Compute Pipelines (Intel Vulkan Only) Aktiviere Compute-Pipelines (Nur Intel Vulkan) - + Required by some games. This setting only exists for Intel proprietary drivers and may crash if enabled. Compute pipelines are always enabled on all other drivers. @@ -951,182 +939,194 @@ Diese Einstellung ist nur bei proprietären Intel-Treibern vorhanden und kann be Bei allen anderen Treibern sind die Rechen-Rohrleitungen immer aktiviert. - + Enable Reactive Flushing Aktiviere Reactives Flushing - + Uses reactive flushing instead of predictive flushing, allowing more accurate memory syncing. Benutzt Reactive-Flushing anstatt Predictive-Flushing, welches akkurateres Speicher-Synchronisieren erlaubt. - + Sync to framerate of video playback Synchronisiere mit Bildrate von Video-Wiedergaben - + Run the game at normal speed during video playback, even when the framerate is unlocked. Lasse das Spiel in der normalen Geschwindigkeit abspielen, trotz freigeschalteter Bildrate - + Barrier feedback loops Barrier-Feedback-Schleifen - + Improves rendering of transparency effects in specific games. Verbessert das Rendering von Transparenzeffekten in bestimmten Spielen. - + Enable buffer history Puffer-Verlauf aktivieren - + Enables access to previous buffer states. This option may improve rendering quality and performance consistency in some games. Ermöglicht den Zugriff auf frühere Pufferzustände. Diese Option kann in manchen Spielen die Darstellungsqualität und die Leistungsstabilität verbessern. - + Fix bloom effects Bloom-Effekte beheben - + Removes bloom in Burnout. Entfernt Bloom in Burnout. - + + Enable Legacy Rescale Pass + „Legacy Rescale Pass“ aktivieren + + + + May fix rescale issues in some games by relying on behavior from the previous implementation. +Legacy behavior workaround that fixes line artifacts on AMD and Intel GPUs, and grey texture flicker on Nvidia GPUs in Luigis Mansion 3. + Behebt möglicherweise Probleme mit der Skalierung in einigen Spielen, indem auf das Verhalten der vorherigen Implementierung zurückgegriffen wird. +Eine Umgehungslösung für das alte Verhalten, die Linienartefakte auf AMD- und Intel-GPUs sowie graues Texturflackern auf Nvidia-GPUs in „Luigi’s Mansion 3“ behebt. + + + Extended Dynamic State Erweiterter dynamischer Zustand - + Controls the number of features that can be used in Extended Dynamic State. Higher states allow for more features and can increase performance, but may cause additional graphical issues. Legt die Anzahl der Funktionen fest, die im erweiterten dynamischen Modus verwendet werden können. Höhere Stufen ermöglichen mehr Funktionen und können die Leistung steigern, können jedoch zusätzliche grafische Probleme verursachen. - + Vertex Input Dynamic State Dynamischer Zustand der Scheitelpunkteingabe - + Enables vertex input dynamic state feature for better quality and performance. Aktiviert die Funktion für den dynamischen Status der Scheitelpunkteingabe, um eine bessere Qualität und Leistung zu erzielen. - + Sample Shading Probe-Schattierung - + Allows the fragment shader to execute per sample in a multi-sampled fragment instead of once per fragment. Improves graphics quality at the cost of performance. Higher values improve quality but degrade performance. Ermöglicht es dem Fragment-Shader, pro Abtastwert in einem mehrfach abgetasteten Fragment ausgeführt zu werden, anstatt nur einmal pro Fragment. Verbessert die Grafikqualität auf Kosten der Leistung. Höhere Werte verbessern die Qualität, beeinträchtigen jedoch die Leistung. - + RNG Seed Startwert für den Zufallszahlengenerator - + Controls the seed of the random number generator. Mainly used for speedrunning. Steuert den Startwert des Zufallszahlengenerators. Wird hauptsächlich für Schnelldurchläufe verwendet. - + Device Name Gerätename - + The name of the console. Der Name der Konsole. - + Homebrew Args Homebrew-Argumente - + Command-line arguments passed to homebrew at launch (e.g. -noglsl). Befehlszeilenargumente, die beim Start an Homebrew übergeben werden (z. B. -noglsl). - + Custom RTC Date: Benutzerdefinierte Echtzeituhrdatum: - + This option allows to change the clock of the console. Can be used to manipulate time in games. Diese Option erlaubt die Änderung der Uhr der Konsole. Kann benutzt werden um Zeit in Spielen zu manipulieren. - + The number of seconds from the current unix time Die Anzahl der Sekunden seit dem aktuellen Unix-Zeitstempel - + Language: Sprache: - + This option can be overridden when region setting is auto-select Diese Option kann überschrieben werden, wenn die Regionseinstellung auf „Automatische Auswahl“ steht - + Region: Region: - + The region of the console. Die Region der Konsole. - + Time Zone: Zeitzone: - + The time zone of the console. Die Zeitzone der Konsole. - + Sound Output Mode: Tonausgangsmodus: - + Console Mode: Konsolenmodus: - + Selects if the console is in Docked or Handheld mode. Games will change their resolution, details and supported controllers and depending on this setting. Setting to Handheld can help improve performance for low end systems. @@ -1135,1026 +1135,1042 @@ Je nach dieser Einstellung ändern sich bei Spielen die Auflösung, die Detailst Die Einstellung auf „Handgerät“ kann dazu beitragen, die Leistung auf Systemen mit geringerer Leistung zu verbessern. - + Prompt for user profile on boot Beim Systemstart nach dem Benutzerprofil fragen - + Useful if multiple people use the same PC. Nützlich, wenn mehrere Personen denselben PC nutzen. - + Pause when not in focus Pausieren, wenn nicht im Fokus - + Pauses emulation when focusing on other windows. Pausiert die Emulation, wenn der Fokus auf andere Fenster wechselt. - + Confirm before stopping emulation Vor dem Stoppen der Emulation bestätigen - + Overrides prompts asking to confirm stopping the emulation. Enabling it bypasses such prompts and directly exits the emulation. Überschreibt die Abfragen zur Bestätigung des Beendens der Emulation. Wenn diese Option aktiviert ist, werden solche Abfragen umgangen und die Emulation wird direkt beendet. - + Hide mouse on inactivity Mauszeiger verbergen - + Hides the mouse after 2.5s of inactivity. Verbirgt den Mauszeiger nach 2,5 Sekunden Inaktivität. - + + Disable controller applet + Controller-Applet deaktivieren + + + + Forcibly disables the use of the controller applet in emulated programs. +When a program attempts to open the controller applet, it is immediately closed. + Deaktiviert die Verwendung des Controller-Applets in emulierten Programmen zwangsweise. +Wenn ein Programm versucht, das Controller-Applet zu öffnen, wird es sofort geschlossen. + + + Check for updates Auf Aktualisierungen überprüfen - + Whether or not to check for updates upon startup. Ob nach Aktualisierungen während des Startens gesucht werden soll. - + Enable Gamemode Spielmodus aktivieren - + Force X11 as Graphics Backend X11 als Grafik-Backend erzwingen - + Custom frontend Benutzerdefiniertes Frontend - + Real applet Echtes Applet - - - Disabled - Deaktiviert - - - + Never Niemals - + On Load Beim Laden - + Always Immer - + CPU CPU - + GPU GPU - + CPU Asynchronous CPU Asynchron - + Uncompressed (Best quality) Unkomprimiert (Beste Qualität) - + BC1 (Low quality) BC1 (Niedrige Qualität) - + BC3 (Medium quality) BC3 (Mittlere Qualität) - - + + Auto Auto - + 30 FPS 30 BpS - + 60 FPS 60 BpS - + 90 FPS 90 BpS - + 120 FPS 120 BpS - + Conservative Konservativ - + Aggressive Aggressiv - + Vulkan Vulkan - + OpenGL GLSL OpenGL GLSL - + OpenGL GLASM (Assembly Shaders, NVIDIA Only) OpenGL GLASM (Assembler-Shader, nur NVIDIA) - + OpenGL SPIR-V (Experimental, AMD/Mesa Only) OpenGL SPIR-V (experimentell, nur AMD/Mesa) - + Null Null - + Fast Schnell - - - + + + Accurate Akkurat - - - + + + Default Vorgabe - + Unsafe (fast) Unsicher (schnell) - + Safe (stable) Sicher (stabil) - + Immediate Direkt - + Balanced Ausgeglichen - + + Strict + Strikt + + + Unsafe Unsicher - + Paranoid (disables most optimizations) Paranoid (deaktiviert die meisten Optimierungen) - + Debugging Fehlerbehebung - + Dynarmic Dynarmic - + NCE NCE - + Borderless Windowed Rahmenloses Fenster - + Exclusive Fullscreen Exklusiver Vollbildmodus - + No Video Output Keine Videoausgabe - + CPU Video Decoding CPU Video Dekodierung - + GPU Video Decoding (Default) GPU Video Dekodierung (Standard) - + 0.25X (180p/270p) [EXPERIMENTAL] 0.25X (180p/270p) [EXPERIMENTELL] - + 0.5X (360p/540p) [EXPERIMENTAL] 0,5X (360p/540p) [EXPERIMENTELL] - + 0.75X (540p/810p) [EXPERIMENTAL] 0,75X (540p/810p) [EXPERIMENTELL] - + 1X (720p/1080p) 1X (720p/1080p) - + 1.25X (900p/1350p) [EXPERIMENTAL] 1.25X (900p/1350p) [EXPERIMENTELL] - + 1.5X (1080p/1620p) [EXPERIMENTAL] 1,5X (1080p/1620p) [EXPERIMENTELL] - + 2X (1440p/2160p) 2X (1440p/2160p) - + 3X (2160p/3240p) 3X (2160p/3240p) - + 4X (2880p/4320p) 4X (2880p/4320p) - + 5X (3600p/5400p) 5X (3600p/5400p) - + 6X (4320p/6480p) 6X (4320p/6480p) - + 7X (5040p/7560p) 7X (5040p/7560p) - + 8X (5760p/8640p) 8X (5760p/8640p) - + Nearest Neighbor Nearest-Neighbor - + Bilinear Bilinear - + Bicubic Bikubisch - + Gaussian Gaussian - + Lanczos Lanczos - + ScaleForce ScaleForce - + AMD FidelityFX Super Resolution AMD FidelityFX Super-Auflösung - + Area Bereich - + MMPX MMPX - + Zero-Tangent Nulltangente - + B-Spline B-Spline - + Mitchell Mitchell - + Spline-1 Spline-1 - + Snapdragon Game Super Resolution Snapdragon Spiel-Superauflösung - + Snapdragon Game Super Resolution EdgeDir Snapdragon Spiel-Superauflösung EdgeDir - + None Keiner - + FXAA FXAA - + SMAA SMAA - + Default (16:9) Vorgabe (16:9) - + Force 4:3 4:3 erzwingen - + Force 21:9 21:9 erzwingen - + Force 16:10 16:10 erzwingen - + Stretch to Window Auf Fenster anpassen - + Automatic Automatisch - + 2x 2x - + 4x 4x - + 8x 8x - + 16x 16x - + Japanese (日本語) Japanisch (日本語) - + American English Amerikanisches Englisch - + French (français) Französisch (français) - + German (Deutsch) Deutsch (German) - + Italian (italiano) Italienisch (italiano) - + Spanish (español) Spanisch (español) - + Chinese Chinesisch - + Korean (한국어) Koreanisch (한국어) - + Dutch (Nederlands) Niederländisch (Nederlands) - + Portuguese (português) Portugiesisch (português) - + Russian (Русский) Russisch (Русский) - + Taiwanese Taiwanesisch - + British English Britisches Englisch - + Canadian French Kanadisches Französisch - + Latin American Spanish Lateinamerikanisches Spanisch - + Simplified Chinese Vereinfachtes Chinesisch - + Traditional Chinese (正體中文) Traditionelles Chinesisch (正體中文) - + Brazilian Portuguese (português do Brasil) Brasilianisches Portugiesisch (português do Brasil) - + Polish (polska) Polnisch (Polen) - + Thai (แบบไทย) Thailändisch (Thailändische Version) - - + + Japan Japan - + USA USA - + Europe Europa - + Australia Australien - + China China - + Korea Korea - + Taiwan Taiwan - + Auto (%1) Auto select time zone Automatisch (%1) - + Default (%1) Default time zone Standard (%1) - + CET CET - + CST6CDT CST6CDT - + Cuba Kuba - + EET EET - + Egypt Ägypten - + Eire Eire - + EST EST - + EST5EDT EST5EDT - + GB GB - + GB-Eire GB-Eire - + GMT GMT - + GMT+0 GMT+0 - + GMT-0 GMT-0 - + GMT0 GMT0 - + Greenwich Greenwich - + Hongkong Hongkong - + HST HST - + Iceland Island - + Iran Iran - + Israel Israel - + Jamaica Jamaika - + Kwajalein Kwajalein - + Libya Libyen - + MET MET - + MST MST - + MST7MDT MST7MDT - + Navajo Navajo - + NZ NZ - + NZ-CHAT NZ-CHAT - + Poland Polen - + Portugal Portugal - + PRC PRC - + PST8PDT PST8PDT - + ROC ROC - + ROK ROK - + Singapore Singapur - + Turkey Türkei - + UCT UCT - + Universal Universal - + UTC UTC - + W-SU W-SU - + WET WET - + Zulu Zulu - + Mono Mono - + Stereo Stereo - + Surround Surround - + 4GB DRAM (Default) 4GB DRAM (Vorgabe) - + 6GB DRAM (Unsafe) 6GB DRAM (Unsicher) - + 8GB DRAM 8GB DRAM - + 10GB DRAM (Unsafe) 10GB DRAM (Unsicher) - + 12GB DRAM (Unsafe) 12GB DRAM (Unsicher) - + Docked Angedockt - + Handheld Handgerät - - + + Normal Normal - - + + Boost Beschleunigung - - + + Overclock Übertaktung - + Always ask (Default) Immer fragen (Vorgabe) - + Only if game specifies not to stop Nur wenn ein Spiel vorgibt, nicht zu stoppen - + Never ask Niemals fragen - + Very Small (16 MB) Sehr klein (16 MB) - + Small (32 MB) Klein (32 MB) - + Normal (128 MB) Normal (128 MB) - + Large (256 MB) Groß (256 MB) - + Very Large (512 MB) Sehr groß (512 MB) - + Very Low (4 MB) Sehr niedrig (4 MB) - + Low (8 MB) Niedrig (8 MB) - + Normal (16 MB) Normal (16 MB) - + Medium (32 MB) Mittel (32 MB) - + High (64 MB) Hoch (64 MB) - + Very Low (32) Sehr niedrig (32) - + Low (64) Niedrig (64) - + Normal (128) Normal (128) - + Medium (256) Mittel (256) - + High (512) Hoch (512) - + + Disabled + Deaktiviert + + + ExtendedDynamicState 1 ErweiterterDynamischerZustand 1 - + ExtendedDynamicState 2 ErweiterterDynamischerZustand 2 - + ExtendedDynamicState 3 ErweiterterDynamischerZustand 3 - + Tree View Baumansicht - + Grid View Rasteransicht @@ -3266,38 +3282,33 @@ Möchtest du die alten Speicherdaten löschen? Hintergrundfarbe: - + % FSR/SGSR sharpening percentage (e.g. 50%) % - - Configure Effects... - - - - + Off Aus - + VSync Off Vsync Aus - + Recommended Empfohlen - + On An - + VSync On Vsync An @@ -4915,130 +4926,6 @@ Einmal gelöscht, können diese nicht wiederhergestellt werden. Bist du dir zu 1 &Im Dateimanager öffnen - - ConfigurePostProcessing - - - Post-Processing Effects - - - - - Changes apply immediately while a game is running. - - - - - Enable post-processing - - - - - Preset: - - - - - Apply - - - - - Reset Values - - - - - Return every effect to the values the preset ships with. - - - - - Save As... - - - - - Save Preset - - - - - Preset name: - - - - - Clear - - - - - Remove every effect in use and deselect the preset. - - - - - Add Effect - - - - - None - - - - - No effects in use. Pick a preset and press Apply, or add effects one by one. - - - - - Custom chain. Pick a preset above and press Apply to replace it. - - - - - Active preset: %1 (modified). Press Reset Values to go back to how it ships. - - - - - Active preset: %1 - - - - - Enabled - - - - - Disabled - - - - - Reset to defaults - - - - - Effect '%1' was not found. - - - - - Effect failed to compile: -%1 - - - - - No usable ReShade FX effects were found. Place .fx files in the post_shaders folder. - - - ConfigureProfileManager @@ -6126,50 +6013,50 @@ Bitte gehe zu „Konfigurieren“ -> „System“ -> „Netzwerk“ und tr GRenderWindow - - + + OpenGL not available! OpenGL nicht verfügbar! - + OpenGL shared contexts are not supported. Gemeinsame OpenGL-Kontexte werden nicht unterstützt. - + Eden has not been compiled with OpenGL support. Eden wurde nicht mit OpenGL-Unterstützung kompiliert. - - - + + + Error while initializing OpenGL! Fehler beim Initialisieren von OpenGL! - + Your GPU may not support OpenGL, or you do not have the latest graphics driver. Deine Grafikkarte unterstützt kein OpenGL oder du hast nicht den neusten Treiber installiert. - + Error while initializing OpenGL 4.6! Fehler beim Initialisieren von OpenGL 4.6! - + Your GPU may not support OpenGL 4.6, or you do not have the latest graphics driver.<br><br>GL Renderer:<br>%1 Deine Grafikkarte unterstützt OpenGL 4.6 nicht, oder du benutzt nicht die neuste Treiberversion.<br><br>GL Renderer:<br>%1 - + Your GPU may not support one or more required OpenGL extensions. Please ensure you have the latest graphics driver.<br><br>GL Renderer:<br>%1<br><br>Unsupported extensions:<br>%2 Deine Grafikkarte unterstützt anscheinend nicht eine oder mehrere von yuzu benötigten OpenGL-Erweiterungen. Bitte stelle sicher, dass du den neusten Grafiktreiber installiert hast.<br><br>GL Renderer:<br>%1<br><br>Nicht unterstützte Erweiterungen:<br>%2 - + This build doesn't have OpenGL support. Diese Version bietet keine OpenGL-Unterstützung. @@ -6990,42 +6877,42 @@ Fehlerbehebungs-Meldung: Fenstergröße auf 1080p zurücksetzen - + &Multiplayer &Mehrspieler - + &Tools &Werkzeuge - + Am&iibo Am&iibo - + Launch &Applet &Applet starten - + &TAS &TAS - + &Create Home Menu Shortcut &Startmenü-Verknüpfung erstellen - + Install &Firmware Installieren &Firmware - + &Help &Hilfe @@ -7051,7 +6938,7 @@ Fehlerbehebungs-Meldung: - + &Pause &Pause @@ -7152,583 +7039,578 @@ Fehlerbehebungs-Meldung: - &User Handbook - + Open &Quickstart Guide + &Schnellstart-Anleitung öffnen - + + &FAQ + &FAQ + + + &Capture Screenshot &Bildschirmfoto aufnehmen - + &Album &Album - + &Set Nickname and Owner Spitzname und Besitzer &festlegen - + &Delete Game Data Spiel-Daten &löschen - + &Restore Amiibo Amiibo &wiederherstellen - + &Format Amiibo Amiibo &formatieren - + &Mii Editor &Mii-Editor - + &Configure TAS... &TAS &konfigurieren... - + Configure C&urrent Game... &Spiel-Einstellungen ändern... - - + + &Start &Start - + &Reset &Zurücksetzen - - + + R&ecord Aufnahme - + Open &Controller Menu Öffne &Controller-Menü - + Install Decryption &Keys Entschlüsselungsschlüssel installieren - + &Home Menu &Startmenü - + &Desktop &Desktop - + &Application Menu &Anwendungsmenü - + &Root Data Folder &Stammdatenordner - + &NAND Folder &NAND-Ordner - + &SDMC Folder &SDMC-Ordner - + &Mod Folder &Mod-Ordner - + &Log Folder &Protokoll-Ordner - + From Folder Aus Ordner - + From ZIP Aus ZIP - + &Eden Dependencies &Eden-Abhängigkeiten - + &Data Manager &Datenverwalter - + &Tree View &Baumansicht - + &Grid View &Rasteransicht - + Game Icon Size Spielsymbolgröße - - + + None Keine - + Show Game &Name Spiel&name anzeigen - + Show &Performance Overlay Leistungsüberlagerung anzeigen - - - Post-Processing &Shaders... - - &Carousel View &Karussellansicht - + Small (32x32) Klein (32x32) - + Standard (64x64) Standard (64x64) - + Large (128x128) Groß (128x128) - + Full Size (256x256) Volle Größe (256x256) - + Broken Vulkan Installation Detected Defekte Vulkan-Installation erkannt - + Vulkan initialization failed during boot. Initialisierung von Vulkan ist beim Systemstart fehlgeschlagen. - + Running a game TRANSLATORS: This string is shown to the user to explain why yuzu needs to prevent the computer from sleeping Spiel wird ausgeführt - + Loading Web Applet... Web-Applet wird geladen... - - + + Disable Web Applet Web-Applet deaktivieren - + Disabling the web applet can lead to undefined behavior and should only be used with Super Mario 3D All-Stars. Are you sure you want to disable the web applet? (This can be re-enabled in the Debug settings.) Das Deaktivieren des Web-Applets kann zu unvorhersehbarem Verhalten führen und sollte nur bei „Super Mario 3D All-Stars“ verwendet werden. Möchtest du das Web-Applet wirklich deaktivieren? (Dies kann in den Fehlerbehebungs-Einstellungen wieder aktiviert werden.) - + The amount of shaders currently being built Die Anzahl der Shader, die derzeit erstellt werden - + The current selected resolution scaling multiplier. Der aktuell ausgewählte Skalierungsfaktor für die Auflösung. - + Current emulation speed. Values higher or lower than 100% indicate emulation is running faster or slower than a Switch. Aktuelle Emulationsgeschwindigkeit. Werte über oder unter 100 % bedeuten, dass die Emulation schneller oder langsamer läuft als auf einer Switch. - + How many frames per second the game is currently displaying. This will vary from game to game and scene to scene. Wie viele Bilder pro Sekunde das Spiel derzeit anzeigt. Dies variiert von Spiel zu Spiel und von Szene zu Szene. - + Time taken to emulate a Switch frame, not counting framelimiting or v-sync. For full-speed emulation this should be at most 16.67 ms. Die Zeit, die für die Emulation eines Switch-Frames benötigt wird, ohne Berücksichtigung von Framelimiting oder V-Sync. Bei einer Emulation mit voller Geschwindigkeit sollte dieser Wert höchstens 16,67 ms betragen. - + Unmute Stummschaltung aufheben - + Mute Stummschalten - + Reset Volume Lautstärke zurücksetzen - - Configure Effects... - - - - + &Clear Recent Files &Zuletzt verwendete Dateien löschen - + &Continue &Fortfahren - + Warning: Outdated Game Format Warnung: Veraltetes Spielformat - + You are using the deconstructed ROM directory format for this game, which is an outdated format that has been superseded by others such as NCA, NAX, XCI, or NSP. Deconstructed ROM directories lack icons, metadata, and update support.<br>For an explanation of the various Switch formats Eden supports, out our user handbook. This message will not be shown again. Du verwendest für dieses Spiel das dekontruierte ROM-Verzeichnisformat - ein veraltetes Format, das durch andere Formate wie NCA, NAX, XCI oder NSP abgelöst wurde. Dekonstruierten ROM-Verzeichnissen fehlen Symbole, Metadaten und die Unterstützung für Aktualisierungen. <br>Eine Erläuterung der verschiedenen Switch-Formate, die Eden unterstützt, findest du in unserem Benutzerhandbuch. Diese Meldung wird nicht erneut angezeigt. - - + + Error while loading ROM! Fehler beim Laden des ROMs! - + The ROM format is not supported. Das ROM-Format wird nicht unterstützt. - + An error occurred initializing the video core. Beim Initialisieren des Videokerns ist ein Fehler aufgetreten. - - This is usually caused by outdated GPU drivers. Please see the log for more details. See: <a href='https://git.eden-emu.dev/eden-emu/eden/src/branch/master/docs/user/HowToAccessLogs.md'>How to access log files</a>. - + + Eden has encountered an error while running the video core. This is usually caused by outdated GPU drivers, including integrated ones. Please see the log for more details. For more information on accessing the log, please see the following page: <a href='https://yuzu-mirror.github.io/help/reference/log-files/'>How to Upload the Log File</a>. + Bei der Ausführung des Videokerns ist bei Eden ein Fehler aufgetreten. Dies wird in der Regel durch veraltete GPU-Treiber verursacht, einschließlich integrierter Treiber. Weitere Details findest du im Protokoll. Informationen zum Abrufen des Protokolls findest du auf der folgenden Seite: <a href='https://yuzu-mirror.github.io/help/reference/log-files/'>So lädst du die Protokolldatei hoch</a>. - + Error while loading ROM! %1 %1 signifies a numeric error code. Fehler beim Laden des ROMs! %1 - + %1<br>Please redump your files or ask on Discord/Stoat for help. %1 signifies an error string. %1<br>Bitte erstelle deine Dateien erneut oder bitte auf Discord/Stoat um Hilfe. - + An unknown error occurred. Please see the log for more details. Es ist ein unbekannter Fehler aufgetreten. Weitere Informationen findest du im Protokoll. - - + + (64-bit) (64-bit) - - + + (32-bit) (32-bit) - - + + %1 %2 %1 is the title name. %2 indicates if the title is 64-bit or 32-bit %1 %2 - + Closing software... Software wird geschlossen... - + Save Data Speicherdaten - + Mod Data Mod-Daten - + Error Opening %1 Folder Fehler beim Öffnen des Ordners %1 - - + + Folder does not exist! Der Ordner existiert nicht! - + Remove Installed Game Contents? Installierte Spielinhalte entfernen? - + Remove Installed Game Update? Installierte Spielaktualisierung entfernen? - + Remove Installed Game DLC? Installiertes Spiel-DLC entfernen? - + Remove Entry Eintrag entfernen - + Delete OpenGL Transferable Shader Cache? Den übertragbaren Shader-Cache von OpenGL löschen? - + Delete Vulkan Transferable Shader Cache? Den übertragbaren Shader-Cache von Vulkan löschen? - + Delete All Transferable Shader Caches? Alle übertragbaren Shader-Caches löschen? - + Remove Custom Game Configuration? Benutzerdefinierte Spielkonfiguration entfernen? - + Remove Cache Storage? Cache-Speicher löschen? - + Remove File Datei entfernen - + Remove Play Time Data Wiedergabezeitdaten löschen - + Reset play time? Spielzeit zurücksetzen? - - + + RomFS Extraction Failed! RomFS-Extraktion fehlgeschlagen! - + There was an error copying the RomFS files or the user cancelled the operation. Beim Kopieren der RomFS-Dateien ist ein Fehler aufgetreten oder der Benutzer hat den Vorgang abgebrochen. - + Full Vollständig - + Skeleton Skelett - + Select RomFS Dump Mode RomFS-Auslesemodus auswählen - + Please select the how you would like the RomFS dumped.<br>Full will copy all of the files into the new directory while <br>skeleton will only create the directory structure. Bitte wähle aus, wie das RomFS kopiert werden soll. <br>Vollständig kopiert alle Dateien in das neue Verzeichnis, während <br>Skelett lediglich die Verzeichnisstruktur erstellt. - + There is not enough free space at %1 to extract the RomFS. Please free up space or select a different dump directory at Emulation > Configure > System > Filesystem > Dump Root Unter %1 ist nicht genügend Speicherplatz vorhanden, um das RomFS zu extrahieren. Bitte schaffe Speicherplatz oder wähle unter „Emulation > Konfigurieren > System > Dateisystem > Dump-Stammverzeichnis“ ein anderes Dump-Verzeichnis aus. - + Extracting RomFS... RomFS wird extrahiert... - - + + Cancel Abbrechen - + RomFS Extraction Succeeded! RomFS wurde erfolgreich extrahiert! - + The operation completed successfully. Der Vorgang wurde erfolgreich abgeschlossen. - + Error Opening %1 Fehler beim Öffnen von %1 - + Select Directory Verzeichnis auswählen - + Properties Eigenschaften - + The game properties could not be loaded. Die Spieleigenschaften konnten nicht geladen werden. - + Switch Executable (%1);;All Files (*.*) %1 is an identifier for the Switch executable file extensions. Switch-Ausführungsdatei (%1);;Alle Dateien (*.*) - + Load File Datei laden - + Open Extracted ROM Directory Verzeichnis mit dem extrahierten ROM öffnen - + Invalid Directory Selected Ungültiges Verzeichnis ausgewählt - + The directory you have selected does not contain a 'main' file. Das von dir ausgewählte Verzeichnis enthält keine „main“-Datei. - + Installable Switch File (*.nca *.nsp *.xci);;Nintendo Content Archive (*.nca);;Nintendo Submission Package (*.nsp);;NX Cartridge Image (*.xci) Installierbare Switch-Dateien (*.nca *.nsp *.xci);;Nintendo Content Archive (*.nca);;Nintendo Submission Package (*.nsp);;NX-Kassetten-Image (*.xci) - + Install Files Dateien installieren - + %n file(s) remaining %n Datei(en) verbleiben%n Datei(en) verbleiben - + Installing file "%1"... Datei „%1“ wird installiert... - - + + Install Results Installationsergebnisse - + To avoid possible conflicts, we discourage users from installing base games to the NAND. Please, only use this feature to install updates and DLC. Um mögliche Konflikte zu vermeiden, raten wir davon ab, Basisspiele auf dem NAND-Speicher zu installieren. Bitte nutze diese Funktion ausschließlich zur Installation von Aktualisierungen und DLCs. - + %n file(s) were newly installed %n Datei(en) wurden neu installiert @@ -7736,7 +7618,7 @@ Bitte nutze diese Funktion ausschließlich zur Installation von Aktualisierungen - + %n file(s) were overwritten %n Datei(en) wurden überschrieben @@ -7744,7 +7626,7 @@ Bitte nutze diese Funktion ausschließlich zur Installation von Aktualisierungen - + %n file(s) failed to install %n Datei(en) konnten nicht installiert werden @@ -7752,324 +7634,314 @@ Bitte nutze diese Funktion ausschließlich zur Installation von Aktualisierungen - + System Application Systemanwendung - + System Archive Systemarchiv - + System Application Update System-Anwendungsaktualisierung - + Firmware Package (Type A) Firmware-Paket (Typ A) - + Firmware Package (Type B) Firmware-Paket (Typ B) - + Game Spiel - + Game Update Spielaktualisierung - + Game DLC Spiel-DLC - + Delta Title Delta-Titel - + Select NCA Install Type... NCA-Installationstyp auswählen... - + Please select the type of title you would like to install this NCA as: (In most instances, the default 'Game' is fine.) Bitte wähle den Titeltyp aus, unter dem du diese NCA installieren möchtest: (In den meisten Fällen ist die Vorgabe „Spiel“ ausreichend.) - + Failed to Install Installation fehlgeschlagen - + The title type you selected for the NCA is invalid. Der von dir für die NCA ausgewählte Titel ist ungültig. - + File not found Datei nicht gefunden - + File "%1" not found Datei „%1“ nicht gefunden - + OK OK - + Function Disabled Funktion deaktiviert - + Compatibility list reporting is currently disabled. Check back later! Die Anzeige der Kompatibilitätsliste ist derzeit deaktiviert. Schaue später noch einmal vorbei! - + Error opening URL Fehler beim Öffnen der URL - + Unable to open the URL "%1". Die URL „%1“ kann nicht geöffnet werden. - + TAS Recording TAS-Aufnahme - + Overwrite file of player 1? Datei von Spieler 1 überschreiben? - + Invalid config detected Ungültige Konfiguration erkannt - + Handheld controller can't be used on docked mode. Pro controller will be selected. Der Handgerät-Controller kann im angedockten Modus nicht verwendet werden. Es wird der Pro-Controller ausgewählt. - - + + Amiibo Amiibo - - + + The current amiibo has been removed Das aktuelle amiibo wurde entfernt - + Error Fehler - - + + The current game is not looking for amiibos Das aktuelle Spiel sucht nicht nach Amiibos - + Amiibo File (%1);; All Files (*.*) Amiibo-Datei (%1);; Alle Dateien (*.*) - + Load Amiibo Amiibo laden - + Error loading Amiibo data Fehler beim Laden der Amiibo-Daten - + The selected file is not a valid amiibo Die ausgewählte Datei ist kein gültiges amiibo - + The selected file is already on use Die ausgewählte Datei wird bereits verwendet - + An unknown error occurred Ein unbekannter Fehler ist aufgetreten - + No firmware available Keine Firmware verfügbar - + Firmware Corrupted Firmware beschädigt - + Unknown applet Unbekanntes Applet - + Applet doesn't map to a known value. „Applet“ lässt sich keinem bekannten Wert zuordnen. - + Record not found Aufnahme nicht gefunden - + Applet not found. Please reinstall firmware. Applet nicht gefunden. Bitte installiere die Firmware neu. - + Capture Screenshot Bildschirmfoto aufnehmen - + PNG Image (*.png) PNG-Bild (*.png) - + TAS state: Running %1/%2 TAS-Status: %1/%2 läuft - + TAS state: Recording %1 TAS-Status: %1 wird aufgenommen - + TAS state: Idle %1/%2 TAS-Status: Leerlauf %1/%2 - + TAS State: Invalid TAS-Status: Ungültig - + &Stop Running &Ausführung beenden - + Stop R&ecording Aufnahme beenden - + Building: %n shader(s) Erstellung: %n SchattiererErstelle: %n Shader - + Scale: %1x %1 is the resolution scaling factor Maßstab: 1:1 - + Speed: %1% / %2% Geschwindigkeit: %1% / %2% - + Speed: %1% Geschwindigkeit: %1% - + Game: %1 FPS Spiel: %1 FPS - + Frame: %1 ms Frame: %1 ms - + NO AA Kein AA - - NO FX - - - - - FX - - - - + VOLUME: MUTE LAUTSTÄRKE: STUMM - + VOLUME: %1% Volume percentage (e.g. 50%) LAUTSTÄRKE: %1% - + Derivation Components Missing Ableitungskomponenten fehlen - + Decryption keys are missing. Install them now? Entschlüsselungsschlüssel fehlen. Möchtest du diese jetzt installieren? - + Wayland Detected! Wayland erkannt! - + Wayland is known to have significant performance issues and mysterious bugs. It's recommended to use X11 instead. @@ -8080,74 +7952,74 @@ Es wird empfohlen, stattdessen X11 zu verwenden. Möchtest du dies für zukünftige Starts erzwingen? - + Use X11 X11 verwenden - + Continue with Wayland Mit Wayland fortfahren - + Don't show again Nicht mehr anzeigen - + Restart Required Neustart erforderlich - + Restart Eden to apply the X11 backend. Starte Eden neu, um das X11-Backend zu aktivieren. - + Slow Langsam - + Turbo Turbo - + Unlocked Entsperrt - + Select RomFS Dump Target RomFS-Ausleseziel auswählen - + Please select which RomFS you would like to dump. Bitte wähle aus, welches RomFS du auslesen möchtest. - + Are you sure you want to close Eden? Möchtest du Eden wirklich schließen? - - - + + + Eden Eden - + Are you sure you want to stop the emulation? Any unsaved progress will be lost. Möchtest du die Emulation wirklich beenden? Alle nicht gespeicherten Fortschritte gehen dabei verloren. - + The currently running application has requested Eden to not exit. Would you like to bypass this and exit anyway? @@ -9348,41 +9220,41 @@ p, li { white-space: pre-wrap; } - This game may require firmware to function properly, and you don't have any installed. Please install firmware before launching, or press "OK" to launch anyways. - + The game you are trying to launch requires firmware to boot or to get past the opening menu. Please <a href='https://yuzu-mirror.github.io/help/quickstart'>dump and install firmware</a>, or press "OK" to launch anyways. + Das Spiel, das du starten möchtest, benötigt Firmware, um zu booten oder das Startmenü zu verlassen. Bitte <a href='https://yuzu-mirror.github.io/help/quickstart'>lade die Firmware herunter und installiere sie</a>, oder klicke auf „OK“, um das Spiel trotzdem zu starten. - + Installing Firmware... Firmware wird installiert... - - - - - + + + + + Cancel Abbrechen - + Firmware Install Failed Firmware-Installation fehlgeschlagen - + Firmware Install Succeeded Firmware-Installation erfolgreich - + Firmware integrity verification failed! Überprüfung der Firmware-Integrität fehlgeschlagen! - - + + Verification failed for the following files: %1 @@ -9391,235 +9263,235 @@ p, li { white-space: pre-wrap; } %1 - - + + Verifying integrity... Integrität wird überprüft... - - + + Integrity verification succeeded! Die Integritätsprüfung war erfolgreich! - - + + The operation completed successfully. Der Vorgang wurde erfolgreich abgeschlossen. - - + + Integrity verification failed! Die Integritätsprüfung ist fehlgeschlagen! - + File contents may be corrupt or missing. Der Inhalt der Datei ist möglicherweise beschädigt oder fehlt. - + Integrity verification couldn't be performed Die Integritätsprüfung konnte nicht durchgeführt werden - + Firmware installation cancelled, firmware may be in a bad state or corrupted. File contents could not be checked for validity. Die Firmware-Installation wurde abgebrochen. Die Firmware ist möglicherweise fehlerhaft oder beschädigt. Der Inhalt der Datei konnte nicht auf Gültigkeit überprüft werden. - + Select Dumped Keys Location Speicherort der ausgelesenen Schlüssel auswählen - + Decryption Keys install succeeded Installation der Entschlüsselungsschlüssel erfolgreich - + Decryption Keys install failed Installation der Entschlüsselungsschlüssel fehlgeschlagen - + Orphaned Profiles Detected! Verwaiste Profile erkannt! - + UNEXPECTED BAD THINGS MAY HAPPEN IF YOU DON'T READ THIS!<br>Eden has detected the following save directories with no attached profile:<br>%1<br><br>The following profiles are valid:<br>%2<br><br>Click "OK" to open your save folder and fix up your profiles.<br>Hint: copy the contents of the largest or last-modified folder elsewhere, delete all orphaned profiles, and move your copied contents to the good profile.<br><br>Still confused? See the <a href='https://git.eden-emu.dev/eden-emu/eden/src/branch/master/docs/user/Orphaned.md'>help page</a>.<br> UNERWARTETE PROBLEME KÖNNTEN AUFTRETEN, WENN DU DIES NICHT LIEST!<br>Eden hat die folgenden Speicherverzeichnisse ohne zugeordnetes Profil erkannt:<br>%1<br><br>Die folgenden Profile sind gültig:<br>%2<br><br>Klicke auf „OK“, um deinen Speicherordner zu öffnen und deine Profile zu korrigieren.<br>Tipp: Kopiere den Inhalt des größten oder zuletzt geänderten Ordners an einen anderen Ort, lösche alle verwaisten Profile und verschiebe die kopierten Inhalte in das intakte Profil.<br><br>Immer noch unsicher? Lies auf der <a href='https://git.eden-emu.dev/eden-emu/eden/src/branch/master/docs/user/Orphaned.md'>Hilfeseite</a> nach.<br> - + Really clear data? Daten wirklich löschen? - + Important data may be lost! Wichtige Daten könnten verloren gehen! - + Are you REALLY sure? Bist du dir WIRKLICH sicher? - + Once deleted, your data will NOT come back! Only do this if you're 100% sure you want to delete this data. Sobald deine Daten gelöscht sind, können sie NICHT wiederhergestellt werden! Führe diesen Vorgang nur durch, wenn du dir zu 100 % sicher bist, dass du diese Daten löschen möchtest. - + Clearing... Säuberung... - + Select Export Location Exportziel auswählen - + %1.zip %1.zip - - - + + + Zipped Archives (*.zip) ZIP-Archive (*.zip) - + Exporting data. This may take a while... Daten werden exportiert. Das kann eine Weile dauern... - + Exporting Exportieren - + Exported Successfully Erfolgreich exportiert - + Data was exported successfully. Die Daten wurden erfolgreich exportiert. - + Export Cancelled Export abgebrochen - + Export was cancelled by the user. Der Export wurde vom Benutzer abgebrochen. - + Export Failed Export fehlgeschlagen - + Ensure you have write permissions on the targeted directory and try again. Stelle sicher, dass du Schreibrechte für das Zielverzeichnis hast, und versuche es erneut. - + Select Import Location Importziel auswählen - + Import Warning Importwarnung - + All previous data in this directory will be deleted. Are you sure you wish to proceed? Alle bisherigen Daten in diesem Verzeichnis werden gelöscht. Möchtest du wirklich fortfahren? - + Importing data. This may take a while... Daten werden importiert. Das kann eine Weile dauern... - + Importing Importieren - + Imported Successfully Erfolgreich importiert - + Data was imported successfully. Die Daten wurden erfolgreich importiert. - + Import Cancelled Import abgebrochen - + Import was cancelled by the user. Der Import wurde vom Benutzer abgebrochen. - + Import Failed Import fehlgeschlagen - + Ensure you have read permissions on the targeted directory and try again. Stelle sicher, dass du Lesezugriff auf das Zielverzeichnis hast, und versuche es erneut. - + Keys not installed Schlüssel nicht installiert - + Install decryption keys and restart Eden before attempting to install firmware. Installiere die Entschlüsselungsschlüssel und starte Eden neu, bevor du versuchst, die Firmware zu installieren. - + Select Dumped Firmware Source Location Speicherort der ausgelesenen Firmware auswählen - + Select Dumped Firmware ZIP ZIP-Datei der ausgelesenen Firmware auswählen - + Firmware cleanup failed Firmware-Bereinigung ist fehlgeschlagen - + Failed to clean up extracted firmware cache. Check write permissions in the system temp directory and try again. OS reported error: %1 diff --git a/dist/languages/el.ts b/dist/languages/el.ts index b3ec9c6f5e..b679ea8abd 100644 --- a/dist/languages/el.ts +++ b/dist/languages/el.ts @@ -571,80 +571,70 @@ FXAA can produce a more stable picture in lower resolutions. - - Enable post-processing effects - - - - - Applies post-processing effects to the final image. - - - - + Fullscreen Mode: Λειτουργία Πλήρους Οθόνης: - + The method used to render the window in fullscreen. Borderless offers the best compatibility with the on-screen keyboard that some games request for input. Exclusive fullscreen may offer better performance and better Freesync/Gsync support. - + Aspect Ratio: Αναλογία Απεικόνισης: - + Stretches the renderer to fit the specified aspect ratio. Most games only support 16:9, so modifications are required to get other ratios. Also controls the aspect ratio of captured screenshots. - + Use persistent pipeline cache - + Allows saving shaders to storage for faster loading on following game boots. Disabling it is only intended for debugging. - + Use asynchronous GPU emulation - + Uses an extra CPU thread for rendering. This option should always remain enabled. - + NVDEC emulation: Εξομοίωση NVDEC: - + Specifies how videos should be decoded. It can either use the CPU or the GPU for decoding, or perform no decoding at all (black screen on videos). In most cases, GPU decoding provides the best performance. - + ASTC Decoding Method: - + This option controls how ASTC textures should be decoded. CPU: Use the CPU for decoding. GPU: Use the GPU's compute shaders to decode ASTC textures (recommended). @@ -653,75 +643,55 @@ stuttering but may present artifacts. - + ASTC Recompression Method: - + Most GPUs lack support for ASTC textures and must decompress to anintermediate format: RGBA8. BC1/BC3: The intermediate format will be recompressed to BC1 or BC3 format, saving VRAM but degrading image quality. - + Frame Pacing Mode (Vulkan only) - + Controls how the emulator manages frame pacing to reduce stuttering and make the frame rate smoother and more consistent. - + VRAM Usage Mode: - + Selects whether the emulator should prefer to conserve memory or make maximum usage of available video memory for performance. Aggressive mode may impact performance of other applications such as recording software. - + Skip CPU Inner Invalidation - + Skips certain cache invalidations during memory updates, reducing CPU usage and improving latency. This may cause soft-crashes. - - GPU Readback Before NCE Invalidation - - - - - Flushes GPU buffer data back to guest memory before NCE invalidates the whole guest page, preserving it while the CPU store proceeds. - - - - - Patch Runtime NROs for NCE - - - - - Applies NCE code patches to runtime-loaded NRO modules.This is required for some games to run correctly. - - - - + VSync Mode: - + FIFO (VSync) does not drop frames or exhibit tearing but is limited by the screen refresh rate. FIFO Relaxed allows tearing as it recovers from a slow down. Mailbox can have lower latency than FIFO and does not tear but may drop frames. @@ -729,1371 +699,1409 @@ Immediate (no synchronization) presents whatever is available and can exhibit te - + Sync Memory Operations - + Ensures data consistency between compute and memory operations. This option fixes issues in games, but may degrade performance. Unreal Engine 4 games often see the most significant changes thereof. - + Enable asynchronous presentation (Vulkan only) - + Slightly improves performance by moving presentation to a separate CPU thread. - + Force maximum clocks (Vulkan only) - + Runs work in the background while waiting for graphics commands to keep the GPU from lowering its clock speed. - + Anisotropic Filtering: Ανισοτροπικό Φιλτράρισμα: - + Controls the quality of texture rendering at oblique angles. Safe to set at 16x on most GPUs. - + GPU Mode: - + Controls the GPU emulation mode. Most games render fine with Fast, but Accurate is still required for some. Particles tend to only render correctly with Accurate mode. - + DMA Accuracy: - + Controls the DMA read mode. Unsafe is faster, while Safe is more stable and can fix issues in some games. Default follows the GPU Accuracy setting. - + GPU Fence Behavior: - + Controls the GPU fence synchronization behavior. Immediate is the fastest option, but can introduce some issues. Balanced offers better compatibility and may fix issues in some games. Accurate further improves compatibility at the cost of some performance. -Default follows the GPU Mode setting. +Strict is the slowest option, but can fix issues that require stricter synchronization. +Default follows the GPU Accuracy setting. - + + Enable GPU buffer readback + + + + + Preserves GPU-modified data by reading it back before uploading. +Some games require this to render certain effects properly. + + + + Enable asynchronous shader compilation - + May reduce shader stutter. - + GPU Clocks - + Makes the game believe GPU work finishes faster than it does, so it stops lowering resolution and render distance to fit the Switch's clocks. - + GPU Unswizzle - + Accelerates BCn 3D texture decoding using GPU compute. Disable if experiencing crashes or graphical glitches. - + GPU Unswizzle Max Texture Size - + Sets the maximum size (MiB) for GPU-based texture unswizzling. While the GPU is faster for medium and large textures, the CPU may be more efficient for very small ones. Adjust this to find the balance between GPU acceleration and CPU overhead. - + GPU Unswizzle Stream Size - + Sets the maximum amount of texture data (in MiB) processed per frame. Higher values can reduce stutter during texture loading but may impact frame consistency. - + GPU Unswizzle Chunk Size - + Determines the number of depth slices processed in a single dispatch. Increasing this can improve throughput on high-end GPUs but may cause TDR or driver timeouts on weaker hardware. - + Use Vulkan pipeline cache - + Enables GPU vendor-specific pipeline cache. This option can improve shader loading time significantly in cases where the Vulkan driver does not store pipeline cache files internally. - + Enable Compute Pipelines (Intel Vulkan Only) - + Required by some games. This setting only exists for Intel proprietary drivers and may crash if enabled. Compute pipelines are always enabled on all other drivers. - + Enable Reactive Flushing - + Uses reactive flushing instead of predictive flushing, allowing more accurate memory syncing. - + Sync to framerate of video playback - + Run the game at normal speed during video playback, even when the framerate is unlocked. - + Barrier feedback loops - + Improves rendering of transparency effects in specific games. - + Enable buffer history - + Enables access to previous buffer states. This option may improve rendering quality and performance consistency in some games. - + Fix bloom effects - + Removes bloom in Burnout. - + + Enable Legacy Rescale Pass + + + + + May fix rescale issues in some games by relying on behavior from the previous implementation. +Legacy behavior workaround that fixes line artifacts on AMD and Intel GPUs, and grey texture flicker on Nvidia GPUs in Luigis Mansion 3. + + + + Extended Dynamic State - + Controls the number of features that can be used in Extended Dynamic State. Higher states allow for more features and can increase performance, but may cause additional graphical issues. - + Vertex Input Dynamic State - + Enables vertex input dynamic state feature for better quality and performance. - + Sample Shading - + Allows the fragment shader to execute per sample in a multi-sampled fragment instead of once per fragment. Improves graphics quality at the cost of performance. Higher values improve quality but degrade performance. - + RNG Seed RNG Seed - + Controls the seed of the random number generator. Mainly used for speedrunning. - + Device Name - + The name of the console. - + Homebrew Args - + Command-line arguments passed to homebrew at launch (e.g. -noglsl). - + Custom RTC Date: - + This option allows to change the clock of the console. Can be used to manipulate time in games. - + The number of seconds from the current unix time - + Language: - + This option can be overridden when region setting is auto-select - + Region: Περιφέρεια: - + The region of the console. - + Time Zone: Ζώνη Ώρας: - + The time zone of the console. - + Sound Output Mode: - + Console Mode: - + Selects if the console is in Docked or Handheld mode. Games will change their resolution, details and supported controllers and depending on this setting. Setting to Handheld can help improve performance for low end systems. - + Prompt for user profile on boot - + Useful if multiple people use the same PC. - + Pause when not in focus - + Pauses emulation when focusing on other windows. - + Confirm before stopping emulation - + Overrides prompts asking to confirm stopping the emulation. Enabling it bypasses such prompts and directly exits the emulation. - + Hide mouse on inactivity Απόκρυψη δρομέα ποντικιού στην αδράνεια - + Hides the mouse after 2.5s of inactivity. - + + Disable controller applet + + + + + Forcibly disables the use of the controller applet in emulated programs. +When a program attempts to open the controller applet, it is immediately closed. + + + + Check for updates - + Whether or not to check for updates upon startup. - + Enable Gamemode - + Force X11 as Graphics Backend - + Custom frontend - + Real applet - - - Disabled - - - - + Never - + On Load - + Always - + CPU CPU - + GPU - + CPU Asynchronous - + Uncompressed (Best quality) - + BC1 (Low quality) - + BC3 (Medium quality) - - + + Auto Αυτόματη - + 30 FPS - + 60 FPS - + 90 FPS - + 120 FPS - + Conservative - + Aggressive - + Vulkan Vulkan - + OpenGL GLSL - + OpenGL GLASM (Assembly Shaders, NVIDIA Only) - + OpenGL SPIR-V (Experimental, AMD/Mesa Only) - + Null - + Fast - - - + + + Accurate Ακριβής - - - + + + Default Προεπιλεγμένο - + Unsafe (fast) - + Safe (stable) - + Immediate - + Balanced - + + Strict + + + + Unsafe Επισφαλής - + Paranoid (disables most optimizations) - + Debugging - + Dynarmic - + NCE - + Borderless Windowed Παραθυροποιημένο Χωρίς Όρια - + Exclusive Fullscreen Αποκλειστική Πλήρης Οθόνη - + No Video Output Χωρίς Έξοδο Βίντεο - + CPU Video Decoding Αποκωδικοποίηση Βίντεο CPU - + GPU Video Decoding (Default) Αποκωδικοποίηση Βίντεο GPU (Προεπιλογή) - + 0.25X (180p/270p) [EXPERIMENTAL] - + 0.5X (360p/540p) [EXPERIMENTAL] - + 0.75X (540p/810p) [EXPERIMENTAL] 0.75X (540p/810p) [ΠΕΙΡΑΜΑΤΙΚΟ] - + 1X (720p/1080p) 1X (720p/1080p) - + 1.25X (900p/1350p) [EXPERIMENTAL] - + 1.5X (1080p/1620p) [EXPERIMENTAL] - + 2X (1440p/2160p) 2X (1440p/2160p) - + 3X (2160p/3240p) 3X (2160p/3240p) - + 4X (2880p/4320p) 4X (2880p/4320p) - + 5X (3600p/5400p) 5X (3600p/5400p) - + 6X (4320p/6480p) 6X (4320p/6480p) - + 7X (5040p/7560p) - + 8X (5760p/8640p) - + Nearest Neighbor Πλησιέστερος Γείτονας - + Bilinear Διγραμμικό - + Bicubic Δικυβικό - + Gaussian Gaussian - + Lanczos - + ScaleForce ScaleForce - + AMD FidelityFX Super Resolution - + Area - + MMPX - + Zero-Tangent - + B-Spline - + Mitchell - + Spline-1 - + Snapdragon Game Super Resolution - + Snapdragon Game Super Resolution EdgeDir - + None Κανένα - + FXAA FXAA - + SMAA SMAA - + Default (16:9) Προεπιλογή (16:9) - + Force 4:3 Επιβολή 4:3 - + Force 21:9 Επιβολή 21:9 - + Force 16:10 Επιβολή 16:10 - + Stretch to Window Επέκταση στο Παράθυρο - + Automatic Αυτόματα - + 2x 2x - + 4x 4x - + 8x 8x - + 16x 16x - + Japanese (日本語) Ιαπωνικά (日本語) - + American English - + French (français) Γαλλικά (Français) - + German (Deutsch) Γερμανικά (Deutsch) - + Italian (italiano) Ιταλικά (Italiano) - + Spanish (español) Ισπανικά (Español) - + Chinese Κινέζικα - + Korean (한국어) Κορεάτικα (한국어) - + Dutch (Nederlands) Ολλανδικά (Nederlands) - + Portuguese (português) Πορτογαλικά (Português) - + Russian (Русский) Ρώσικα (Русский) - + Taiwanese Ταϊβανέζικα - + British English Βρετανικά Αγγλικά - + Canadian French Καναδικά Γαλλικά - + Latin American Spanish Λατινοαμερικάνικα Ισπανικά - + Simplified Chinese Απλοποιημένα Κινέζικα - + Traditional Chinese (正體中文) Παραδοσιακά Κινέζικα (正體中文) - + Brazilian Portuguese (português do Brasil) Πορτογαλικά Βραζιλίας (Português do Brasil) - + Polish (polska) - + Thai (แบบไทย) - - + + Japan Ιαπωνία - + USA ΗΠΑ - + Europe Ευρώπη - + Australia Αυστραλία - + China Κίνα - + Korea Κορέα - + Taiwan Ταϊβάν - + Auto (%1) Auto select time zone - + Default (%1) Default time zone - + CET CET - + CST6CDT CST6CDT - + Cuba Κούβα - + EET EET - + Egypt Αίγυπτος - + Eire - + EST EST - + EST5EDT EST5EDT - + GB - + GB-Eire - + GMT GMT - + GMT+0 GMT+0 - + GMT-0 GMT-0 - + GMT0 GMT0 - + Greenwich Γκρήνουιτς - + Hongkong Χονγκ Κονγκ - + HST HST - + Iceland Ισλανδία - + Iran Ιράν - + Israel Ισραήλ - + Jamaica Ιαμαϊκή - + Kwajalein - + Libya Λιβύη - + MET MET - + MST MST - + MST7MDT MST7MDT - + Navajo Ναβάχο - + NZ - + NZ-CHAT - + Poland Πολωνία - + Portugal Πορτογαλία - + PRC - + PST8PDT PST8PDT - + ROC ROC - + ROK ROK - + Singapore Σιγκαπούρη - + Turkey Τουρκία - + UCT UCT - + Universal Παγκόσμια - + UTC UTC - + W-SU W-SU - + WET WET - + Zulu - + Mono Μονοφωνικό - + Stereo Στέρεοφωνικό - + Surround - + 4GB DRAM (Default) - + 6GB DRAM (Unsafe) - + 8GB DRAM - + 10GB DRAM (Unsafe) - + 12GB DRAM (Unsafe) - + Docked Docked - + Handheld Handheld + + + + Normal + + - Normal + Boost - Boost - - - - - Overclock - + Always ask (Default) - + Only if game specifies not to stop - + Never ask - + Very Small (16 MB) - + Small (32 MB) - + Normal (128 MB) - + Large (256 MB) - + Very Large (512 MB) - + Very Low (4 MB) - + Low (8 MB) - + Normal (16 MB) - + Medium (32 MB) - + High (64 MB) - + Very Low (32) - + Low (64) - + Normal (128) - + Medium (256) - + High (512) - + + Disabled + + + + ExtendedDynamicState 1 - + ExtendedDynamicState 2 - + ExtendedDynamicState 3 - + Tree View - + Grid View @@ -3182,38 +3190,33 @@ Would you like to delete the old save data? Χρώμα Φόντου: - + % FSR/SGSR sharpening percentage (e.g. 50%) - - Configure Effects... - - - - + Off - + VSync Off - + Recommended - + On - + VSync On @@ -4825,130 +4828,6 @@ Once deleted, these can NOT be recovered. Are you 100% sure you want to delete t - - ConfigurePostProcessing - - - Post-Processing Effects - - - - - Changes apply immediately while a game is running. - - - - - Enable post-processing - - - - - Preset: - - - - - Apply - - - - - Reset Values - - - - - Return every effect to the values the preset ships with. - - - - - Save As... - - - - - Save Preset - - - - - Preset name: - - - - - Clear - - - - - Remove every effect in use and deselect the preset. - - - - - Add Effect - - - - - None - - - - - No effects in use. Pick a preset and press Apply, or add effects one by one. - - - - - Custom chain. Pick a preset above and press Apply to replace it. - - - - - Active preset: %1 (modified). Press Reset Values to go back to how it ships. - - - - - Active preset: %1 - - - - - Enabled - - - - - Disabled - - - - - Reset to defaults - - - - - Effect '%1' was not found. - - - - - Effect failed to compile: -%1 - - - - - No usable ReShade FX effects were found. Place .fx files in the post_shaders folder. - - - ConfigureProfileManager @@ -6032,50 +5911,50 @@ Please go to Configure -> System -> Network and make a selection. GRenderWindow - - + + OpenGL not available! Το OpenGL δεν είναι διαθέσιμο! - + OpenGL shared contexts are not supported. - + Eden has not been compiled with OpenGL support. - - - + + + Error while initializing OpenGL! Σφάλμα κατα την αρχικοποίηση του OpenGL! - + Your GPU may not support OpenGL, or you do not have the latest graphics driver. - + Error while initializing OpenGL 4.6! - + Your GPU may not support OpenGL 4.6, or you do not have the latest graphics driver.<br><br>GL Renderer:<br>%1 - + Your GPU may not support one or more required OpenGL extensions. Please ensure you have the latest graphics driver.<br><br>GL Renderer:<br>%1<br><br>Unsupported extensions:<br>%2 - + This build doesn't have OpenGL support. @@ -6895,42 +6774,42 @@ Debug Message: - + &Multiplayer &Πολλαπλών Παικτών - + &Tools - + Am&iibo - + Launch &Applet - + &TAS &TAS - + &Create Home Menu Shortcut - + Install &Firmware - + &Help @@ -6956,7 +6835,7 @@ Debug Message: - + &Pause &Παύση @@ -7057,176 +6936,176 @@ Debug Message: - &User Handbook + Open &Quickstart Guide - - &Capture Screenshot + + &FAQ - &Album + &Capture Screenshot - &Set Nickname and Owner + &Album - &Delete Game Data + &Set Nickname and Owner - &Restore Amiibo + &Delete Game Data - &Format Amiibo + &Restore Amiibo - &Mii Editor + &Format Amiibo + &Mii Editor + + + + &Configure TAS... - + Configure C&urrent Game... - - + + &Start &Έναρξη - + &Reset - - + + R&ecord - + Open &Controller Menu - + Install Decryption &Keys - + &Home Menu - + &Desktop - + &Application Menu - + &Root Data Folder - + &NAND Folder - + &SDMC Folder - + &Mod Folder - + &Log Folder - + From Folder - + From ZIP - + &Eden Dependencies - + &Data Manager - + &Tree View - + &Grid View - + Game Icon Size - - + + None - + Show Game &Name - - - Show &Performance Overlay - - - Post-Processing &Shaders... + Show &Performance Overlay @@ -7235,737 +7114,722 @@ Debug Message: - + Small (32x32) - + Standard (64x64) - + Large (128x128) - + Full Size (256x256) - + Broken Vulkan Installation Detected - + Vulkan initialization failed during boot. - + Running a game TRANSLATORS: This string is shown to the user to explain why yuzu needs to prevent the computer from sleeping - + Loading Web Applet... - - + + Disable Web Applet - + Disabling the web applet can lead to undefined behavior and should only be used with Super Mario 3D All-Stars. Are you sure you want to disable the web applet? (This can be re-enabled in the Debug settings.) - + The amount of shaders currently being built - + The current selected resolution scaling multiplier. - + Current emulation speed. Values higher or lower than 100% indicate emulation is running faster or slower than a Switch. - + How many frames per second the game is currently displaying. This will vary from game to game and scene to scene. - + Time taken to emulate a Switch frame, not counting framelimiting or v-sync. For full-speed emulation this should be at most 16.67 ms. - + Unmute - + Mute - + Reset Volume - - Configure Effects... - - - - + &Clear Recent Files - + &Continue - + Warning: Outdated Game Format - + You are using the deconstructed ROM directory format for this game, which is an outdated format that has been superseded by others such as NCA, NAX, XCI, or NSP. Deconstructed ROM directories lack icons, metadata, and update support.<br>For an explanation of the various Switch formats Eden supports, out our user handbook. This message will not be shown again. - - + + Error while loading ROM! - + The ROM format is not supported. - + An error occurred initializing the video core. - - This is usually caused by outdated GPU drivers. Please see the log for more details. See: <a href='https://git.eden-emu.dev/eden-emu/eden/src/branch/master/docs/user/HowToAccessLogs.md'>How to access log files</a>. + + Eden has encountered an error while running the video core. This is usually caused by outdated GPU drivers, including integrated ones. Please see the log for more details. For more information on accessing the log, please see the following page: <a href='https://yuzu-mirror.github.io/help/reference/log-files/'>How to Upload the Log File</a>. - + Error while loading ROM! %1 %1 signifies a numeric error code. - + %1<br>Please redump your files or ask on Discord/Stoat for help. %1 signifies an error string. - + An unknown error occurred. Please see the log for more details. - - + + (64-bit) - - + + (32-bit) - - + + %1 %2 %1 is the title name. %2 indicates if the title is 64-bit or 32-bit - + Closing software... - + Save Data - + Mod Data - + Error Opening %1 Folder - - + + Folder does not exist! - + Remove Installed Game Contents? - + Remove Installed Game Update? - + Remove Installed Game DLC? - + Remove Entry - + Delete OpenGL Transferable Shader Cache? - + Delete Vulkan Transferable Shader Cache? - + Delete All Transferable Shader Caches? - + Remove Custom Game Configuration? - + Remove Cache Storage? - + Remove File - + Remove Play Time Data - + Reset play time? - - + + RomFS Extraction Failed! - + There was an error copying the RomFS files or the user cancelled the operation. - + Full - + Skeleton - + Select RomFS Dump Mode - + Please select the how you would like the RomFS dumped.<br>Full will copy all of the files into the new directory while <br>skeleton will only create the directory structure. - + There is not enough free space at %1 to extract the RomFS. Please free up space or select a different dump directory at Emulation > Configure > System > Filesystem > Dump Root - + Extracting RomFS... - - + + Cancel - + RomFS Extraction Succeeded! - + The operation completed successfully. - + Error Opening %1 - + Select Directory - + Properties - + The game properties could not be loaded. - + Switch Executable (%1);;All Files (*.*) %1 is an identifier for the Switch executable file extensions. - + Load File - + Open Extracted ROM Directory - + Invalid Directory Selected - + The directory you have selected does not contain a 'main' file. - + Installable Switch File (*.nca *.nsp *.xci);;Nintendo Content Archive (*.nca);;Nintendo Submission Package (*.nsp);;NX Cartridge Image (*.xci) - + Install Files - + %n file(s) remaining - + Installing file "%1"... - - + + Install Results - + To avoid possible conflicts, we discourage users from installing base games to the NAND. Please, only use this feature to install updates and DLC. - + %n file(s) were newly installed - + %n file(s) were overwritten - + %n file(s) failed to install - + System Application - + System Archive - + System Application Update - + Firmware Package (Type A) - + Firmware Package (Type B) - + Game - + Game Update - + Game DLC - + Delta Title - + Select NCA Install Type... - + Please select the type of title you would like to install this NCA as: (In most instances, the default 'Game' is fine.) - + Failed to Install - + The title type you selected for the NCA is invalid. - + File not found - + File "%1" not found - + OK - + Function Disabled - + Compatibility list reporting is currently disabled. Check back later! - + Error opening URL - + Unable to open the URL "%1". - + TAS Recording - + Overwrite file of player 1? - + Invalid config detected - + Handheld controller can't be used on docked mode. Pro controller will be selected. - - + + Amiibo - - + + The current amiibo has been removed - + Error - - + + The current game is not looking for amiibos - + Amiibo File (%1);; All Files (*.*) - + Load Amiibo - + Error loading Amiibo data - + The selected file is not a valid amiibo - + The selected file is already on use - + An unknown error occurred - + No firmware available - + Firmware Corrupted - + Unknown applet - + Applet doesn't map to a known value. - + Record not found - + Applet not found. Please reinstall firmware. - + Capture Screenshot - + PNG Image (*.png) - + TAS state: Running %1/%2 - + TAS state: Recording %1 - + TAS state: Idle %1/%2 - + TAS State: Invalid - + &Stop Running - + Stop R&ecording - + Building: %n shader(s) - + Scale: %1x %1 is the resolution scaling factor - + Speed: %1% / %2% - + Speed: %1% - + Game: %1 FPS - + Frame: %1 ms - + NO AA - - NO FX - - - - - FX - - - - + VOLUME: MUTE - + VOLUME: %1% Volume percentage (e.g. 50%) - + Derivation Components Missing - + Decryption keys are missing. Install them now? - + Wayland Detected! - + Wayland is known to have significant performance issues and mysterious bugs. It's recommended to use X11 instead. @@ -7973,74 +7837,74 @@ Would you like to force it for future launches? - + Use X11 - + Continue with Wayland - + Don't show again - + Restart Required - + Restart Eden to apply the X11 backend. - + Slow - + Turbo - + Unlocked - + Select RomFS Dump Target - + Please select which RomFS you would like to dump. - + Are you sure you want to close Eden? - - - + + + Eden - + Are you sure you want to stop the emulation? Any unsaved progress will be lost. - + The currently running application has requested Eden to not exit. Would you like to bypass this and exit anyway? @@ -9222,275 +9086,275 @@ p, li { white-space: pre-wrap; } - This game may require firmware to function properly, and you don't have any installed. Please install firmware before launching, or press "OK" to launch anyways. + The game you are trying to launch requires firmware to boot or to get past the opening menu. Please <a href='https://yuzu-mirror.github.io/help/quickstart'>dump and install firmware</a>, or press "OK" to launch anyways. - + Installing Firmware... - - - - - + + + + + Cancel - + Firmware Install Failed - + Firmware Install Succeeded - + Firmware integrity verification failed! - - + + Verification failed for the following files: %1 - - + + Verifying integrity... - - - - Integrity verification succeeded! - - + Integrity verification succeeded! + + + + + The operation completed successfully. - - + + Integrity verification failed! - + File contents may be corrupt or missing. - + Integrity verification couldn't be performed - + Firmware installation cancelled, firmware may be in a bad state or corrupted. File contents could not be checked for validity. - + Select Dumped Keys Location - + Decryption Keys install succeeded - + Decryption Keys install failed - + Orphaned Profiles Detected! - + UNEXPECTED BAD THINGS MAY HAPPEN IF YOU DON'T READ THIS!<br>Eden has detected the following save directories with no attached profile:<br>%1<br><br>The following profiles are valid:<br>%2<br><br>Click "OK" to open your save folder and fix up your profiles.<br>Hint: copy the contents of the largest or last-modified folder elsewhere, delete all orphaned profiles, and move your copied contents to the good profile.<br><br>Still confused? See the <a href='https://git.eden-emu.dev/eden-emu/eden/src/branch/master/docs/user/Orphaned.md'>help page</a>.<br> - + Really clear data? - + Important data may be lost! - + Are you REALLY sure? - + Once deleted, your data will NOT come back! Only do this if you're 100% sure you want to delete this data. - + Clearing... - + Select Export Location - + %1.zip - - - + + + Zipped Archives (*.zip) - + Exporting data. This may take a while... - + Exporting - + Exported Successfully - + Data was exported successfully. - + Export Cancelled - + Export was cancelled by the user. - + Export Failed - + Ensure you have write permissions on the targeted directory and try again. - + Select Import Location - + Import Warning - + All previous data in this directory will be deleted. Are you sure you wish to proceed? - + Importing data. This may take a while... - + Importing - + Imported Successfully - + Data was imported successfully. - + Import Cancelled - + Import was cancelled by the user. - + Import Failed - + Ensure you have read permissions on the targeted directory and try again. - + Keys not installed - + Install decryption keys and restart Eden before attempting to install firmware. - + Select Dumped Firmware Source Location - + Select Dumped Firmware ZIP - + Firmware cleanup failed - + Failed to clean up extracted firmware cache. Check write permissions in the system temp directory and try again. OS reported error: %1 diff --git a/dist/languages/es.ts b/dist/languages/es.ts index 8cda19bc6b..46eb96b33b 100644 --- a/dist/languages/es.ts +++ b/dist/languages/es.ts @@ -592,22 +592,12 @@ SMAA ofrece mejor calidad. FXAA puede producir mejores resultados visuales en resoluciones bajas. - - Enable post-processing effects - - - - - Applies post-processing effects to the final image. - - - - + Fullscreen Mode: Modo pantalla completa: - + The method used to render the window in fullscreen. Borderless offers the best compatibility with the on-screen keyboard that some games request for input. Exclusive fullscreen may offer better performance and better Freesync/Gsync support. @@ -616,12 +606,12 @@ Ventana sin bordes ofrece la mejor compatibilidad con el teclado en pantalla que Pantalla completa exclusiva puede ofrecer mejor rendimiento y mejor soporte para FreeSync/G-Sync/VRR. - + Aspect Ratio: Relación de aspecto: - + Stretches the renderer to fit the specified aspect ratio. Most games only support 16:9, so modifications are required to get other ratios. Also controls the aspect ratio of captured screenshots. @@ -630,36 +620,36 @@ La mayoría de los juegos solo admiten 16:9, por lo que se requieren modificacio También controla la relación de aspecto de las capturas de pantalla. - + Use persistent pipeline cache Usar el caché de canalización persistente - + Allows saving shaders to storage for faster loading on following game boots. Disabling it is only intended for debugging. Permite almacenar los sombreadores para que carguen más rápido la próxima vez que inicies el juego. Desactivarlo solo está destinado para depuración. - + Use asynchronous GPU emulation Usar emulación asíncrona de la GPU - + Uses an extra CPU thread for rendering. This option should always remain enabled. Usa un hilo adicional de la CPU para el renderizado. Esta opción siempre debe permanecer activada. - + NVDEC emulation: Emulación NVDEC: - + Specifies how videos should be decoded. It can either use the CPU or the GPU for decoding, or perform no decoding at all (black screen on videos). In most cases, GPU decoding provides the best performance. @@ -668,12 +658,12 @@ Puede usar la CPU, GPU o no descodificar (mostrará una pantalla en negro durant En la mayoría de casos, descodificar mediante la GPU es la mejor opción. - + ASTC Decoding Method: Modo descodificación ASTC: - + This option controls how ASTC textures should be decoded. CPU: Use the CPU for decoding. GPU: Use the GPU's compute shaders to decode ASTC textures (recommended). @@ -685,12 +675,12 @@ GPU: utiliza los sombreadores computables de la GPU para descodificar las textur CPU asíncrona: usa la CPU para descodificar las texturas ASTC bajo demanda. Elimina los tirones causados por la descodificación ASTC, pero puede generar errores visuales. - + ASTC Recompression Method: Modo recompresión ASTC: - + Most GPUs lack support for ASTC textures and must decompress to anintermediate format: RGBA8. BC1/BC3: The intermediate format will be recompressed to BC1 or BC3 format, saving VRAM but degrading image quality. @@ -698,64 +688,44 @@ BC1/BC3: The intermediate format will be recompressed to BC1 or BC3 format, BC1/BC3: El formato intermedio será recomprimido a BC1 o BC3, lo que ahorra VRAM, pero degrada la calidad de la imagen. - + Frame Pacing Mode (Vulkan only) Modo de ritmo de fotogramas (solo Vulkan) - + Controls how the emulator manages frame pacing to reduce stuttering and make the frame rate smoother and more consistent. Controla cómo el emulador gestiona el ritmo de los fotogramas para reducir los tirones y hacer que la velocidad de los fotogramas sea más suave y consistente. - + VRAM Usage Mode: Modo de uso de la VRAM: - + Selects whether the emulator should prefer to conserve memory or make maximum usage of available video memory for performance. Aggressive mode may impact performance of other applications such as recording software. Selecciona si el emulador prefiere ahorrar memoria o maximizar el uso de memoria de video disponible para mejorar el rendimiento. El modo agresivo puede afectar al rendimiento de otras aplicaciones, como a los programas de grabación. - + Skip CPU Inner Invalidation Saltar invalidación interna de la CPU - + Skips certain cache invalidations during memory updates, reducing CPU usage and improving latency. This may cause soft-crashes. Omite ciertas invalidaciones de caché durante las actualizaciones de memoria, reduciendo el uso de la CPU y mejorando la latencia. Esto puede causar bloqueos leves. - - GPU Readback Before NCE Invalidation - - - - - Flushes GPU buffer data back to guest memory before NCE invalidates the whole guest page, preserving it while the CPU store proceeds. - - - - - Patch Runtime NROs for NCE - - - - - Applies NCE code patches to runtime-loaded NRO modules.This is required for some games to run correctly. - - - - + VSync Mode: Modo VSync: - + FIFO (VSync) does not drop frames or exhibit tearing but is limited by the screen refresh rate. FIFO Relaxed allows tearing as it recovers from a slow down. Mailbox can have lower latency than FIFO and does not tear but may drop frames. @@ -766,12 +736,12 @@ Mailbox ofrece menor latencia que FIFO y evita el tearing, aunque puede perder a Immediate (sin sincronización) muestra los fotogramas tan pronto están disponibles, pero puede generar desgarros de imagen. - + Sync Memory Operations Sincronizar operaciones de memoria - + Ensures data consistency between compute and memory operations. This option fixes issues in games, but may degrade performance. Unreal Engine 4 games often see the most significant changes thereof. @@ -780,56 +750,56 @@ Esta opción arregla errores en los juegos, pero puede afectar negativamente al Los juegos con Unreal Engine 4 son con frecuencia los que muestran cambios significantes en esto. - + Enable asynchronous presentation (Vulkan only) Activar presentación asíncrona (solo Vulkan) - + Slightly improves performance by moving presentation to a separate CPU thread. Mejora el rendimiento ligeramente al usar un hilo de CPU adicional para la presentación. - + Force maximum clocks (Vulkan only) Forzar relojes al máximo (solo Vulkan) - + Runs work in the background while waiting for graphics commands to keep the GPU from lowering its clock speed. Ejecuta los procesos en segundo plano mientras se espera a las instrucciones gráficas para evitar que la GPU reduzca su velocidad de reloj. - + Anisotropic Filtering: Filtrado anisotrópico: - + Controls the quality of texture rendering at oblique angles. Safe to set at 16x on most GPUs. Controla la calidad del renderizado de texturas en ángulos oblicuos. Es seguro configurarlo en 16x en la mayoría de las GPU. - + GPU Mode: Modo de la GPU: - + Controls the GPU emulation mode. Most games render fine with Fast, but Accurate is still required for some. Particles tend to only render correctly with Accurate mode. - + DMA Accuracy: Precisión de DMA: - + Controls the DMA read mode. Unsafe is faster, while Safe is more stable and can fix issues in some games. Default follows the GPU Accuracy setting. @@ -838,58 +808,70 @@ Inseguro es más rápido, mientras que seguro es más estable y puede solucionar Predeterminado sigue el ajuste de la precisión de GPU. - + GPU Fence Behavior: Comportamiento de vallado de la GPU: - + Controls the GPU fence synchronization behavior. Immediate is the fastest option, but can introduce some issues. Balanced offers better compatibility and may fix issues in some games. Accurate further improves compatibility at the cost of some performance. -Default follows the GPU Mode setting. +Strict is the slowest option, but can fix issues that require stricter synchronization. +Default follows the GPU Accuracy setting. - + + Enable GPU buffer readback + Activar la lectura del búfer de la GPU + + + + Preserves GPU-modified data by reading it back before uploading. +Some games require this to render certain effects properly. + + + + Enable asynchronous shader compilation Activa la compilación de shaders asincrónicos - + May reduce shader stutter. Puede reducir los tirones causados por la carga de sombreadores. - + GPU Clocks Relojes de GPU - + Makes the game believe GPU work finishes faster than it does, so it stops lowering resolution and render distance to fit the Switch's clocks. - + GPU Unswizzle Desentrelazado de la GPU - + Accelerates BCn 3D texture decoding using GPU compute. Disable if experiencing crashes or graphical glitches. Acelera la decodificación de texturas 3D BCn mediante computación de la GPU. Desactívela si experimenta problemas o fallos gráficos. - + GPU Unswizzle Max Texture Size Tamaño máximo de textura de desentrelazado de la GPU - + Sets the maximum size (MiB) for GPU-based texture unswizzling. While the GPU is faster for medium and large textures, the CPU may be more efficient for very small ones. Adjust this to find the balance between GPU acceleration and CPU overhead. @@ -898,46 +880,46 @@ Aunque la GPU es más rápida para texturas medianas y grandes, la CPU puede ser Ajuste este valor para encontrar el equilibrio entre la aceleración de la GPU y la sobrecarga de la CPU. - + GPU Unswizzle Stream Size Tamaño del flujo de desentrelazado de la GPU - + Sets the maximum amount of texture data (in MiB) processed per frame. Higher values can reduce stutter during texture loading but may impact frame consistency. Establece la cantidad máxima de datos de textura (en MiB) procesados ​​por cada fotograma. Valores más altos pueden reducir la distorsión durante la carga de texturas, pero pueden afectar a la consistencia de los fotogramas. - + GPU Unswizzle Chunk Size Tamaño del trozo de desentrelazado de la GPU - + Determines the number of depth slices processed in a single dispatch. Increasing this can improve throughput on high-end GPUs but may cause TDR or driver timeouts on weaker hardware. Determina la cantidad de cortes de profundidad procesados ​​en un solo envío. Aumentar este valor puede mejorar el rendimiento en una GPU de gama alta, pero puede causar tirones y problemas en los tiempos de respuesta en hardware más modesto. - + Use Vulkan pipeline cache Usar caché de canalización de Vulkan - + Enables GPU vendor-specific pipeline cache. This option can improve shader loading time significantly in cases where the Vulkan driver does not store pipeline cache files internally. Activa la caché de canalización específica del fabricante. Esta opción puede mejorar los tiempos de cargas de sombreadores en el caso de que el controlador de Vulkan no lo almacene internamente. - + Enable Compute Pipelines (Intel Vulkan Only) Activar la canalizaciones de cómputo (solo Intel Vulkan) - + Required by some games. This setting only exists for Intel proprietary drivers and may crash if enabled. Compute pipelines are always enabled on all other drivers. @@ -946,182 +928,194 @@ Este ajuste solo existe para los controladores propietarios de Intel y puede cau En los demás controladores, la canalización de cómputo siempre está activada. - + Enable Reactive Flushing Activar limpieza reactiva - + Uses reactive flushing instead of predictive flushing, allowing more accurate memory syncing. Usa limpieza de memoria reactiva en vez de predictiva, permitiendo una sincronización de memoria más precisa. - + Sync to framerate of video playback Sincronizar a fotogramas de reproducción de vídeo - + Run the game at normal speed during video playback, even when the framerate is unlocked. Ejecuta el juego a velocidad normal durante la reproducción de vídeos, incluso cuando no hay límite de fotogramas. - + Barrier feedback loops Bucles de feedback de barrera - + Improves rendering of transparency effects in specific games. Mejora la renderización de los efectos de transparencia en ciertos juegos. - + Enable buffer history Activar el historial del búfer - + Enables access to previous buffer states. This option may improve rendering quality and performance consistency in some games. Habilita el acceso a estados de búfer anteriores. Esta opción puede mejorar la calidad de renderizado y la consistencia en el rendimiento de algunos juegos. - + Fix bloom effects Arreglar efectos de resplandor - + Removes bloom in Burnout. Elimina el resplandor en Burnout. - + + Enable Legacy Rescale Pass + Activar el pase de reescalado heredado + + + + May fix rescale issues in some games by relying on behavior from the previous implementation. +Legacy behavior workaround that fixes line artifacts on AMD and Intel GPUs, and grey texture flicker on Nvidia GPUs in Luigis Mansion 3. + Puede arreglar los problemas de reescalado en algunos juegos confiando en el comportamiento de la implementación anterior. +Solución alternativa de comportamiento heredado que corrige los artefactos de línea de la GPU AMD y el parpadeo de texturas gris de la GPU Nvidia en Luigis Mansion 3. + + + Extended Dynamic State Estado dinámico extendido - + Controls the number of features that can be used in Extended Dynamic State. Higher states allow for more features and can increase performance, but may cause additional graphical issues. Controla el número de funciones que pueden ser usadas en el Estado Dinámico Extendido. Números más altos permiten úsar más funciones y pueden aumentar el rendimiento, pero tambén pueden causar errores gráficos. - + Vertex Input Dynamic State Estado dinámico de entrada de vértices - + Enables vertex input dynamic state feature for better quality and performance. Activa la función de estado dinámico de entrada de vértices para una mejor calidad y rendimiento. - + Sample Shading Sombreado de muestra - + Allows the fragment shader to execute per sample in a multi-sampled fragment instead of once per fragment. Improves graphics quality at the cost of performance. Higher values improve quality but degrade performance. Permite que el sombreador de fragmentos se ejecute por muestra en un fragmento multimuestreado, en lugar de una sola vez por fragmento. Mejora la calidad de los gráficos a costa de rendimiento. Los valores más altos mejoran la calidad, pero reducen el rendimiento. - + RNG Seed Semilla de GNA - + Controls the seed of the random number generator. Mainly used for speedrunning. Controla la semilla del generador de números aleatorios. Usado principalmente para speedrunning. - + Device Name Nombre del dispositivo - + The name of the console. El nombre de la consola - + Homebrew Args Argumentos Homebrew - + Command-line arguments passed to homebrew at launch (e.g. -noglsl). Argumentos en la línea de comandos pasados al homebrew al ser lanzado (p.e. -noglsl). - + Custom RTC Date: Fecha Personalizada RTC: - + This option allows to change the clock of the console. Can be used to manipulate time in games. Esta opción permite cambiar el reloj de la consola. Puede ser usado para manipular el tiempo en juegos. - + The number of seconds from the current unix time Número de segundos de la hora actual de Unix - + Language: Idioma: - + This option can be overridden when region setting is auto-select Esta opción puede ser reemplazada cuando la configuración de región está en selección automática. - + Region: Región: - + The region of the console. La Región de la Consola. - + Time Zone: Zona horaria: - + The time zone of the console. La zona horaria de la consola. - + Sound Output Mode: Método de salida de sonido: - + Console Mode: Modo consola: - + Selects if the console is in Docked or Handheld mode. Games will change their resolution, details and supported controllers and depending on this setting. Setting to Handheld can help improve performance for low end systems. @@ -1130,1025 +1124,1041 @@ Los juegos cambiarán su resolución, detalles y compatibilidad con los mandos s Configurar el modo portátil puede mejorar el rendimiento en sistemas de gama baja. - + Prompt for user profile on boot Solicitud para perfil de usuario al arrancar - + Useful if multiple people use the same PC. Útil si múltiples personas usan la misma PC - + Pause when not in focus Pausar cuando la ventana no esté activa - + Pauses emulation when focusing on other windows. Pausa la emulación cuando otra ventana diferente está activa. - + Confirm before stopping emulation Confirmar detención - + Overrides prompts asking to confirm stopping the emulation. Enabling it bypasses such prompts and directly exits the emulation. Anula las solicitudes de confirmación para detener la emulación. Al habilitar esta opción, se omiten dichas solicitudes y se sale directamente de la emulación. - + Hide mouse on inactivity Ocultar el cursor por inactividad. - + Hides the mouse after 2.5s of inactivity. Oculta el mouse después de 2.5s de inactividad. - + + Disable controller applet + Desactivar applet de mandos + + + + Forcibly disables the use of the controller applet in emulated programs. +When a program attempts to open the controller applet, it is immediately closed. + Desactiva forzosamente el uso del applet del controlador en programas emulados. +Cuando un programa intenta abrir el applet del controlador, se cierra inmediatamente. + + + Check for updates Buscar actualizaciones - + Whether or not to check for updates upon startup. Si se deben buscar actualizaciones al iniciar o no. - + Enable Gamemode Activar Modo Juego - + Force X11 as Graphics Backend Forzar X11 como motor gráfico - + Custom frontend Interfaz personalizada - + Real applet Applet real - - - Disabled - Desactivado - - - + Never Nunca - + On Load Al cargar - + Always Siempre - + CPU CPU - + GPU GPU - + CPU Asynchronous CPU asíncrona - + Uncompressed (Best quality) Sin compresión (Mejor calidad) - + BC1 (Low quality) BC1 (Calidad baja) - + BC3 (Medium quality) BC3 (Calidad media) - - + + Auto Auto - + 30 FPS 30 FPS - + 60 FPS 60 FPS - + 90 FPS 90 FPS - + 120 FPS 120 FPS - + Conservative Conservativo - + Aggressive Agresivo - + Vulkan Vulkan - + OpenGL GLSL OpenGL GLSL - + OpenGL GLASM (Assembly Shaders, NVIDIA Only) OpenGL GLASM (Ensamblado de sombreadores, solo NVIDIA) - + OpenGL SPIR-V (Experimental, AMD/Mesa Only) OpenGL SPIR-V (Experimental, solo AMD/Mesa) - + Null Ninguno - + Fast Rápido - - - + + + Accurate Preciso - - - + + + Default Predeterminado - + Unsafe (fast) Inseguro (rápido) - + Safe (stable) Seguro (estable) - + Immediate Inmediato - + Balanced Balanceado - + + Strict + Estricto + + + Unsafe Impreciso - + Paranoid (disables most optimizations) Paranoico (Deshabilita la mayoría de optimizaciones) - + Debugging Depuración - + Dynarmic DynARMic - + NCE NCE - + Borderless Windowed Ventana sin bordes - + Exclusive Fullscreen Pantalla completa - + No Video Output Sin salida de vídeo - + CPU Video Decoding Decodificación de vídeo en la CPU - + GPU Video Decoding (Default) Decodificación de vídeo en GPU (Por defecto) - + 0.25X (180p/270p) [EXPERIMENTAL] 0.25X (180p/270p) [EXPERIMENTAL] - + 0.5X (360p/540p) [EXPERIMENTAL] x0,5 (360p/540p) [EXPERIMENTAL] - + 0.75X (540p/810p) [EXPERIMENTAL] x0,75 (540p/810p) [EXPERIMENTAL] - + 1X (720p/1080p) x1 (720p/1080p) - + 1.25X (900p/1350p) [EXPERIMENTAL] 1.25X (900p/1350p) [EXPERIMENTAL] - + 1.5X (1080p/1620p) [EXPERIMENTAL] x1,5 (1080p/1620p) [EXPERIMENTAL] - + 2X (1440p/2160p) x2 (1440p/2160p) - + 3X (2160p/3240p) x3 (2160p/3240p) - + 4X (2880p/4320p) x4 (2880p/4320p) - + 5X (3600p/5400p) x5 (3600p/5400p) - + 6X (4320p/6480p) x6 (4320p/6480p) - + 7X (5040p/7560p) x7 (5040p/7560p) - + 8X (5760p/8640p) x8 (5760p/8640p) - + Nearest Neighbor Vecino más próximo - + Bilinear Bilineal - + Bicubic Bicúbico - + Gaussian Gaussiano - + Lanczos Lanczos - + ScaleForce ScaleForce - + AMD FidelityFX Super Resolution Super Resolución AMD FidelityFX - + Area Área - + MMPX MMPX - + Zero-Tangent Tangente cero - + B-Spline Ranura B - + Mitchell Mitchell - + Spline-1 Spline-1 - + Snapdragon Game Super Resolution Super resolución de juego Snapdragon - + Snapdragon Game Super Resolution EdgeDir Filo direcorio de super resolución de juego Snapdragon - + None Ninguno - + FXAA FXAA - + SMAA SMAA - + Default (16:9) Predeterminado (16:9) - + Force 4:3 Forzar 4:3 - + Force 21:9 Forzar 21:9 - + Force 16:10 Forzar 16:10 - + Stretch to Window Estirar a la ventana - + Automatic Automático - + 2x x2 - + 4x x4 - + 8x x8 - + 16x x16 - + Japanese (日本語) Japonés (日本語) - + American English Inglés estadounidense - + French (français) Francés (français) - + German (Deutsch) Alemán (deutsch) - + Italian (italiano) Italiano (italiano) - + Spanish (español) Español - + Chinese Chino - + Korean (한국어) Coreano (한국어) - + Dutch (Nederlands) Holandés (nederlands) - + Portuguese (português) Portugués (português) - + Russian (Русский) Ruso (Русский) - + Taiwanese Taiwanés - + British English Inglés británico - + Canadian French Francés canadiense - + Latin American Spanish Español latinoamericano - + Simplified Chinese Chino simplificado - + Traditional Chinese (正體中文) Chino tradicional (正體中文) - + Brazilian Portuguese (português do Brasil) Portugués brasileño (português do Brasil) - + Polish (polska) Polaco (polska) - + Thai (แบบไทย) Tailandés (แบบไทย) - - + + Japan Japón - + USA EEUU - + Europe Europa - + Australia Australia - + China China - + Korea Corea - + Taiwan Taiwán - + Auto (%1) Auto select time zone Auto (%1) - + Default (%1) Default time zone Predeterminada (%1) - + CET CET - + CST6CDT CST6CDT - + Cuba Cuba - + EET EET - + Egypt Egipto - + Eire Eire - + EST EST - + EST5EDT EST5EDT - + GB GB - + GB-Eire GB-Eire - + GMT GMT - + GMT+0 GMT+0 - + GMT-0 GMT-0 - + GMT0 GMT0 - + Greenwich Greenwich - + Hongkong Hongkong - + HST HST - + Iceland Islandia - + Iran Irán - + Israel Israel - + Jamaica Jamaica - + Kwajalein Kwajalein - + Libya Libia - + MET MET - + MST MST - + MST7MDT MST7MDT - + Navajo Navajo - + NZ NZ - + NZ-CHAT NZ-CHAT - + Poland Polonia - + Portugal Portugal - + PRC PRC - + PST8PDT PST8PDT - + ROC ROC - + ROK ROK - + Singapore Singapur - + Turkey Turquía - + UCT UCT - + Universal Universal - + UTC UTC - + W-SU W-SU - + WET WET - + Zulu Zulú - + Mono Mono - + Stereo Estéreo - + Surround Envolvente - + 4GB DRAM (Default) 4GB DRAM (Por defecto) - + 6GB DRAM (Unsafe) 6GB DRAM (Inseguro) - + 8GB DRAM 8GB DRAM - + 10GB DRAM (Unsafe) 10GB DRAM (Inseguro) - + 12GB DRAM (Unsafe) 12GB DRAM (Inseguro) - + Docked Sobremesa - + Handheld Portátil - - + + Normal Normal - - + + Boost Impulso - - + + Overclock Overclock - + Always ask (Default) Preguntar siempre (Por defecto) - + Only if game specifies not to stop Solo si el juego pide no ser cerrado - + Never ask Nunca preguntar - + Very Small (16 MB) Muy pequeño (16 MB) - + Small (32 MB) Pequeño (32 MB) - + Normal (128 MB) Normal (128 MB) - + Large (256 MB) Grande (256 MB) - + Very Large (512 MB) Muy grande (512 MB) - + Very Low (4 MB) Muy bajo (4 MB) - + Low (8 MB) Bajo (8 MB) - + Normal (16 MB) Normal (16 MB) - + Medium (32 MB) Medio (32 MB) - + High (64 MB) Alto (64 MB) - + Very Low (32) Muy bajo (32) - + Low (64) Bajo (64) - + Normal (128) Normal (128) - + Medium (256) Medio (256) - + High (512) Alto (512) - + + Disabled + Desactivado + + + ExtendedDynamicState 1 ModoDynamicoExtendido 1 - + ExtendedDynamicState 2 ModoDynamicoExtendido 2 - + ExtendedDynamicState 3 ModoDynamicoExtendido 3 - + Tree View Vista en árbol - + Grid View Vista en cuadrícula @@ -3260,38 +3270,33 @@ Would you like to delete the old save data? Color de fondo: - + % FSR/SGSR sharpening percentage (e.g. 50%) % - - Configure Effects... - Configurar efectos... - - - + Off Desactivado - + VSync Off VSync Desactivado - + Recommended Recomendado - + On Activado - + VSync On VSync Activado @@ -4908,130 +4913,6 @@ Once deleted, these can NOT be recovered. Are you 100% sure you want to delete t &Abrir en el gestor de archivos - - ConfigurePostProcessing - - - Post-Processing Effects - - - - - Changes apply immediately while a game is running. - - - - - Enable post-processing - - - - - Preset: - - - - - Apply - Aplicar - - - - Reset Values - Restablecer valores - - - - Return every effect to the values the preset ships with. - - - - - Save As... - Guardar como... - - - - Save Preset - - - - - Preset name: - - - - - Clear - - - - - Remove every effect in use and deselect the preset. - - - - - Add Effect - Añadir efecto - - - - None - - - - - No effects in use. Pick a preset and press Apply, or add effects one by one. - - - - - Custom chain. Pick a preset above and press Apply to replace it. - - - - - Active preset: %1 (modified). Press Reset Values to go back to how it ships. - - - - - Active preset: %1 - - - - - Enabled - Activado - - - - Disabled - Desactivado - - - - Reset to defaults - Restaurar los valores predeterminados - - - - Effect '%1' was not found. - - - - - Effect failed to compile: -%1 - - - - - No usable ReShade FX effects were found. Place .fx files in the post_shaders folder. - - - ConfigureProfileManager @@ -5320,7 +5201,7 @@ UUID: %2 <html><head/><body><p>Reads controller input from scripts in the same format as TAS-nx scripts.<br/>For a more detailed explanation, please consult the user handbook.</p></body></html> - <html><head/><body><p>Lee la entrada del mando desde los scripts en el mismo formato que los scripts TAS-nx.<br/>Para una explicación más detallada, por favor consulta el manual de usuario.</p></body></html> + <html><head/><body><p>Lee la entrada del mando desde los scripts en el mismo formato que los scripts TAS-nx.<br/>Para una explicación más detallada, por favor consulte el manual de usuario.</p></body></html> @@ -6119,50 +6000,50 @@ Por favor, vaya a Configuración -> Sistema -> Red y selecciona una interf GRenderWindow - - + + OpenGL not available! ¡OpenGL no está disponible! - + OpenGL shared contexts are not supported. Los contextos compartidos de OpenGL no son compatibles. - + Eden has not been compiled with OpenGL support. Eden no ha sido compilado con soporte para OpenGL. - - - + + + Error while initializing OpenGL! ¡Error al inicializar OpenGL! - + Your GPU may not support OpenGL, or you do not have the latest graphics driver. Tu GPU no soporta OpenGL, o no tienes instalados los últimos controladores gráficos. - + Error while initializing OpenGL 4.6! ¡Error al iniciar OpenGL 4.6! - + Your GPU may not support OpenGL 4.6, or you do not have the latest graphics driver.<br><br>GL Renderer:<br>%1 Tu GPU no soporta OpenGL 4.6, o no tienes instalado el último controlador de la tarjeta gráfica.<br><br>GL Renderer:<br>%1 - + Your GPU may not support one or more required OpenGL extensions. Please ensure you have the latest graphics driver.<br><br>GL Renderer:<br>%1<br><br>Unsupported extensions:<br>%2 Es posible que la GPU no soporte una o más extensiones necesarias de OpenGL . Por favor, asegúrate de tener los últimos controladores de la tarjeta gráfica.<br><br>GL Renderer:<br>%1<br><br>Extensiones no soportadas:<br>%2 - + This build doesn't have OpenGL support. Esta compilación no tiene soporte para OpenGL. @@ -6984,42 +6865,42 @@ Mensaje de depuración: Reiniciar el tamaño de la ventana a 1080p - + &Multiplayer &Multijugador - + &Tools &Herramientas - + Am&iibo Am&iibo - + Launch &Applet Ejecutar &Applet - + &TAS &TAS - + &Create Home Menu Shortcut &Crear un acceso directo al menú de inicio - + Install &Firmware Instalar &Firmware - + &Help &Ayuda @@ -7045,7 +6926,7 @@ Mensaje de depuración: - + &Pause &Pausar @@ -7146,583 +7027,578 @@ Mensaje de depuración: - &User Handbook - Manual de &usuario + Open &Quickstart Guide + Abrir guía de &inicio rápido - + + &FAQ + &Preguntas frecuentes + + + &Capture Screenshot &Captura de pantalla - + &Album &Álbum - + &Set Nickname and Owner &Darle nombre y propietario - + &Delete Game Data &Borrar datos de juego - + &Restore Amiibo &Restaurar Amiibo - + &Format Amiibo &Formatear Amiibo - + &Mii Editor &Editor de Mii - + &Configure TAS... &Configurar TAS... - + Configure C&urrent Game... Configurar el j&uego actual... - - + + &Start &Iniciar - + &Reset &Reiniciar - - + + R&ecord G&rabar - + Open &Controller Menu Abrir el menú de &mandos - + Install Decryption &Keys Instalar &llaves de desencriptación - + &Home Menu &Menú de inicio - + &Desktop &Escritorio - + &Application Menu &Menú de la aplicación - + &Root Data Folder Carpeta de datos &raíz - + &NAND Folder Carpeta &NAND - + &SDMC Folder Carpeta &SDMC - + &Mod Folder Carpeta de &mods - + &Log Folder Carpeta de &registros - + From Folder Desde una carpeta - + From ZIP Desde un archivo ZIP - + &Eden Dependencies &Dependencias de Eden - + &Data Manager Gestor de &datos - + &Tree View Vista en &árbol - + &Grid View Vista en &cuadrícula - + Game Icon Size Tamaño del icono de los juegos - - + + None Nada - + Show Game &Name Mostrar el &nombre del juego - + Show &Performance Overlay Mostrar superposición de &rendimiento - - - Post-Processing &Shaders... - - &Carousel View Vista de &carrusel - + Small (32x32) Pequeño (32x32) - + Standard (64x64) Estandar (64x64) - + Large (128x128) Grande (128x128) - + Full Size (256x256) Tamaño completo (256x256) - + Broken Vulkan Installation Detected Detectada instalación fallida de Vulkan - + Vulkan initialization failed during boot. La inicialización de Vulkan falló durante el arranque. - + Running a game TRANSLATORS: This string is shown to the user to explain why yuzu needs to prevent the computer from sleeping Ejecutando un juego - + Loading Web Applet... Cargando applet web... - - + + Disable Web Applet Desactivar applet web - + Disabling the web applet can lead to undefined behavior and should only be used with Super Mario 3D All-Stars. Are you sure you want to disable the web applet? (This can be re-enabled in the Debug settings.) Desactivar el applet web puede causar comportamientos inesperados y debería solo ser usado con Super Mario 3D All-Stars. ¿Está seguro de que quiere desactivar el applet web? (Puede ser activado en las ajustes de depuración.) - + The amount of shaders currently being built La cantidad de sombreadores que se están contruyendo actualmente - + The current selected resolution scaling multiplier. El multiplicador de escalado de resolución seleccionado actualmente. - + Current emulation speed. Values higher or lower than 100% indicate emulation is running faster or slower than a Switch. Velocidad de emulación actual. Los valores superiores o inferiores al 100% indican que la emulación se ejecuta más rápida o más lenta que en una Switch. - + How many frames per second the game is currently displaying. This will vary from game to game and scene to scene. La cantidad de fotogramas por segundo que muestra el juego actualmente. Esto varía según el juego y la escena. - + Time taken to emulate a Switch frame, not counting framelimiting or v-sync. For full-speed emulation this should be at most 16.67 ms. Tiempo empleado en emular un fotograma de la Switch, sin contar la limitación de fotogramas ni la sincronización vertical. Para una emulación a máxima velocidad, debería ser de 16,67 ms como máximo. - + Unmute Desilenciar - + Mute Silenciar - + Reset Volume Restablecer volumen - - Configure Effects... - - - - + &Clear Recent Files &Limpiar archivos recientes - + &Continue &Continuar - + Warning: Outdated Game Format Advertencia: formato del juego obsoleto - + You are using the deconstructed ROM directory format for this game, which is an outdated format that has been superseded by others such as NCA, NAX, XCI, or NSP. Deconstructed ROM directories lack icons, metadata, and update support.<br>For an explanation of the various Switch formats Eden supports, out our user handbook. This message will not be shown again. - Estás usando el formato de directorio ROM deconstruido para este juego, el cual es un formato obsoleto que ha sido reemplazado por otros como NCA, NAX, XCI o NSP. Los directorios ROM deconstruidos carecen de iconos, metadatos y compatibilidad con actualizaciones.<br>Para obtener una explicación de los distintos formatos de Switch compatibles con Eden, consulta nuestro manual de usuario. Este mensaje no volverá a aparecer de nuevo. + Estás usando el formato de directorio ROM deconstruido para este juego, el cual es un formato obsoleto que ha sido reemplazado por otros como NCA, NAX, XCI o NSP. Los directorios ROM deconstruidos carecen de iconos, metadatos y compatibilidad con actualizaciones.<br>Para obtener una explicación de los distintos formatos de la Switch compatibles con Eden, consulte nuestro manual de usuario. Este mensaje no volverá a aparecer de nuevo. - - + + Error while loading ROM! ¡Error al cargar la ROM! - + The ROM format is not supported. El formato de la ROM no está soportado. - + An error occurred initializing the video core. Se produjo un error al inicializar el núcleo de video. - - This is usually caused by outdated GPU drivers. Please see the log for more details. See: <a href='https://git.eden-emu.dev/eden-emu/eden/src/branch/master/docs/user/HowToAccessLogs.md'>How to access log files</a>. - + + Eden has encountered an error while running the video core. This is usually caused by outdated GPU drivers, including integrated ones. Please see the log for more details. For more information on accessing the log, please see the following page: <a href='https://yuzu-mirror.github.io/help/reference/log-files/'>How to Upload the Log File</a>. + Eden ha detectado un error al ejecutar el núcleo de vídeo. Esto suele deberse por usar controladores de la GPU obsoletos, incluidos los integrados. Consulte el registro para obtener más información. Para más información sobre cómo acceder al archivo de registro, por favor consulte la siguiente página: <a href='https://yuzu-mirror.github.io/help/reference/log-files/'>Cómo subir el archivo de registro</a>. - + Error while loading ROM! %1 %1 signifies a numeric error code. ¡Error al cargar la ROM! %1 - + %1<br>Please redump your files or ask on Discord/Stoat for help. %1 signifies an error string. %1<br>Por favor vuelva a volcar sus archivos, o pida ayuda en Discord/Stoat. - + An unknown error occurred. Please see the log for more details. Ha ocurrido un error desconocido. Por favor mire el registro para más detalles. - - + + (64-bit) (64-bit) - - + + (32-bit) (32-bit) - - + + %1 %2 %1 is the title name. %2 indicates if the title is 64-bit or 32-bit %1 %2 - + Closing software... Cerrando el programa... - + Save Data Datos de guardado - + Mod Data Datos del mod - + Error Opening %1 Folder Error abriendo la carpeta %1 - - + + Folder does not exist! ¡La carpeta no existe! - + Remove Installed Game Contents? ¿Eliminar el contenido instalado del juego? - + Remove Installed Game Update? ¿Eliminar la actualización instalada del juego? - + Remove Installed Game DLC? ¿Eliminar el contenido descargable instalado del juego? - + Remove Entry Eliminar entrada - + Delete OpenGL Transferable Shader Cache? ¿Desea eliminar el caché transferible de sombreadores de OpenGL? - + Delete Vulkan Transferable Shader Cache? ¿Desea eliminar el caché transferible de sombreadores de Vulkan? - + Delete All Transferable Shader Caches? ¿Desea eliminar todo el caché transferible de sombreadores? - + Remove Custom Game Configuration? ¿Borrar configuración personalizada del juego? - + Remove Cache Storage? ¿Borrar el almacenamiento de caché? - + Remove File Eliminar archivo - + Remove Play Time Data Eliminar datos del tiempo de juego - + Reset play time? ¿Reiniciar el tiempo de juego? - - + + RomFS Extraction Failed! ¡Fallo al extraer el RomFS! - + There was an error copying the RomFS files or the user cancelled the operation. Ocurrió un error al copiar los archivos de la RomFS o el usuario canceló la operación. - + Full Completo - + Skeleton Esqueleto - + Select RomFS Dump Mode Seleccione el método de volcado del RomFS - + Please select the how you would like the RomFS dumped.<br>Full will copy all of the files into the new directory while <br>skeleton will only create the directory structure. Por favor selecciona como quieres que sea volcada la RomFS.<br>Completa copiará todos los archivos en el nuevo directorio mientras que <br>esqueleto solo creará la estructura de los directorios. - + There is not enough free space at %1 to extract the RomFS. Please free up space or select a different dump directory at Emulation > Configure > System > Filesystem > Dump Root No hay suficiente espacio libre en %1 para extraer la RomFS. Por favor libera espacio o selecciona un directorio de volcado diferente en Emulación > Configurar > Sistema > Sistema de archivos > Volcado raiz - + Extracting RomFS... Extrayendo el RomFS... - - + + Cancel Cancelar - + RomFS Extraction Succeeded! ¡La extracción del RomFS ha sido un éxito! - + The operation completed successfully. La operación se completó con éxito. - + Error Opening %1 Error al abrir %1 - + Select Directory Seleccionar directorio - + Properties Propiedades - + The game properties could not be loaded. No se pudieron cargar las propiedades del juego. - + Switch Executable (%1);;All Files (*.*) %1 is an identifier for the Switch executable file extensions. Ejecutable de Switch (%1);;Todos los archivos (*.*) - + Load File Cargar archivo - + Open Extracted ROM Directory Abrir directorio de la ROM extraída - + Invalid Directory Selected Seleccionado directorio inválido - + The directory you have selected does not contain a 'main' file. El directorio seleccionado no contiene un archivo 'main'. - + Installable Switch File (*.nca *.nsp *.xci);;Nintendo Content Archive (*.nca);;Nintendo Submission Package (*.nsp);;NX Cartridge Image (*.xci) Archivo de Switch instalable (*.nca *.nsp *.xci);;Archivo de contenido de Nintendo (*.nca);;Paquete de envío de Nintendo (*.nsp);;Imagen de cartucho NX (*.xci) - + Install Files Instalar archivos - + %n file(s) remaining %n archivo(s) restantes%n archivo(s) restantes%n archivo(s) restantes - + Installing file "%1"... Instalando el archivo "%1"... - - + + Install Results Resultados de la instalación - + To avoid possible conflicts, we discourage users from installing base games to the NAND. Please, only use this feature to install updates and DLC. Para evitar posibles conflictos, desaconsejamos instalar juegos base en la NAND. Por favor, use solo esta función para instalar actualizaciones y contenido descargable. - + %n file(s) were newly installed %n archivo(s) se instalaron recientemente @@ -7731,7 +7607,7 @@ Por favor, use solo esta función para instalar actualizaciones y contenido desc - + %n file(s) were overwritten %n archivo(s) fueron sobreescritos @@ -7740,7 +7616,7 @@ Por favor, use solo esta función para instalar actualizaciones y contenido desc - + %n file(s) failed to install fallo al instalar %n archivo(s) @@ -7749,324 +7625,314 @@ Por favor, use solo esta función para instalar actualizaciones y contenido desc - + System Application Aplicación del sistema - + System Archive Archivo del sistema - + System Application Update Actualización de la aplicación del sistema - + Firmware Package (Type A) Paquete de firmware (Tipo A) - + Firmware Package (Type B) Paquete de firmware (Tipo B) - + Game Juego - + Game Update Actualización del juego - + Game DLC Contenido descargable del juego - + Delta Title Título Delta - + Select NCA Install Type... Seleccione el tipo de instalación NCA... - + Please select the type of title you would like to install this NCA as: (In most instances, the default 'Game' is fine.) Seleccione el tipo de título en el que desea instalar este NCA: (En la mayoría de los casos, la opción predeterminada "Juego" es suficiente). - + Failed to Install Fallo al instalar - + The title type you selected for the NCA is invalid. El tipo de título que ha seleccionado para el NCA es inválido. - + File not found Archivo no encontrado - + File "%1" not found Archivo "%1" no encontrado - + OK Aceptar - + Function Disabled Función desactivada - + Compatibility list reporting is currently disabled. Check back later! Los informes de la lista de compatibilidad están deshabilitados. ¡Vuelva más tarde! - + Error opening URL Error abriendo URL - + Unable to open the URL "%1". No se pudo abrir URL "%1". - + TAS Recording Grabación TAS - + Overwrite file of player 1? ¿Sobrescribir el archivo del jugador 1? - + Invalid config detected Detectada configuración inválida - + Handheld controller can't be used on docked mode. Pro controller will be selected. El mando del modo portátil no puede usarse en el modo sobremesa. El mando pro será seleccionado en su lugar. - - + + Amiibo Amiibo - - + + The current amiibo has been removed El amiibo actual fue borrado - + Error Error - - + + The current game is not looking for amiibos El juego actual no está buscando amiibos - + Amiibo File (%1);; All Files (*.*) Archivo Amiibo (%1);; Todos los archivos (*.*) - + Load Amiibo Cargar Amiibo - + Error loading Amiibo data Error al cargar los datos del Amiibo - + The selected file is not a valid amiibo El archivo seleccionado no es un amiibo válido - + The selected file is already on use El archivo seleccionado se encuentra en uso - + An unknown error occurred Ha ocurrido un error desconocido - + No firmware available No hay firmware disponible - + Firmware Corrupted Firmware corrompido - + Unknown applet Applet desconocido - + Applet doesn't map to a known value. Applet no asigna a un valor conocido. - + Record not found Grabación no encontrada - + Applet not found. Please reinstall firmware. Apple no encontrado. Por favor vuelva a instalar el firmware. - + Capture Screenshot Captura de pantalla - + PNG Image (*.png) Imagen PNG (*.png) - + TAS state: Running %1/%2 Estado de TAS: Ejecutando %1/%2 - + TAS state: Recording %1 Estado de TAS: Grabando %1 - + TAS state: Idle %1/%2 Estado de TAS: Inactivo %1/%2 - + TAS State: Invalid Estado de TAS: Inválido - + &Stop Running &Parar de ejecutarse - + Stop R&ecording &Parar grabación - + Building: %n shader(s) Construyendo: %n sombreador(es)Construyendo: %n sombreador(es)Construyendo: %n sombreador(es) - + Scale: %1x %1 is the resolution scaling factor Escala: %1x - + Speed: %1% / %2% Velocidad: %1% / %2% - + Speed: %1% Velocidad: %1% - + Game: %1 FPS Juego: %1 FPS - + Frame: %1 ms Fotograma: %1 ms - + NO AA NO AA - - NO FX - - - - - FX - - - - + VOLUME: MUTE VOLUMEN: SILENCIADO - + VOLUME: %1% Volume percentage (e.g. 50%) VOLUMEN: %1% - + Derivation Components Missing Componentes de derivación ausentes - + Decryption keys are missing. Install them now? Las claves de desencriptado están ausentes. ¿Desea instalarlas ahora? - + Wayland Detected! ¡Wayland detectado! - + Wayland is known to have significant performance issues and mysterious bugs. It's recommended to use X11 instead. @@ -8077,74 +7943,74 @@ Se recomienda usar X11 en su lugar. ¿Le gustaría forzar a usarlo en futuras ejecuciones? - + Use X11 Usar X11 - + Continue with Wayland Continuar con Wayland - + Don't show again No mostrar de nuevo - + Restart Required Reinicio requerido - + Restart Eden to apply the X11 backend. Reinicie Eden para aplicar el motor X11. - + Slow Lento - + Turbo Turbo - + Unlocked Desbloqueado - + Select RomFS Dump Target Seleccione el destinatario para el volcado del RomFS - + Please select which RomFS you would like to dump. Por favor seleccione que RomFS desea volcar. - + Are you sure you want to close Eden? ¿Está seguro de que quiere cerrar Eden? - - - + + + Eden Eden - + Are you sure you want to stop the emulation? Any unsaved progress will be lost. ¿Está seguro de que desea parar la emulación? Cualquier progreso sin guardar se perderá. - + The currently running application has requested Eden to not exit. Would you like to bypass this and exit anyway? @@ -9346,41 +9212,41 @@ p, li { white-space: pre-wrap; } - This game may require firmware to function properly, and you don't have any installed. Please install firmware before launching, or press "OK" to launch anyways. - + The game you are trying to launch requires firmware to boot or to get past the opening menu. Please <a href='https://yuzu-mirror.github.io/help/quickstart'>dump and install firmware</a>, or press "OK" to launch anyways. + El juego que está tratando de abrir requiere firmware para arrancar o para pasar el menú de apertura. Por favor, <a href='https://yuzu-mirror.github.io/help/quickstart'>volcar e instalar el firmware</a>, o presionar "OK" para abrir de todas formas. - + Installing Firmware... Instalando firmware... - - - - - + + + + + Cancel Cancelar - + Firmware Install Failed Instalación de Firmware Fallida. - + Firmware Install Succeeded Firmware instalado exitosamente. - + Firmware integrity verification failed! ¡Error en la verificación de integridad del firmware! - - + + Verification failed for the following files: %1 @@ -9389,237 +9255,237 @@ p, li { white-space: pre-wrap; } %1 - - + + Verifying integrity... Verificando integridad... - - + + Integrity verification succeeded! ¡La verificación de integridad ha sido un éxito! - - + + The operation completed successfully. La operación se completó con éxito. - - + + Integrity verification failed! ¡Verificación de integridad se fallo! - + File contents may be corrupt or missing. Los contenidos del archivo pueden estar corruptos. - + Integrity verification couldn't be performed No se pudo ejecutar la verificación de integridad - + Firmware installation cancelled, firmware may be in a bad state or corrupted. File contents could not be checked for validity. Instalacion de firmware cancellado , firmware podria estar en un mal estado o coruptos. contenidos de el archivo no pudieron ser verificados para validez. - + Select Dumped Keys Location Seleccionar ubicación de origen de los llaves volcados - + Decryption Keys install succeeded Instalación de llaves de descifra salo con exito - + Decryption Keys install failed Instalacion de las llaves de descifra se fallo - + Orphaned Profiles Detected! ¡Se detectaron perfiles huérfanos! - + UNEXPECTED BAD THINGS MAY HAPPEN IF YOU DON'T READ THIS!<br>Eden has detected the following save directories with no attached profile:<br>%1<br><br>The following profiles are valid:<br>%2<br><br>Click "OK" to open your save folder and fix up your profiles.<br>Hint: copy the contents of the largest or last-modified folder elsewhere, delete all orphaned profiles, and move your copied contents to the good profile.<br><br>Still confused? See the <a href='https://git.eden-emu.dev/eden-emu/eden/src/branch/master/docs/user/Orphaned.md'>help page</a>.<br> ¡PODRÍAN SUCEDER COSAS MALAS E INESPERADAS SI NO LEE ESTO!<br>Eden ha detectado que los siguientes directorios de guardado no tienen perfil asociado:<br>%1<br><br>Los siguientes perfiles son válidos:<br>%2<br><br>Haga clic en "Aceptar" para abrir la carpeta de guardado y arreglar sus perfiles.<br>Consejo: copie el contenido de la carpeta más grande o la última modificada en otro lugar, elimine todos los perfiles huérfanos y mueva el contenido copiado al perfil correcto.<br><br>¿Aún tiene dudas? Consulte la <a href='https://git.eden-emu.dev/eden-emu/eden/src/branch/master/docs/user/Orphaned.md'>página de ayuda</a>.<br> - + Really clear data? ¿Realmente deseas borrar los datos? - + Important data may be lost! ¡Podrías perder información importante! - + Are you REALLY sure? ¿Estás REALMENTE seguro? - + Once deleted, your data will NOT come back! Only do this if you're 100% sure you want to delete this data. ¡Una vez eliminados, tus datos no podrán recuperarse! Haz esto solo si estás 100% seguro de que deseas borrarlos. - + Clearing... Limpiando... - + Select Export Location Selecciona la Ubicación de Exportación. - + %1.zip %1.zip - - - + + + Zipped Archives (*.zip) Archivos comprimidos (*.zip) - + Exporting data. This may take a while... Exportando datos. Esto puede tardar un poco... - + Exporting Exportando - + Exported Successfully Exportación Exitosa. - + Data was exported successfully. Los datos se exportaron correctamente. - + Export Cancelled Exportación cancelada. - + Export was cancelled by the user. La exportación fue cancelada por el usuario. - + Export Failed Exportación Fallida - + Ensure you have write permissions on the targeted directory and try again. Asegúrate de tener permisos de escritura en el directorio seleccionado e inténtalo nuevamente. - + Select Import Location Seleccionar ubicación de importación. - + Import Warning Advertencia al importar datos - + All previous data in this directory will be deleted. Are you sure you wish to proceed? Todos los datos anteriores en este directorio serán eliminados. ¿Estás seguro de que deseas continuar? - + Importing data. This may take a while... Importando datos. Esto puede tomar unos minutos... - + Importing Importando - + Imported Successfully Importación completada con éxito. - + Data was imported successfully. Los datos se importaron correctamente. - + Import Cancelled La importación fue cancelada. - + Import was cancelled by the user. La importación fue cancelada por el usuario. - + Import Failed Importación Fallida. - + Ensure you have read permissions on the targeted directory and try again. Asegúrate de tener permisos de lectura en el directorio seleccionado e inténtalo nuevamente. - + Keys not installed Claves no instaladas - + Install decryption keys and restart Eden before attempting to install firmware. Instalar las claves de desencriptación y reiniciar Eden antes de intentar instalar el firmware. - + Select Dumped Firmware Source Location Seleccionar ubicación origen del firmware volcado - + Select Dumped Firmware ZIP Seleccionar el archivo ZIP del firmware volcado - + Firmware cleanup failed Fallo al limpiar firmware - + Failed to clean up extracted firmware cache. Check write permissions in the system temp directory and try again. OS reported error: %1 diff --git a/dist/languages/fi.ts b/dist/languages/fi.ts index 5b075f0b0e..bd2695f4f1 100644 --- a/dist/languages/fi.ts +++ b/dist/languages/fi.ts @@ -571,80 +571,70 @@ FXAA can produce a more stable picture in lower resolutions. - - Enable post-processing effects - - - - - Applies post-processing effects to the final image. - - - - + Fullscreen Mode: - + The method used to render the window in fullscreen. Borderless offers the best compatibility with the on-screen keyboard that some games request for input. Exclusive fullscreen may offer better performance and better Freesync/Gsync support. - + Aspect Ratio: - + Stretches the renderer to fit the specified aspect ratio. Most games only support 16:9, so modifications are required to get other ratios. Also controls the aspect ratio of captured screenshots. - + Use persistent pipeline cache - + Allows saving shaders to storage for faster loading on following game boots. Disabling it is only intended for debugging. - + Use asynchronous GPU emulation - + Uses an extra CPU thread for rendering. This option should always remain enabled. - + NVDEC emulation: - + Specifies how videos should be decoded. It can either use the CPU or the GPU for decoding, or perform no decoding at all (black screen on videos). In most cases, GPU decoding provides the best performance. - + ASTC Decoding Method: - + This option controls how ASTC textures should be decoded. CPU: Use the CPU for decoding. GPU: Use the GPU's compute shaders to decode ASTC textures (recommended). @@ -653,75 +643,55 @@ stuttering but may present artifacts. - + ASTC Recompression Method: - + Most GPUs lack support for ASTC textures and must decompress to anintermediate format: RGBA8. BC1/BC3: The intermediate format will be recompressed to BC1 or BC3 format, saving VRAM but degrading image quality. - + Frame Pacing Mode (Vulkan only) - + Controls how the emulator manages frame pacing to reduce stuttering and make the frame rate smoother and more consistent. - + VRAM Usage Mode: - + Selects whether the emulator should prefer to conserve memory or make maximum usage of available video memory for performance. Aggressive mode may impact performance of other applications such as recording software. - + Skip CPU Inner Invalidation - + Skips certain cache invalidations during memory updates, reducing CPU usage and improving latency. This may cause soft-crashes. - - GPU Readback Before NCE Invalidation - - - - - Flushes GPU buffer data back to guest memory before NCE invalidates the whole guest page, preserving it while the CPU store proceeds. - - - - - Patch Runtime NROs for NCE - - - - - Applies NCE code patches to runtime-loaded NRO modules.This is required for some games to run correctly. - - - - + VSync Mode: - + FIFO (VSync) does not drop frames or exhibit tearing but is limited by the screen refresh rate. FIFO Relaxed allows tearing as it recovers from a slow down. Mailbox can have lower latency than FIFO and does not tear but may drop frames. @@ -729,1371 +699,1409 @@ Immediate (no synchronization) presents whatever is available and can exhibit te - + Sync Memory Operations - + Ensures data consistency between compute and memory operations. This option fixes issues in games, but may degrade performance. Unreal Engine 4 games often see the most significant changes thereof. - + Enable asynchronous presentation (Vulkan only) - + Slightly improves performance by moving presentation to a separate CPU thread. - + Force maximum clocks (Vulkan only) - + Runs work in the background while waiting for graphics commands to keep the GPU from lowering its clock speed. - + Anisotropic Filtering: - + Controls the quality of texture rendering at oblique angles. Safe to set at 16x on most GPUs. - + GPU Mode: - + Controls the GPU emulation mode. Most games render fine with Fast, but Accurate is still required for some. Particles tend to only render correctly with Accurate mode. - + DMA Accuracy: - + Controls the DMA read mode. Unsafe is faster, while Safe is more stable and can fix issues in some games. Default follows the GPU Accuracy setting. - + GPU Fence Behavior: - + Controls the GPU fence synchronization behavior. Immediate is the fastest option, but can introduce some issues. Balanced offers better compatibility and may fix issues in some games. Accurate further improves compatibility at the cost of some performance. -Default follows the GPU Mode setting. +Strict is the slowest option, but can fix issues that require stricter synchronization. +Default follows the GPU Accuracy setting. - + + Enable GPU buffer readback + + + + + Preserves GPU-modified data by reading it back before uploading. +Some games require this to render certain effects properly. + + + + Enable asynchronous shader compilation - + May reduce shader stutter. - + GPU Clocks - + Makes the game believe GPU work finishes faster than it does, so it stops lowering resolution and render distance to fit the Switch's clocks. - + GPU Unswizzle - + Accelerates BCn 3D texture decoding using GPU compute. Disable if experiencing crashes or graphical glitches. - + GPU Unswizzle Max Texture Size - + Sets the maximum size (MiB) for GPU-based texture unswizzling. While the GPU is faster for medium and large textures, the CPU may be more efficient for very small ones. Adjust this to find the balance between GPU acceleration and CPU overhead. - + GPU Unswizzle Stream Size - + Sets the maximum amount of texture data (in MiB) processed per frame. Higher values can reduce stutter during texture loading but may impact frame consistency. - + GPU Unswizzle Chunk Size - + Determines the number of depth slices processed in a single dispatch. Increasing this can improve throughput on high-end GPUs but may cause TDR or driver timeouts on weaker hardware. - + Use Vulkan pipeline cache - + Enables GPU vendor-specific pipeline cache. This option can improve shader loading time significantly in cases where the Vulkan driver does not store pipeline cache files internally. - + Enable Compute Pipelines (Intel Vulkan Only) - + Required by some games. This setting only exists for Intel proprietary drivers and may crash if enabled. Compute pipelines are always enabled on all other drivers. - + Enable Reactive Flushing - + Uses reactive flushing instead of predictive flushing, allowing more accurate memory syncing. - + Sync to framerate of video playback - + Run the game at normal speed during video playback, even when the framerate is unlocked. - + Barrier feedback loops - + Improves rendering of transparency effects in specific games. - + Enable buffer history - + Enables access to previous buffer states. This option may improve rendering quality and performance consistency in some games. - + Fix bloom effects - + Removes bloom in Burnout. - + + Enable Legacy Rescale Pass + + + + + May fix rescale issues in some games by relying on behavior from the previous implementation. +Legacy behavior workaround that fixes line artifacts on AMD and Intel GPUs, and grey texture flicker on Nvidia GPUs in Luigis Mansion 3. + + + + Extended Dynamic State - + Controls the number of features that can be used in Extended Dynamic State. Higher states allow for more features and can increase performance, but may cause additional graphical issues. - + Vertex Input Dynamic State - + Enables vertex input dynamic state feature for better quality and performance. - + Sample Shading - + Allows the fragment shader to execute per sample in a multi-sampled fragment instead of once per fragment. Improves graphics quality at the cost of performance. Higher values improve quality but degrade performance. - + RNG Seed - + Controls the seed of the random number generator. Mainly used for speedrunning. - + Device Name - + The name of the console. - + Homebrew Args - + Command-line arguments passed to homebrew at launch (e.g. -noglsl). - + Custom RTC Date: - + This option allows to change the clock of the console. Can be used to manipulate time in games. - + The number of seconds from the current unix time - + Language: - + This option can be overridden when region setting is auto-select - + Region: - + The region of the console. - + Time Zone: - + The time zone of the console. - + Sound Output Mode: - + Console Mode: - + Selects if the console is in Docked or Handheld mode. Games will change their resolution, details and supported controllers and depending on this setting. Setting to Handheld can help improve performance for low end systems. - + Prompt for user profile on boot - + Useful if multiple people use the same PC. - + Pause when not in focus - + Pauses emulation when focusing on other windows. - + Confirm before stopping emulation - + Overrides prompts asking to confirm stopping the emulation. Enabling it bypasses such prompts and directly exits the emulation. - + Hide mouse on inactivity - + Hides the mouse after 2.5s of inactivity. - + + Disable controller applet + + + + + Forcibly disables the use of the controller applet in emulated programs. +When a program attempts to open the controller applet, it is immediately closed. + + + + Check for updates - + Whether or not to check for updates upon startup. - + Enable Gamemode - + Force X11 as Graphics Backend - + Custom frontend - + Real applet - - - Disabled - - - - + Never - + On Load - + Always - + CPU - + GPU - + CPU Asynchronous - + Uncompressed (Best quality) - + BC1 (Low quality) - + BC3 (Medium quality) - - + + Auto - + 30 FPS - + 60 FPS - + 90 FPS - + 120 FPS - + Conservative - + Aggressive - + Vulkan - + OpenGL GLSL - + OpenGL GLASM (Assembly Shaders, NVIDIA Only) - + OpenGL SPIR-V (Experimental, AMD/Mesa Only) - + Null - + Fast - - - + + + Accurate - - - + + + Default - + Unsafe (fast) - + Safe (stable) - + Immediate - + Balanced - + + Strict + + + + Unsafe - + Paranoid (disables most optimizations) - + Debugging - + Dynarmic - + NCE - + Borderless Windowed - + Exclusive Fullscreen - + No Video Output - + CPU Video Decoding - + GPU Video Decoding (Default) - + 0.25X (180p/270p) [EXPERIMENTAL] - + 0.5X (360p/540p) [EXPERIMENTAL] - + 0.75X (540p/810p) [EXPERIMENTAL] - + 1X (720p/1080p) - + 1.25X (900p/1350p) [EXPERIMENTAL] - + 1.5X (1080p/1620p) [EXPERIMENTAL] - + 2X (1440p/2160p) - + 3X (2160p/3240p) - + 4X (2880p/4320p) - + 5X (3600p/5400p) - + 6X (4320p/6480p) - + 7X (5040p/7560p) - + 8X (5760p/8640p) - + Nearest Neighbor - + Bilinear - + Bicubic - + Gaussian - + Lanczos - + ScaleForce - + AMD FidelityFX Super Resolution - + Area - + MMPX - + Zero-Tangent - + B-Spline - + Mitchell - + Spline-1 - + Snapdragon Game Super Resolution - + Snapdragon Game Super Resolution EdgeDir - + None - + FXAA - + SMAA - + Default (16:9) - + Force 4:3 - + Force 21:9 - + Force 16:10 - + Stretch to Window - + Automatic - + 2x - + 4x - + 8x - + 16x - + Japanese (日本語) - + American English - + French (français) - + German (Deutsch) - + Italian (italiano) - + Spanish (español) - + Chinese - + Korean (한국어) - + Dutch (Nederlands) - + Portuguese (português) - + Russian (Русский) - + Taiwanese - + British English - + Canadian French - + Latin American Spanish - + Simplified Chinese - + Traditional Chinese (正體中文) - + Brazilian Portuguese (português do Brasil) - + Polish (polska) - + Thai (แบบไทย) - - + + Japan - + USA - + Europe - + Australia - + China - + Korea - + Taiwan - + Auto (%1) Auto select time zone - + Default (%1) Default time zone - + CET - + CST6CDT - + Cuba - + EET - + Egypt - + Eire - + EST - + EST5EDT - + GB - + GB-Eire - + GMT - + GMT+0 - + GMT-0 - + GMT0 - + Greenwich - + Hongkong - + HST - + Iceland - + Iran - + Israel - + Jamaica - + Kwajalein - + Libya - + MET - + MST - + MST7MDT - + Navajo - + NZ - + NZ-CHAT - + Poland - + Portugal - + PRC - + PST8PDT - + ROC - + ROK - + Singapore - + Turkey - + UCT - + Universal - + UTC - + W-SU - + WET - + Zulu - + Mono - + Stereo - + Surround - + 4GB DRAM (Default) - + 6GB DRAM (Unsafe) - + 8GB DRAM - + 10GB DRAM (Unsafe) - + 12GB DRAM (Unsafe) - + Docked - + Handheld + + + + Normal + + - Normal + Boost - Boost - - - - - Overclock - + Always ask (Default) - + Only if game specifies not to stop - + Never ask - + Very Small (16 MB) - + Small (32 MB) - + Normal (128 MB) - + Large (256 MB) - + Very Large (512 MB) - + Very Low (4 MB) - + Low (8 MB) - + Normal (16 MB) - + Medium (32 MB) - + High (64 MB) - + Very Low (32) - + Low (64) - + Normal (128) - + Medium (256) - + High (512) - + + Disabled + + + + ExtendedDynamicState 1 - + ExtendedDynamicState 2 - + ExtendedDynamicState 3 - + Tree View - + Grid View @@ -3161,38 +3169,33 @@ Would you like to delete the old save data? Taustan väri: - + % FSR/SGSR sharpening percentage (e.g. 50%) - - Configure Effects... - - - - + Off - + VSync Off - + Recommended - + On - + VSync On @@ -4803,130 +4806,6 @@ Once deleted, these can NOT be recovered. Are you 100% sure you want to delete t - - ConfigurePostProcessing - - - Post-Processing Effects - - - - - Changes apply immediately while a game is running. - - - - - Enable post-processing - - - - - Preset: - - - - - Apply - - - - - Reset Values - - - - - Return every effect to the values the preset ships with. - - - - - Save As... - - - - - Save Preset - - - - - Preset name: - - - - - Clear - - - - - Remove every effect in use and deselect the preset. - - - - - Add Effect - - - - - None - - - - - No effects in use. Pick a preset and press Apply, or add effects one by one. - - - - - Custom chain. Pick a preset above and press Apply to replace it. - - - - - Active preset: %1 (modified). Press Reset Values to go back to how it ships. - - - - - Active preset: %1 - - - - - Enabled - - - - - Disabled - - - - - Reset to defaults - - - - - Effect '%1' was not found. - - - - - Effect failed to compile: -%1 - - - - - No usable ReShade FX effects were found. Place .fx files in the post_shaders folder. - - - ConfigureProfileManager @@ -6010,50 +5889,50 @@ Please go to Configure -> System -> Network and make a selection. GRenderWindow - - + + OpenGL not available! openGL ei ole saatavilla! - + OpenGL shared contexts are not supported. - + Eden has not been compiled with OpenGL support. - - - + + + Error while initializing OpenGL! Virhe käynnistäessä OpenGL ydintä! - + Your GPU may not support OpenGL, or you do not have the latest graphics driver. - + Error while initializing OpenGL 4.6! - + Your GPU may not support OpenGL 4.6, or you do not have the latest graphics driver.<br><br>GL Renderer:<br>%1 - + Your GPU may not support one or more required OpenGL extensions. Please ensure you have the latest graphics driver.<br><br>GL Renderer:<br>%1<br><br>Unsupported extensions:<br>%2 - + This build doesn't have OpenGL support. @@ -6873,42 +6752,42 @@ Debug Message: - + &Multiplayer - + &Tools - + Am&iibo - + Launch &Applet - + &TAS - + &Create Home Menu Shortcut - + Install &Firmware - + &Help &Apu @@ -6934,7 +6813,7 @@ Debug Message: - + &Pause &Pysäytä @@ -7035,176 +6914,176 @@ Debug Message: - &User Handbook + Open &Quickstart Guide - - &Capture Screenshot + + &FAQ - &Album + &Capture Screenshot - &Set Nickname and Owner + &Album - &Delete Game Data + &Set Nickname and Owner - &Restore Amiibo + &Delete Game Data - &Format Amiibo + &Restore Amiibo - &Mii Editor + &Format Amiibo + &Mii Editor + + + + &Configure TAS... - + Configure C&urrent Game... - - + + &Start &Käynnistä - + &Reset - - + + R&ecord - + Open &Controller Menu - + Install Decryption &Keys - + &Home Menu - + &Desktop - + &Application Menu - + &Root Data Folder - + &NAND Folder - + &SDMC Folder - + &Mod Folder - + &Log Folder - + From Folder - + From ZIP - + &Eden Dependencies - + &Data Manager - + &Tree View - + &Grid View - + Game Icon Size - - + + None - + Show Game &Name - - - Show &Performance Overlay - - - Post-Processing &Shaders... + Show &Performance Overlay @@ -7213,737 +7092,722 @@ Debug Message: - + Small (32x32) - + Standard (64x64) - + Large (128x128) - + Full Size (256x256) - + Broken Vulkan Installation Detected - + Vulkan initialization failed during boot. - + Running a game TRANSLATORS: This string is shown to the user to explain why yuzu needs to prevent the computer from sleeping - + Loading Web Applet... - - + + Disable Web Applet - + Disabling the web applet can lead to undefined behavior and should only be used with Super Mario 3D All-Stars. Are you sure you want to disable the web applet? (This can be re-enabled in the Debug settings.) - + The amount of shaders currently being built - + The current selected resolution scaling multiplier. - + Current emulation speed. Values higher or lower than 100% indicate emulation is running faster or slower than a Switch. - + How many frames per second the game is currently displaying. This will vary from game to game and scene to scene. - + Time taken to emulate a Switch frame, not counting framelimiting or v-sync. For full-speed emulation this should be at most 16.67 ms. - + Unmute - + Mute - + Reset Volume - - Configure Effects... - - - - + &Clear Recent Files - + &Continue - + Warning: Outdated Game Format - + You are using the deconstructed ROM directory format for this game, which is an outdated format that has been superseded by others such as NCA, NAX, XCI, or NSP. Deconstructed ROM directories lack icons, metadata, and update support.<br>For an explanation of the various Switch formats Eden supports, out our user handbook. This message will not be shown again. - - + + Error while loading ROM! - + The ROM format is not supported. - + An error occurred initializing the video core. - - This is usually caused by outdated GPU drivers. Please see the log for more details. See: <a href='https://git.eden-emu.dev/eden-emu/eden/src/branch/master/docs/user/HowToAccessLogs.md'>How to access log files</a>. + + Eden has encountered an error while running the video core. This is usually caused by outdated GPU drivers, including integrated ones. Please see the log for more details. For more information on accessing the log, please see the following page: <a href='https://yuzu-mirror.github.io/help/reference/log-files/'>How to Upload the Log File</a>. - + Error while loading ROM! %1 %1 signifies a numeric error code. - + %1<br>Please redump your files or ask on Discord/Stoat for help. %1 signifies an error string. - + An unknown error occurred. Please see the log for more details. - - + + (64-bit) - - + + (32-bit) - - + + %1 %2 %1 is the title name. %2 indicates if the title is 64-bit or 32-bit - + Closing software... - + Save Data - + Mod Data - + Error Opening %1 Folder - - + + Folder does not exist! - + Remove Installed Game Contents? - + Remove Installed Game Update? - + Remove Installed Game DLC? - + Remove Entry - + Delete OpenGL Transferable Shader Cache? - + Delete Vulkan Transferable Shader Cache? - + Delete All Transferable Shader Caches? - + Remove Custom Game Configuration? - + Remove Cache Storage? - + Remove File - + Remove Play Time Data - + Reset play time? - - + + RomFS Extraction Failed! - + There was an error copying the RomFS files or the user cancelled the operation. - + Full - + Skeleton - + Select RomFS Dump Mode - + Please select the how you would like the RomFS dumped.<br>Full will copy all of the files into the new directory while <br>skeleton will only create the directory structure. - + There is not enough free space at %1 to extract the RomFS. Please free up space or select a different dump directory at Emulation > Configure > System > Filesystem > Dump Root - + Extracting RomFS... - - + + Cancel - + RomFS Extraction Succeeded! - + The operation completed successfully. - + Error Opening %1 - + Select Directory - + Properties - + The game properties could not be loaded. - + Switch Executable (%1);;All Files (*.*) %1 is an identifier for the Switch executable file extensions. - + Load File - + Open Extracted ROM Directory - + Invalid Directory Selected - + The directory you have selected does not contain a 'main' file. - + Installable Switch File (*.nca *.nsp *.xci);;Nintendo Content Archive (*.nca);;Nintendo Submission Package (*.nsp);;NX Cartridge Image (*.xci) - + Install Files - + %n file(s) remaining - + Installing file "%1"... - - + + Install Results - + To avoid possible conflicts, we discourage users from installing base games to the NAND. Please, only use this feature to install updates and DLC. - + %n file(s) were newly installed - + %n file(s) were overwritten - + %n file(s) failed to install - + System Application - + System Archive - + System Application Update - + Firmware Package (Type A) - + Firmware Package (Type B) - + Game - + Game Update - + Game DLC - + Delta Title - + Select NCA Install Type... - + Please select the type of title you would like to install this NCA as: (In most instances, the default 'Game' is fine.) - + Failed to Install - + The title type you selected for the NCA is invalid. - + File not found - + File "%1" not found - + OK - + Function Disabled - + Compatibility list reporting is currently disabled. Check back later! - + Error opening URL - + Unable to open the URL "%1". - + TAS Recording - + Overwrite file of player 1? - + Invalid config detected - + Handheld controller can't be used on docked mode. Pro controller will be selected. - - + + Amiibo - - + + The current amiibo has been removed - + Error - - + + The current game is not looking for amiibos - + Amiibo File (%1);; All Files (*.*) - + Load Amiibo - + Error loading Amiibo data - + The selected file is not a valid amiibo - + The selected file is already on use - + An unknown error occurred - + No firmware available - + Firmware Corrupted - + Unknown applet - + Applet doesn't map to a known value. - + Record not found - + Applet not found. Please reinstall firmware. - + Capture Screenshot - + PNG Image (*.png) - + TAS state: Running %1/%2 - + TAS state: Recording %1 - + TAS state: Idle %1/%2 - + TAS State: Invalid - + &Stop Running - + Stop R&ecording - + Building: %n shader(s) - + Scale: %1x %1 is the resolution scaling factor - + Speed: %1% / %2% - + Speed: %1% - + Game: %1 FPS - + Frame: %1 ms - + NO AA - - NO FX - - - - - FX - - - - + VOLUME: MUTE - + VOLUME: %1% Volume percentage (e.g. 50%) - + Derivation Components Missing - + Decryption keys are missing. Install them now? - + Wayland Detected! - + Wayland is known to have significant performance issues and mysterious bugs. It's recommended to use X11 instead. @@ -7951,74 +7815,74 @@ Would you like to force it for future launches? - + Use X11 - + Continue with Wayland - + Don't show again - + Restart Required - + Restart Eden to apply the X11 backend. - + Slow - + Turbo - + Unlocked - + Select RomFS Dump Target - + Please select which RomFS you would like to dump. - + Are you sure you want to close Eden? - - - + + + Eden - + Are you sure you want to stop the emulation? Any unsaved progress will be lost. - + The currently running application has requested Eden to not exit. Would you like to bypass this and exit anyway? @@ -9199,275 +9063,275 @@ p, li { white-space: pre-wrap; } - This game may require firmware to function properly, and you don't have any installed. Please install firmware before launching, or press "OK" to launch anyways. + The game you are trying to launch requires firmware to boot or to get past the opening menu. Please <a href='https://yuzu-mirror.github.io/help/quickstart'>dump and install firmware</a>, or press "OK" to launch anyways. - + Installing Firmware... - - - - - + + + + + Cancel - + Firmware Install Failed - + Firmware Install Succeeded - + Firmware integrity verification failed! - - + + Verification failed for the following files: %1 - - + + Verifying integrity... - - - - Integrity verification succeeded! - - + Integrity verification succeeded! + + + + + The operation completed successfully. - - + + Integrity verification failed! - + File contents may be corrupt or missing. - + Integrity verification couldn't be performed - + Firmware installation cancelled, firmware may be in a bad state or corrupted. File contents could not be checked for validity. - + Select Dumped Keys Location - + Decryption Keys install succeeded - + Decryption Keys install failed - + Orphaned Profiles Detected! - + UNEXPECTED BAD THINGS MAY HAPPEN IF YOU DON'T READ THIS!<br>Eden has detected the following save directories with no attached profile:<br>%1<br><br>The following profiles are valid:<br>%2<br><br>Click "OK" to open your save folder and fix up your profiles.<br>Hint: copy the contents of the largest or last-modified folder elsewhere, delete all orphaned profiles, and move your copied contents to the good profile.<br><br>Still confused? See the <a href='https://git.eden-emu.dev/eden-emu/eden/src/branch/master/docs/user/Orphaned.md'>help page</a>.<br> - + Really clear data? - + Important data may be lost! - + Are you REALLY sure? - + Once deleted, your data will NOT come back! Only do this if you're 100% sure you want to delete this data. - + Clearing... - + Select Export Location - + %1.zip - - - + + + Zipped Archives (*.zip) - + Exporting data. This may take a while... - + Exporting - + Exported Successfully - + Data was exported successfully. - + Export Cancelled - + Export was cancelled by the user. - + Export Failed - + Ensure you have write permissions on the targeted directory and try again. - + Select Import Location - + Import Warning - + All previous data in this directory will be deleted. Are you sure you wish to proceed? - + Importing data. This may take a while... - + Importing - + Imported Successfully - + Data was imported successfully. - + Import Cancelled - + Import was cancelled by the user. - + Import Failed - + Ensure you have read permissions on the targeted directory and try again. - + Keys not installed - + Install decryption keys and restart Eden before attempting to install firmware. - + Select Dumped Firmware Source Location - + Select Dumped Firmware ZIP - + Firmware cleanup failed - + Failed to clean up extracted firmware cache. Check write permissions in the system temp directory and try again. OS reported error: %1 diff --git a/dist/languages/fr.ts b/dist/languages/fr.ts index 2f2ddd1481..8526b3973d 100644 --- a/dist/languages/fr.ts +++ b/dist/languages/fr.ts @@ -592,22 +592,12 @@ SMAA offre la meilleure qualité. FXAA peut produire une image plus stable à des résolutions plus faibles. - - Enable post-processing effects - - - - - Applies post-processing effects to the final image. - - - - + Fullscreen Mode: Mode Plein écran : - + The method used to render the window in fullscreen. Borderless offers the best compatibility with the on-screen keyboard that some games request for input. Exclusive fullscreen may offer better performance and better Freesync/Gsync support. @@ -616,12 +606,12 @@ Sans bordure offre la meilleure compatibilité avec le clavier à l'écran Le mode plein écran exclusif peut offrir de meilleures performances et un meilleur support Freesync/Gsync. - + Aspect Ratio: Format : - + Stretches the renderer to fit the specified aspect ratio. Most games only support 16:9, so modifications are required to get other ratios. Also controls the aspect ratio of captured screenshots. @@ -630,35 +620,35 @@ La plupart des jeux ne supportent que le format 16:9, donc des modifications son Contrôle également le format des captures d’écran. - + Use persistent pipeline cache Conserver le cache du rendu graphique - + Allows saving shaders to storage for faster loading on following game boots. Disabling it is only intended for debugging. Permet de sauvegarder les shaders sur le stockage pour un chargement plus rapide lors des démarrages ultérieurs du jeu. Le désactiver est uniquement destiné au débogage. - + Use asynchronous GPU emulation - + Uses an extra CPU thread for rendering. This option should always remain enabled. - + NVDEC emulation: Émulation NVDEC : - + Specifies how videos should be decoded. It can either use the CPU or the GPU for decoding, or perform no decoding at all (black screen on videos). In most cases, GPU decoding provides the best performance. @@ -667,12 +657,12 @@ Elles peuvent être décodées soit par le CPU, soit par le GPU, ou pas du tout Dans la plupart des cas, le décodage GPU offre les meilleures performances. - + ASTC Decoding Method: Méthode de décodage ASTC : - + This option controls how ASTC textures should be decoded. CPU: Use the CPU for decoding. GPU: Use the GPU's compute shaders to decode ASTC textures (recommended). @@ -684,12 +674,12 @@ GPU : Utiliser les shaders de calcul du GPU pour décoder les textures ASTC (rec CPU asynchrone : Utiliser le CPU pour décoder les textures ASTC à la demande. Élimine les saccades liées au décodage ASTC, mais peut provoquer des artefacts. - + ASTC Recompression Method: Méthode de recompression ASTC : - + Most GPUs lack support for ASTC textures and must decompress to anintermediate format: RGBA8. BC1/BC3: The intermediate format will be recompressed to BC1 or BC3 format, saving VRAM but degrading image quality. @@ -697,64 +687,44 @@ BC1/BC3: The intermediate format will be recompressed to BC1 or BC3 format, BC1/BC3 : Le format intermédiaire sera recompressé en BC1 ou BC3, ce qui économise de la VRAM mais dégrade la qualité de l’image. - + Frame Pacing Mode (Vulkan only) - + Controls how the emulator manages frame pacing to reduce stuttering and make the frame rate smoother and more consistent. - + VRAM Usage Mode: Mode d'utilisation de la VRAM : - + Selects whether the emulator should prefer to conserve memory or make maximum usage of available video memory for performance. Aggressive mode may impact performance of other applications such as recording software. Permet de choisir si l’émulateur doit privilégier la conservation de la mémoire ou utiliser au maximum la mémoire vidéo disponible pour les performances. Le mode agressif peut affecter les performances d’autres applications, comme les logiciels d’enregistrement. - + Skip CPU Inner Invalidation Ignorer l'invalidation interne du CPU - + Skips certain cache invalidations during memory updates, reducing CPU usage and improving latency. This may cause soft-crashes. Ignore certaines invalidations de cache lors des mises à jour de la mémoire, réduisant l’utilisation du CPU et améliorant la latence. Cela peut provoquer des plantages légers. - - GPU Readback Before NCE Invalidation - - - - - Flushes GPU buffer data back to guest memory before NCE invalidates the whole guest page, preserving it while the CPU store proceeds. - - - - - Patch Runtime NROs for NCE - - - - - Applies NCE code patches to runtime-loaded NRO modules.This is required for some games to run correctly. - - - - + VSync Mode: Mode VSync : - + FIFO (VSync) does not drop frames or exhibit tearing but is limited by the screen refresh rate. FIFO Relaxed allows tearing as it recovers from a slow down. Mailbox can have lower latency than FIFO and does not tear but may drop frames. @@ -765,12 +735,12 @@ Mailbox peut offrir une latence inférieure à FIFO et n’entraîne pas de déc Immediate (pas de synchronisation) affiche ce qui est disponible et peut provoquer du déchirement. - + Sync Memory Operations Synchroniser les opérations mémoire - + Ensures data consistency between compute and memory operations. This option fixes issues in games, but may degrade performance. Unreal Engine 4 games often see the most significant changes thereof. @@ -779,159 +749,171 @@ Cette option corrige des problèmes dans les jeux, mais peut dégrader les perfo Les jeux Unreal Engine 4 sont souvent ceux qui bénéficient le plus de ce réglage. - + Enable asynchronous presentation (Vulkan only) Activer la présentation asynchrone (Vulkan uniquement) - + Slightly improves performance by moving presentation to a separate CPU thread. Améliore légèrement les performances en déplaçant la présentation vers un thread CPU séparé. - + Force maximum clocks (Vulkan only) Forcer la fréquence d'horloge maximale (Vulkan uniquement) - + Runs work in the background while waiting for graphics commands to keep the GPU from lowering its clock speed. Les exécutions fonctionnent en arrière-plan en attendant les commandes graphiques pour empêcher le GPU de réduire sa vitesse de fréquence d'horloge. - + Anisotropic Filtering: Filtrage anisotropique : - + Controls the quality of texture rendering at oblique angles. Safe to set at 16x on most GPUs. Contrôle la qualité du rendu des textures sous des angles obliques. Il est sûr de le régler à 16x sur la plupart des GPU. - + GPU Mode: Mode GPU : - + Controls the GPU emulation mode. Most games render fine with Fast, but Accurate is still required for some. Particles tend to only render correctly with Accurate mode. - + DMA Accuracy: Précision du DMA : - + Controls the DMA read mode. Unsafe is faster, while Safe is more stable and can fix issues in some games. Default follows the GPU Accuracy setting. - + GPU Fence Behavior: - + Controls the GPU fence synchronization behavior. Immediate is the fastest option, but can introduce some issues. Balanced offers better compatibility and may fix issues in some games. Accurate further improves compatibility at the cost of some performance. -Default follows the GPU Mode setting. +Strict is the slowest option, but can fix issues that require stricter synchronization. +Default follows the GPU Accuracy setting. - + + Enable GPU buffer readback + + + + + Preserves GPU-modified data by reading it back before uploading. +Some games require this to render certain effects properly. + + + + Enable asynchronous shader compilation Activer la compilation asynchrone des shaders - + May reduce shader stutter. Peut réduire les saccades dues aux shaders. - + GPU Clocks - + Makes the game believe GPU work finishes faster than it does, so it stops lowering resolution and render distance to fit the Switch's clocks. - + GPU Unswizzle - + Accelerates BCn 3D texture decoding using GPU compute. Disable if experiencing crashes or graphical glitches. - + GPU Unswizzle Max Texture Size - + Sets the maximum size (MiB) for GPU-based texture unswizzling. While the GPU is faster for medium and large textures, the CPU may be more efficient for very small ones. Adjust this to find the balance between GPU acceleration and CPU overhead. - + GPU Unswizzle Stream Size - + Sets the maximum amount of texture data (in MiB) processed per frame. Higher values can reduce stutter during texture loading but may impact frame consistency. - + GPU Unswizzle Chunk Size - + Determines the number of depth slices processed in a single dispatch. Increasing this can improve throughput on high-end GPUs but may cause TDR or driver timeouts on weaker hardware. - + Use Vulkan pipeline cache Utiliser le cache de pipeline Vulkan - + Enables GPU vendor-specific pipeline cache. This option can improve shader loading time significantly in cases where the Vulkan driver does not store pipeline cache files internally. Active le cache de pipeline spécifique au fournisseur de GPU. Cette option peut améliorer considérablement le temps de chargement des shaders dans les cas où le pilote Vulkan ne stocke pas les fichiers de cache de pipeline en interne. - + Enable Compute Pipelines (Intel Vulkan Only) Activer les pipelines de calcul (Vulkan sur Intel uniquement) - + Required by some games. This setting only exists for Intel proprietary drivers and may crash if enabled. Compute pipelines are always enabled on all other drivers. @@ -940,84 +922,95 @@ Ce réglage n’existe que pour les pilotes propriétaires Intel et peut provoqu Les pipelines de calcul sont toujours activés sur tous les autres pilotes. - + Enable Reactive Flushing Activer le Vidage Réactif - + Uses reactive flushing instead of predictive flushing, allowing more accurate memory syncing. Utilise une purge réactive au lieu d'une purge prédictive, permettant une synchronisation de la mémoire plus précise. - + Sync to framerate of video playback Synchro la fréquence d'image de la relecture du vidéo - + Run the game at normal speed during video playback, even when the framerate is unlocked. Éxécuter le jeu à une vitesse normale pendant la relecture du vidéo, même-ci la fréquence d'image est dévérouillée. - + Barrier feedback loops Boucles de rétroaction de barrière - + Improves rendering of transparency effects in specific games. Améliore le rendu des effets de transparence dans des jeux spécifiques. - + Enable buffer history - + Enables access to previous buffer states. This option may improve rendering quality and performance consistency in some games. - + Fix bloom effects - + Removes bloom in Burnout. - + + Enable Legacy Rescale Pass + + + + + May fix rescale issues in some games by relying on behavior from the previous implementation. +Legacy behavior workaround that fixes line artifacts on AMD and Intel GPUs, and grey texture flicker on Nvidia GPUs in Luigis Mansion 3. + + + + Extended Dynamic State État dynamique étendu - + Controls the number of features that can be used in Extended Dynamic State. Higher states allow for more features and can increase performance, but may cause additional graphical issues. - + Vertex Input Dynamic State - + Enables vertex input dynamic state feature for better quality and performance. - + Sample Shading Échantillonnage de shading - + Allows the fragment shader to execute per sample in a multi-sampled fragment instead of once per fragment. Improves graphics quality at the cost of performance. Higher values improve quality but degrade performance. Permet au shader de fragments de s’exécuter pour chaque échantillon dans un fragment multi-échantillonné, au lieu d’une seule fois par fragment. @@ -1025,96 +1018,96 @@ Améliore la qualité graphique au prix de performances réduites. Des valeurs plus élevées améliorent la qualité mais dégradent les performances. - + RNG Seed Seed RNG - + Controls the seed of the random number generator. Mainly used for speedrunning. Contrôle la graine du générateur de nombres aléatoires. Principalement utilisé pour le speedrun. - + Device Name Nom de l'appareil - + The name of the console. Nom de la console. - + Homebrew Args - + Command-line arguments passed to homebrew at launch (e.g. -noglsl). - + Custom RTC Date: Date RTC personnalisée : - + This option allows to change the clock of the console. Can be used to manipulate time in games. Cette option permet de modifier l’horloge de la console. Peut être utilisée pour manipuler le temps dans les jeux. - + The number of seconds from the current unix time Nombre de secondes écoulées depuis le 1er janvier 1970. - + Language: Langue : - + This option can be overridden when region setting is auto-select Cette option peut être remplacée lorsque la région est sur auto. - + Region: Région : - + The region of the console. Région de la console. - + Time Zone: Fuseau horaire : - + The time zone of the console. Fuseau horaire de la console. - + Sound Output Mode: Mode de sortie sonore : - + Console Mode: Mode console : - + Selects if the console is in Docked or Handheld mode. Games will change their resolution, details and supported controllers and depending on this setting. Setting to Handheld can help improve performance for low end systems. @@ -1123,1026 +1116,1042 @@ Les jeux adaptent leur résolution, leurs paramètres graphiques et les manettes Passer en mode Portable peut améliorer les performances sur les systèmes peu puissants. - + Prompt for user profile on boot Choisir l’utilisateur au démarrage. - + Useful if multiple people use the same PC. Utile si plusieurs personnes utilisent le même PC. - + Pause when not in focus Pause lorsque la fenêtre n’est pas active. - + Pauses emulation when focusing on other windows. Met l’émulation en pause dès que l’utilisateur change de fenêtre. - + Confirm before stopping emulation Confirmer avant d'arrêter l'émulation - + Overrides prompts asking to confirm stopping the emulation. Enabling it bypasses such prompts and directly exits the emulation. Ignore les demandes de confirmation pour arrêter l’émulation. L’activer permet de contourner ces confirmations et de quitter directement l’émulation. - + Hide mouse on inactivity Cacher la souris en cas d'inactivité - + Hides the mouse after 2.5s of inactivity. Cache le curseur après 2,5 secondes d’inactivité. - + + Disable controller applet + Désactiver l'applet du contrôleur + + + + Forcibly disables the use of the controller applet in emulated programs. +When a program attempts to open the controller applet, it is immediately closed. + Désactive de force le menu de configuration des manettes dans les programmes émulés. +Lorsqu’un programme tente d’ouvrir ce menu, il est immédiatement fermé. + + + Check for updates Rechercher des mises à jours - + Whether or not to check for updates upon startup. Vérifier ou non les mises à jour au démarrage. - + Enable Gamemode Activer le mode jeu - + Force X11 as Graphics Backend Forcer X11 comme moteur graphique - + Custom frontend Interface personnalisée - + Real applet Applet réel - - - Disabled - Désactivé - - - + Never Jamais - + On Load Au chargement - + Always Toujours - + CPU CPU - + GPU GPU - + CPU Asynchronous CPU Asynchrone - + Uncompressed (Best quality) Non compressé (Meilleure qualité) - + BC1 (Low quality) BC1 (Basse qualité) - + BC3 (Medium quality) BC3 (Qualité moyenne) - - + + Auto Auto - + 30 FPS - + 60 FPS - + 90 FPS - + 120 FPS - + Conservative Conservateur - + Aggressive Agressif - + Vulkan Vulkan - + OpenGL GLSL OpenGL GLSL - + OpenGL GLASM (Assembly Shaders, NVIDIA Only) - + OpenGL SPIR-V (Experimental, AMD/Mesa Only) - + Null Nul - + Fast Rapide - - - + + + Accurate Précis - - - + + + Default Par défaut - + Unsafe (fast) Insecure (rapide) - + Safe (stable) Sûr (stable) - + Immediate - + Balanced Moyen - + + Strict + + + + Unsafe Risqué - + Paranoid (disables most optimizations) Paranoïaque (désactive la plupart des optimisations) - + Debugging Débogage - + Dynarmic Dynamique - + NCE NCE - + Borderless Windowed Fenêtré sans bordure - + Exclusive Fullscreen Plein écran exclusif - + No Video Output Pas de sortie vidéo - + CPU Video Decoding Décodage Vidéo sur le CPU - + GPU Video Decoding (Default) Décodage Vidéo sur le GPU (par défaut) - + 0.25X (180p/270p) [EXPERIMENTAL] 0.25X (180p/270p) [EXPÉRIMENTAL] - + 0.5X (360p/540p) [EXPERIMENTAL] 0.5X (360p/540p) [EXPERIMENTAL] - + 0.75X (540p/810p) [EXPERIMENTAL] 0.75X (540p/810p) [EXPÉRIMENTAL] - + 1X (720p/1080p) 1X (720p/1080p) - + 1.25X (900p/1350p) [EXPERIMENTAL] 1,25X (900p/1350p) [EXPÉRIMENTAL] - + 1.5X (1080p/1620p) [EXPERIMENTAL] 1.5X (1080p/1620p) [EXPÉRIMENTAL] - + 2X (1440p/2160p) 2X (1440p/2160p) - + 3X (2160p/3240p) 3X (2160p/3240p) - + 4X (2880p/4320p) 4X (2880p/4320p) - + 5X (3600p/5400p) 5X (3600p/5400p) - + 6X (4320p/6480p) 6X (4320p/6480p) - + 7X (5040p/7560p) 7X (5040p/7560p) - + 8X (5760p/8640p) 8X (5760p/8640p) - + Nearest Neighbor Plus proche voisin - + Bilinear Bilinéaire - + Bicubic Bicubique - + Gaussian Gaussien - + Lanczos Lanczos - + ScaleForce ScaleForce - + AMD FidelityFX Super Resolution AMD FidelityFX Super Resolution - + Area Area (Par zone) - + MMPX MMPX - + Zero-Tangent Zero-Tangent - + B-Spline B-Spline - + Mitchell Mitchell - + Spline-1 Spline-1 - + Snapdragon Game Super Resolution - + Snapdragon Game Super Resolution EdgeDir - + None Aucun - + FXAA FXAA - + SMAA SMAA - + Default (16:9) Par défaut (16:9) - + Force 4:3 Forcer le 4:3 - + Force 21:9 Forcer le 21:9 - + Force 16:10 Forcer le 16:10 - + Stretch to Window Étirer à la fenêtre - + Automatic Automatique - + 2x 2x - + 4x 4x - + 8x 8x - + 16x 16x - + Japanese (日本語) Japonais (日本語) - + American English Anglais Américain - + French (français) Français (français) - + German (Deutsch) Allemand (Deutsch) - + Italian (italiano) Italien (italiano) - + Spanish (español) Espagnol (español) - + Chinese Chinois - + Korean (한국어) Coréen (한국어) - + Dutch (Nederlands) Néerlandais (Nederlands) - + Portuguese (português) Portugais (português) - + Russian (Русский) Russe (Русский) - + Taiwanese Taïwanais - + British English Anglais Britannique - + Canadian French Français Canadien - + Latin American Spanish Espagnol d'Amérique Latine - + Simplified Chinese Chinois Simplifié - + Traditional Chinese (正體中文) Chinois Traditionnel (正體中文) - + Brazilian Portuguese (português do Brasil) Portugais Brésilien (português do Brasil) - + Polish (polska) - + Thai (แบบไทย) - - + + Japan Japon - + USA É.-U.A. - + Europe Europe - + Australia Australie - + China Chine - + Korea Corée - + Taiwan Taïwan - + Auto (%1) Auto select time zone Auto (%1) - + Default (%1) Default time zone Par défaut (%1) - + CET CET - + CST6CDT CST6CDT - + Cuba Cuba - + EET EET - + Egypt Égypte - + Eire Eire - + EST EST - + EST5EDT EST5EDT - + GB GB - + GB-Eire GB-Eire - + GMT GMT - + GMT+0 GMT+0 - + GMT-0 GMT-0 - + GMT0 GMT0 - + Greenwich Greenwich - + Hongkong Hong Kong - + HST HST - + Iceland Islande - + Iran Iran - + Israel Israël - + Jamaica Jamaïque - + Kwajalein Kwajalein - + Libya Libye - + MET MET - + MST MST - + MST7MDT MST7MDT - + Navajo Navajo - + NZ NZ - + NZ-CHAT NZ-CHAT - + Poland Pologne - + Portugal Portugal - + PRC PRC - + PST8PDT PST8PDT - + ROC ROC - + ROK ROK - + Singapore Singapour - + Turkey Turquie - + UCT UCT - + Universal Universel - + UTC UTC - + W-SU W-SU - + WET WET - + Zulu Zulu - + Mono Mono - + Stereo Stéréo - + Surround Surround - + 4GB DRAM (Default) 4 GB DRAM (Par défaut) - + 6GB DRAM (Unsafe) 6 GB DRAM (Risqué) - + 8GB DRAM 8GO DRAM - + 10GB DRAM (Unsafe) 10GO DRAM (Insecure) - + 12GB DRAM (Unsafe) 12GO DRAM (Insecure) - + Docked Mode TV - + Handheld Mode Portable + + + + Normal + + - Normal + Boost - Boost - - - - - Overclock - + Always ask (Default) Toujours demander (par défaut) - + Only if game specifies not to stop Uniquement si le jeu précise de ne pas s'arrêter - + Never ask Jamais demander - + Very Small (16 MB) Très petit (16Mo) - + Small (32 MB) Petit (32Mo) - + Normal (128 MB) Normal (128Mo) - + Large (256 MB) Large (256Mo) - + Very Large (512 MB) Très large (512Mo) - + Very Low (4 MB) Très faible (4 Mo) - + Low (8 MB) Faible (8 Mo) - + Normal (16 MB) Normal (16 Mo) - + Medium (32 MB) Moyen (32 Mo) - + High (64 MB) Élevé (64 Mo) - + Very Low (32) Très faible (32) - + Low (64) Faible (64) - + Normal (128) Normal (128) - + Medium (256) Moyen (256) - + High (512) Élevé (512) - + + Disabled + Désactivé + + + ExtendedDynamicState 1 État dynamique étendu 1 - + ExtendedDynamicState 2 État dynamique étendu 2 - + ExtendedDynamicState 3 État dynamique étendu 3 - + Tree View Vue en liste - + Grid View Vue en grille @@ -3242,38 +3251,33 @@ Would you like to delete the old save data? Couleur de l’arrière plan : - + % FSR/SGSR sharpening percentage (e.g. 50%) - - Configure Effects... - - - - + Off Désactivé - + VSync Off VSync Désactivée - + Recommended Recommandé - + On Activé - + VSync On VSync Activée @@ -4886,130 +4890,6 @@ Once deleted, these can NOT be recovered. Are you 100% sure you want to delete t - - ConfigurePostProcessing - - - Post-Processing Effects - - - - - Changes apply immediately while a game is running. - - - - - Enable post-processing - - - - - Preset: - - - - - Apply - - - - - Reset Values - - - - - Return every effect to the values the preset ships with. - - - - - Save As... - - - - - Save Preset - - - - - Preset name: - - - - - Clear - - - - - Remove every effect in use and deselect the preset. - - - - - Add Effect - - - - - None - - - - - No effects in use. Pick a preset and press Apply, or add effects one by one. - - - - - Custom chain. Pick a preset above and press Apply to replace it. - - - - - Active preset: %1 (modified). Press Reset Values to go back to how it ships. - - - - - Active preset: %1 - - - - - Enabled - - - - - Disabled - - - - - Reset to defaults - - - - - Effect '%1' was not found. - - - - - Effect failed to compile: -%1 - - - - - No usable ReShade FX effects were found. Place .fx files in the post_shaders folder. - - - ConfigureProfileManager @@ -6097,50 +5977,50 @@ Veuillez aller dans Configurer -> Système -> Réseau puis en choisir une. GRenderWindow - - + + OpenGL not available! OpenGL n'est pas disponible ! - + OpenGL shared contexts are not supported. Les contextes OpenGL partagés ne sont pas pris en charge. - + Eden has not been compiled with OpenGL support. Eden n'a pas été compilé avec le support OpenGL - - - + + + Error while initializing OpenGL! Erreur lors de l'initialisation d'OpenGL ! - + Your GPU may not support OpenGL, or you do not have the latest graphics driver. Votre GPU peut ne pas prendre en charge OpenGL, ou vous n'avez pas les derniers pilotes graphiques. - + Error while initializing OpenGL 4.6! Erreur lors de l'initialisation d'OpenGL 4.6 ! - + Your GPU may not support OpenGL 4.6, or you do not have the latest graphics driver.<br><br>GL Renderer:<br>%1 Votre GPU peut ne pas prendre en charge OpenGL 4.6 ou vous ne disposez pas du dernier pilote graphique: %1 - + Your GPU may not support one or more required OpenGL extensions. Please ensure you have the latest graphics driver.<br><br>GL Renderer:<br>%1<br><br>Unsupported extensions:<br>%2 Votre GPU peut ne pas prendre en charge une ou plusieurs extensions OpenGL requises. Veuillez vous assurer que vous disposez du dernier pilote graphique.<br><br>GL Renderer :<br>%1<br><br>Extensions non prises en charge :<br>%2 - + This build doesn't have OpenGL support. @@ -6962,42 +6842,42 @@ Message de débogage : Réinitialiser la taille de la fenêtre à 1080p - + &Multiplayer &Multijoueur - + &Tools &Outils - + Am&iibo Am&iibo - + Launch &Applet - + &TAS &TAS - + &Create Home Menu Shortcut &Créer un Raccourci du Menu d'Accueil - + Install &Firmware Installer le &Firmware - + &Help &Aide @@ -7023,7 +6903,7 @@ Message de débogage : - + &Pause &Pause @@ -7124,176 +7004,176 @@ Message de débogage : - &User Handbook - + Open &Quickstart Guide + Ouvrir le &guide de démarrage rapide - + + &FAQ + &FAQ + + + &Capture Screenshot &Capture d'écran - + &Album - + &Set Nickname and Owner &Définir le surnom et le propriétaire - + &Delete Game Data &Supprimer les données du jeu - + &Restore Amiibo &Restaurer l'amiibo - + &Format Amiibo &Formater l'amiibo - + &Mii Editor - + &Configure TAS... &Configurer TAS... - + Configure C&urrent Game... Configurer le j&eu actuel... - - + + &Start &Démarrer - + &Reset &Réinitialiser - - + + R&ecord En&registrer - + Open &Controller Menu Ouvrir le &menu des manettes - + Install Decryption &Keys Installer les &clés de déchiffrement - + &Home Menu - + &Desktop &Bureau - + &Application Menu &Menu de l'Application - + &Root Data Folder &Dossier de Données (Root) Principal. - + &NAND Folder &Dossier NAND - + &SDMC Folder &Dossier SDMC - + &Mod Folder &Dossier Mod - + &Log Folder &Dossier Log - + From Folder Depuis un dossier - + From ZIP Depuis une archive ZIP - + &Eden Dependencies Dépendances d'&Eden - + &Data Manager &Gestionnaire de données - + &Tree View - + &Grid View - + Game Icon Size - - + + None Aucun - + Show Game &Name - - - Show &Performance Overlay - - - Post-Processing &Shaders... + Show &Performance Overlay @@ -7302,737 +7182,722 @@ Message de débogage : - + Small (32x32) - + Standard (64x64) - + Large (128x128) - + Full Size (256x256) - + Broken Vulkan Installation Detected - + Vulkan initialization failed during boot. - + Running a game TRANSLATORS: This string is shown to the user to explain why yuzu needs to prevent the computer from sleeping - + Loading Web Applet... - - + + Disable Web Applet - + Disabling the web applet can lead to undefined behavior and should only be used with Super Mario 3D All-Stars. Are you sure you want to disable the web applet? (This can be re-enabled in the Debug settings.) - + The amount of shaders currently being built - + The current selected resolution scaling multiplier. - + Current emulation speed. Values higher or lower than 100% indicate emulation is running faster or slower than a Switch. - + How many frames per second the game is currently displaying. This will vary from game to game and scene to scene. - + Time taken to emulate a Switch frame, not counting framelimiting or v-sync. For full-speed emulation this should be at most 16.67 ms. - + Unmute Remettre le son - + Mute Couper le son - + Reset Volume Réinitialiser le volume - - Configure Effects... - - - - + &Clear Recent Files - + &Continue &Continuer - + Warning: Outdated Game Format - + You are using the deconstructed ROM directory format for this game, which is an outdated format that has been superseded by others such as NCA, NAX, XCI, or NSP. Deconstructed ROM directories lack icons, metadata, and update support.<br>For an explanation of the various Switch formats Eden supports, out our user handbook. This message will not be shown again. - - + + Error while loading ROM! - + The ROM format is not supported. - + An error occurred initializing the video core. - - This is usually caused by outdated GPU drivers. Please see the log for more details. See: <a href='https://git.eden-emu.dev/eden-emu/eden/src/branch/master/docs/user/HowToAccessLogs.md'>How to access log files</a>. + + Eden has encountered an error while running the video core. This is usually caused by outdated GPU drivers, including integrated ones. Please see the log for more details. For more information on accessing the log, please see the following page: <a href='https://yuzu-mirror.github.io/help/reference/log-files/'>How to Upload the Log File</a>. - + Error while loading ROM! %1 %1 signifies a numeric error code. - + %1<br>Please redump your files or ask on Discord/Stoat for help. %1 signifies an error string. - + An unknown error occurred. Please see the log for more details. - - + + (64-bit) (64-bit) - - + + (32-bit) (32-bit) - - + + %1 %2 %1 is the title name. %2 indicates if the title is 64-bit or 32-bit - + Closing software... Fermeture du logiciel... - + Save Data Données de sauvegarde - + Mod Data - + Error Opening %1 Folder - - + + Folder does not exist! - + Remove Installed Game Contents? - + Remove Installed Game Update? - + Remove Installed Game DLC? - + Remove Entry - + Delete OpenGL Transferable Shader Cache? - + Delete Vulkan Transferable Shader Cache? - + Delete All Transferable Shader Caches? - + Remove Custom Game Configuration? - + Remove Cache Storage? - + Remove File - + Remove Play Time Data - + Reset play time? Réinitialiser le temps de jeu ? - - + + RomFS Extraction Failed! L'extraction de la RomFS a échoué ! - + There was an error copying the RomFS files or the user cancelled the operation. - + Full - + Skeleton - + Select RomFS Dump Mode - + Please select the how you would like the RomFS dumped.<br>Full will copy all of the files into the new directory while <br>skeleton will only create the directory structure. - + There is not enough free space at %1 to extract the RomFS. Please free up space or select a different dump directory at Emulation > Configure > System > Filesystem > Dump Root - + Extracting RomFS... - - + + Cancel Annuler - + RomFS Extraction Succeeded! Extraction de la RomFS réussi ! - + The operation completed successfully. - + Error Opening %1 - + Select Directory - + Properties Propriétés - + The game properties could not be loaded. - + Switch Executable (%1);;All Files (*.*) %1 is an identifier for the Switch executable file extensions. - + Load File - + Open Extracted ROM Directory - + Invalid Directory Selected - + The directory you have selected does not contain a 'main' file. - + Installable Switch File (*.nca *.nsp *.xci);;Nintendo Content Archive (*.nca);;Nintendo Submission Package (*.nsp);;NX Cartridge Image (*.xci) - + Install Files - + %n file(s) remaining - + Installing file "%1"... - - + + Install Results - + To avoid possible conflicts, we discourage users from installing base games to the NAND. Please, only use this feature to install updates and DLC. - + %n file(s) were newly installed - + %n file(s) were overwritten - + %n file(s) failed to install - + System Application - + System Archive - + System Application Update - + Firmware Package (Type A) - + Firmware Package (Type B) - + Game Jeu - + Game Update - + Game DLC - + Delta Title - + Select NCA Install Type... - + Please select the type of title you would like to install this NCA as: (In most instances, the default 'Game' is fine.) - + Failed to Install Échec de l'installation - + The title type you selected for the NCA is invalid. - + File not found Fichier non trouvé - + File "%1" not found - + OK OK - + Function Disabled - + Compatibility list reporting is currently disabled. Check back later! - + Error opening URL - + Unable to open the URL "%1". - + TAS Recording - + Overwrite file of player 1? - + Invalid config detected - + Handheld controller can't be used on docked mode. Pro controller will be selected. - - + + Amiibo Amiibo - - + + The current amiibo has been removed - + Error Erreur - - + + The current game is not looking for amiibos - + Amiibo File (%1);; All Files (*.*) - + Load Amiibo Charger un Amiibo - + Error loading Amiibo data - + The selected file is not a valid amiibo - + The selected file is already on use - + An unknown error occurred - + No firmware available - + Firmware Corrupted Firmware corrompu - + Unknown applet - + Applet doesn't map to a known value. - + Record not found - + Applet not found. Please reinstall firmware. - + Capture Screenshot - + PNG Image (*.png) - + TAS state: Running %1/%2 - + TAS state: Recording %1 - + TAS state: Idle %1/%2 - + TAS State: Invalid - + &Stop Running - + Stop R&ecording - + Building: %n shader(s) - + Scale: %1x %1 is the resolution scaling factor - + Speed: %1% / %2% - + Speed: %1% - + Game: %1 FPS - + Frame: %1 ms - + NO AA - - NO FX - - - - - FX - - - - + VOLUME: MUTE VOLUME : MUET - + VOLUME: %1% Volume percentage (e.g. 50%) - + Derivation Components Missing - + Decryption keys are missing. Install them now? - + Wayland Detected! Wayland détecté ! - + Wayland is known to have significant performance issues and mysterious bugs. It's recommended to use X11 instead. @@ -8040,74 +7905,74 @@ Would you like to force it for future launches? - + Use X11 - + Continue with Wayland - + Don't show again - + Restart Required - + Restart Eden to apply the X11 backend. - + Slow - + Turbo - + Unlocked - + Select RomFS Dump Target - + Please select which RomFS you would like to dump. - + Are you sure you want to close Eden? - - - + + + Eden Eden - + Are you sure you want to stop the emulation? Any unsaved progress will be lost. - + The currently running application has requested Eden to not exit. Would you like to bypass this and exit anyway? @@ -9307,41 +9172,41 @@ p, li { white-space: pre-wrap; } - This game may require firmware to function properly, and you don't have any installed. Please install firmware before launching, or press "OK" to launch anyways. - + The game you are trying to launch requires firmware to boot or to get past the opening menu. Please <a href='https://yuzu-mirror.github.io/help/quickstart'>dump and install firmware</a>, or press "OK" to launch anyways. + Le jeu que vous essayez de lancer nécessite un firmware pour démarrer ou pour passer le menu d’ouverture. Veuillez <a href='https://yuzu-mirror.github.io/help/quickstart'>dumper et installer le firmware</a>, ou appuyez sur « OK » pour lancer quand même. - + Installing Firmware... Installation du firmware... - - - - - + + + + + Cancel Annuler - + Firmware Install Failed Installation du firmware échoué - + Firmware Install Succeeded Installation du firmware réussi - + Firmware integrity verification failed! Échec de la vérification de l'intégrité du firmware ! - - + + Verification failed for the following files: %1 @@ -9350,235 +9215,235 @@ p, li { white-space: pre-wrap; } %1 - - + + Verifying integrity... Vérification de l'intégrité... - - + + Integrity verification succeeded! La vérification de l'intégrité réussi ! - - + + The operation completed successfully. L'opération s'est déroulée avec succès. - - + + Integrity verification failed! La vérification de l'intégrité a échoué ! - + File contents may be corrupt or missing. Le contenu d'un fichier peut être corrompu or manquant. - + Integrity verification couldn't be performed La vérification de l'intégrité n'a pas pu être effectuée - + Firmware installation cancelled, firmware may be in a bad state or corrupted. File contents could not be checked for validity. Installation du firmware annulée, le firmware est peut-être en mauvais état ou corrompu. Impossible de vérifier la validité du contenu du fichier. - + Select Dumped Keys Location Sélectionner Emplacement Clés Extraites - + Decryption Keys install succeeded Installation des clés de décryptage avec succès - + Decryption Keys install failed Installation des clés de décryptage échoué - + Orphaned Profiles Detected! Profils orphelins détectés ! - + UNEXPECTED BAD THINGS MAY HAPPEN IF YOU DON'T READ THIS!<br>Eden has detected the following save directories with no attached profile:<br>%1<br><br>The following profiles are valid:<br>%2<br><br>Click "OK" to open your save folder and fix up your profiles.<br>Hint: copy the contents of the largest or last-modified folder elsewhere, delete all orphaned profiles, and move your copied contents to the good profile.<br><br>Still confused? See the <a href='https://git.eden-emu.dev/eden-emu/eden/src/branch/master/docs/user/Orphaned.md'>help page</a>.<br> DES CHOSES GRAVES INATTENDUES PEUVENT SURVENIR SI VOUS NE LISEZ PAS CECI !<br>Eden a détecté les répertoires de sauvegarde suivants sans profil associé :<br>%1<br><br>Les profils suivants sont valides :<br>%2<br><br>Cliquez sur « OK » pour ouvrir votre dossier de sauvegarde et corriger vos profils.<br>Astuce : copiez le contenu du dossier le plus volumineux ou le plus récemment modifié ailleurs, supprimez tous les profils orphelins et déplacez le contenu copié vers le profil correct.<br><br>Toujours confus ? Consultez la <a href='https://git.eden-emu.dev/eden-emu/eden/src/branch/master/docs/user/Orphaned.md'>page d’aide</a>.<br> - + Really clear data? Vraiment effacer les données ? - + Important data may be lost! Des données importantes peuvent être perdues ! - + Are you REALLY sure? Êtes-vous VRAIMENT sûr ? - + Once deleted, your data will NOT come back! Only do this if you're 100% sure you want to delete this data. Une fois supprimées, vos données NE POURRONT PAS être récupérées ! Ne faites cela que si vous êtes sûr à 100 % de vouloir supprimer ces données. - + Clearing... Suppression en cours… - + Select Export Location Sélectionner l’emplacement d’exportation - + %1.zip %1.zip - - - + + + Zipped Archives (*.zip) Archives compressées (*.zip) - + Exporting data. This may take a while... Exportation des données en cours. Cela peut prendre un certain temps… - + Exporting Exportation en cours… - + Exported Successfully Exportation réussie - + Data was exported successfully. Les données ont été exportées avec succès. - + Export Cancelled Exportation annulée - + Export was cancelled by the user. L’exportation a été annulée par l’utilisateur. - + Export Failed Échec de l’exportation - + Ensure you have write permissions on the targeted directory and try again. Assurez-vous d’avoir les permissions d’écriture sur le répertoire ciblé et réessayez. - + Select Import Location Sélectionner l’emplacement d’importation - + Import Warning Avertissement d’importation - + All previous data in this directory will be deleted. Are you sure you wish to proceed? Toutes les données précédentes de ce répertoire seront supprimées. Êtes-vous sûr de vouloir continuer ? - + Importing data. This may take a while... Importation des données en cours. Cela peut prendre un certain temps… - + Importing Importation en cours… - + Imported Successfully Importation réussie - + Data was imported successfully. Les données ont été importées avec succès. - + Import Cancelled Importation annulée - + Import was cancelled by the user. L’importation a été annulée par l’utilisateur. - + Import Failed Échec de l’importation - + Ensure you have read permissions on the targeted directory and try again. Assurez-vous d’avoir les permissions de lecture sur le répertoire ciblé et réessayez. - + Keys not installed - + Install decryption keys and restart Eden before attempting to install firmware. - + Select Dumped Firmware Source Location - + Select Dumped Firmware ZIP - + Firmware cleanup failed - + Failed to clean up extracted firmware cache. Check write permissions in the system temp directory and try again. OS reported error: %1 diff --git a/dist/languages/hu.ts b/dist/languages/hu.ts index 29ba70527e..1f47c4e564 100644 --- a/dist/languages/hu.ts +++ b/dist/languages/hu.ts @@ -572,22 +572,12 @@ FXAA can produce a more stable picture in lower resolutions. - - Enable post-processing effects - - - - - Applies post-processing effects to the final image. - - - - + Fullscreen Mode: Teljes képernyős mód: - + The method used to render the window in fullscreen. Borderless offers the best compatibility with the on-screen keyboard that some games request for input. Exclusive fullscreen may offer better performance and better Freesync/Gsync support. @@ -596,47 +586,47 @@ A borderless (szegély nélküli) biztosítja a legjobb kompatibilitást a képe Az exkluzív teljes képernyő jobb teljesítményt és jobb Freesync/Gsync támogatást kínálhat. - + Aspect Ratio: Képarány: - + Stretches the renderer to fit the specified aspect ratio. Most games only support 16:9, so modifications are required to get other ratios. Also controls the aspect ratio of captured screenshots. - + Use persistent pipeline cache - + Allows saving shaders to storage for faster loading on following game boots. Disabling it is only intended for debugging. Lehetővé teszi az árnyékolók tárolását a gyorsabb betöltés érdekében a következő játékindításokkor. Kikapcsolása csak hibakeresésre szolgál. - + Use asynchronous GPU emulation - + Uses an extra CPU thread for rendering. This option should always remain enabled. - + NVDEC emulation: NVDEC emuláció: - + Specifies how videos should be decoded. It can either use the CPU or the GPU for decoding, or perform no decoding at all (black screen on videos). In most cases, GPU decoding provides the best performance. @@ -645,12 +635,12 @@ A dekódoláshoz használhatja a CPU-t vagy a GPU-t, vagy egyáltalán nem vége A legtöbb esetben a GPU dekódolás nyújtja a legjobb teljesítményt. - + ASTC Decoding Method: ASTC dekódoló módszer: - + This option controls how ASTC textures should be decoded. CPU: Use the CPU for decoding. GPU: Use the GPU's compute shaders to decode ASTC textures (recommended). @@ -659,75 +649,55 @@ stuttering but may present artifacts. - + ASTC Recompression Method: ASTC újraszűrési módszer: - + Most GPUs lack support for ASTC textures and must decompress to anintermediate format: RGBA8. BC1/BC3: The intermediate format will be recompressed to BC1 or BC3 format, saving VRAM but degrading image quality. - + Frame Pacing Mode (Vulkan only) - + Controls how the emulator manages frame pacing to reduce stuttering and make the frame rate smoother and more consistent. - + VRAM Usage Mode: VRAM használati mód: - + Selects whether the emulator should prefer to conserve memory or make maximum usage of available video memory for performance. Aggressive mode may impact performance of other applications such as recording software. - + Skip CPU Inner Invalidation - + Skips certain cache invalidations during memory updates, reducing CPU usage and improving latency. This may cause soft-crashes. - - GPU Readback Before NCE Invalidation - - - - - Flushes GPU buffer data back to guest memory before NCE invalidates the whole guest page, preserving it while the CPU store proceeds. - - - - - Patch Runtime NROs for NCE - - - - - Applies NCE code patches to runtime-loaded NRO modules.This is required for some games to run correctly. - - - - + VSync Mode: VSync mód: - + FIFO (VSync) does not drop frames or exhibit tearing but is limited by the screen refresh rate. FIFO Relaxed allows tearing as it recovers from a slow down. Mailbox can have lower latency than FIFO and does not tear but may drop frames. @@ -735,1371 +705,1409 @@ Immediate (no synchronization) presents whatever is available and can exhibit te - + Sync Memory Operations - + Ensures data consistency between compute and memory operations. This option fixes issues in games, but may degrade performance. Unreal Engine 4 games often see the most significant changes thereof. - + Enable asynchronous presentation (Vulkan only) Aszinkron prezentálás engedélyezése (csak Vulkan) - + Slightly improves performance by moving presentation to a separate CPU thread. Kicsit javítja a teljesítményt azáltal, hogy a megjelenítést külön CPU szálra helyezi át. - + Force maximum clocks (Vulkan only) Maximális órajelek kényszerítése (csak Vulkan) - + Runs work in the background while waiting for graphics commands to keep the GPU from lowering its clock speed. A háttérben fut, miközben várja a grafikai parancsokat, hogy a GPU ne csökkentse az órajelét. - + Anisotropic Filtering: Anizotropikus szűrés: - + Controls the quality of texture rendering at oblique angles. Safe to set at 16x on most GPUs. - + GPU Mode: - + Controls the GPU emulation mode. Most games render fine with Fast, but Accurate is still required for some. Particles tend to only render correctly with Accurate mode. - + DMA Accuracy: - + Controls the DMA read mode. Unsafe is faster, while Safe is more stable and can fix issues in some games. Default follows the GPU Accuracy setting. - + GPU Fence Behavior: - + Controls the GPU fence synchronization behavior. Immediate is the fastest option, but can introduce some issues. Balanced offers better compatibility and may fix issues in some games. Accurate further improves compatibility at the cost of some performance. -Default follows the GPU Mode setting. +Strict is the slowest option, but can fix issues that require stricter synchronization. +Default follows the GPU Accuracy setting. - + + Enable GPU buffer readback + + + + + Preserves GPU-modified data by reading it back before uploading. +Some games require this to render certain effects properly. + + + + Enable asynchronous shader compilation - + May reduce shader stutter. - + GPU Clocks - + Makes the game believe GPU work finishes faster than it does, so it stops lowering resolution and render distance to fit the Switch's clocks. - + GPU Unswizzle - + Accelerates BCn 3D texture decoding using GPU compute. Disable if experiencing crashes or graphical glitches. - + GPU Unswizzle Max Texture Size - + Sets the maximum size (MiB) for GPU-based texture unswizzling. While the GPU is faster for medium and large textures, the CPU may be more efficient for very small ones. Adjust this to find the balance between GPU acceleration and CPU overhead. - + GPU Unswizzle Stream Size - + Sets the maximum amount of texture data (in MiB) processed per frame. Higher values can reduce stutter during texture loading but may impact frame consistency. - + GPU Unswizzle Chunk Size - + Determines the number of depth slices processed in a single dispatch. Increasing this can improve throughput on high-end GPUs but may cause TDR or driver timeouts on weaker hardware. - + Use Vulkan pipeline cache Vulkan pipeline gyorsítótár használata. - + Enables GPU vendor-specific pipeline cache. This option can improve shader loading time significantly in cases where the Vulkan driver does not store pipeline cache files internally. - + Enable Compute Pipelines (Intel Vulkan Only) - + Required by some games. This setting only exists for Intel proprietary drivers and may crash if enabled. Compute pipelines are always enabled on all other drivers. - + Enable Reactive Flushing Reaktív ürítés használata - + Uses reactive flushing instead of predictive flushing, allowing more accurate memory syncing. Reaktív ürítést használ a prediktív ürítés helyett, ami pontosabb memóriaszinkronizálást tesz lehetővé. - + Sync to framerate of video playback Szinkronizálás a videolejátszás képkockasebességéhez - + Run the game at normal speed during video playback, even when the framerate is unlocked. A játék futtatása normál sebességgel videolejátszás közben, még akkor is, ha a képkockasebesség fel van oldva. - + Barrier feedback loops - + Improves rendering of transparency effects in specific games. Javítja az átlátszósági effektek megjelenítését bizonyos játékokban. - + Enable buffer history - + Enables access to previous buffer states. This option may improve rendering quality and performance consistency in some games. - + Fix bloom effects - + Removes bloom in Burnout. - + + Enable Legacy Rescale Pass + + + + + May fix rescale issues in some games by relying on behavior from the previous implementation. +Legacy behavior workaround that fixes line artifacts on AMD and Intel GPUs, and grey texture flicker on Nvidia GPUs in Luigis Mansion 3. + + + + Extended Dynamic State - + Controls the number of features that can be used in Extended Dynamic State. Higher states allow for more features and can increase performance, but may cause additional graphical issues. - + Vertex Input Dynamic State - + Enables vertex input dynamic state feature for better quality and performance. - + Sample Shading - + Allows the fragment shader to execute per sample in a multi-sampled fragment instead of once per fragment. Improves graphics quality at the cost of performance. Higher values improve quality but degrade performance. - + RNG Seed - + Controls the seed of the random number generator. Mainly used for speedrunning. - + Device Name Eszköznév - + The name of the console. - + Homebrew Args - + Command-line arguments passed to homebrew at launch (e.g. -noglsl). - + Custom RTC Date: Egyéni RTC dátum: - + This option allows to change the clock of the console. Can be used to manipulate time in games. - + The number of seconds from the current unix time - + Language: Nyelv: - + This option can be overridden when region setting is auto-select - + Region: Régió: - + The region of the console. - + Time Zone: Időzóna: - + The time zone of the console. - + Sound Output Mode: Hangkimeneti mód: - + Console Mode: Konzol mód: - + Selects if the console is in Docked or Handheld mode. Games will change their resolution, details and supported controllers and depending on this setting. Setting to Handheld can help improve performance for low end systems. - + Prompt for user profile on boot - + Useful if multiple people use the same PC. - + Pause when not in focus - + Pauses emulation when focusing on other windows. - + Confirm before stopping emulation Emuláció leállításának megerősítése - + Overrides prompts asking to confirm stopping the emulation. Enabling it bypasses such prompts and directly exits the emulation. - + Hide mouse on inactivity Egér elrejtése inaktivitáskor - + Hides the mouse after 2.5s of inactivity. - + + Disable controller applet + Vezérlő applet letiltása + + + + Forcibly disables the use of the controller applet in emulated programs. +When a program attempts to open the controller applet, it is immediately closed. + + + + Check for updates - + Whether or not to check for updates upon startup. - + Enable Gamemode Játékmód engedélyezése - + Force X11 as Graphics Backend - + Custom frontend Egyéni frontend - + Real applet Valódi applet - - - Disabled - - - - + Never - + On Load - + Always - + CPU CPU - + GPU GPU - + CPU Asynchronous CPU aszinkron - + Uncompressed (Best quality) Tömörítetlen (legjobb minőség) - + BC1 (Low quality) BC1 (alacsony minőség) - + BC3 (Medium quality) BC3 (közepes minőség) - - + + Auto Automatikus - + 30 FPS - + 60 FPS - + 90 FPS - + 120 FPS - + Conservative Takarékos - + Aggressive Aggresszív - + Vulkan Vulkan - + OpenGL GLSL - + OpenGL GLASM (Assembly Shaders, NVIDIA Only) - + OpenGL SPIR-V (Experimental, AMD/Mesa Only) - + Null Null - + Fast - - - + + + Accurate Pontos - - - + + + Default Alapértelmezett - + Unsafe (fast) - + Safe (stable) - + Immediate - + Balanced - + + Strict + + + + Unsafe Nem biztonságos - + Paranoid (disables most optimizations) Paranoid (a legtöbb optimalizálást letiltja) - + Debugging - + Dynarmic Dinamikus - + NCE NCE - + Borderless Windowed Szegély nélküli ablak - + Exclusive Fullscreen Exkluzív teljes képernyő - + No Video Output Nincs videokimenet - + CPU Video Decoding CPU videódekódolás - + GPU Video Decoding (Default) GPU videódekódolás (alapértelmezett) - + 0.25X (180p/270p) [EXPERIMENTAL] - + 0.5X (360p/540p) [EXPERIMENTAL] 0.5X (360p/540p) [KÍSÉRLETI] - + 0.75X (540p/810p) [EXPERIMENTAL] 0.75X (540p/810p) [KÍSÉRLETI] - + 1X (720p/1080p) 1X (720p/1080p) - + 1.25X (900p/1350p) [EXPERIMENTAL] - + 1.5X (1080p/1620p) [EXPERIMENTAL] 1.5X (1080p/1620p) [KÍSÉRLETI] - + 2X (1440p/2160p) 2X (1440p/2160p) - + 3X (2160p/3240p) 3X (2160p/3240p) - + 4X (2880p/4320p) 4X (2880p/4320p) - + 5X (3600p/5400p) 5X (3600p/5400p) - + 6X (4320p/6480p) 6X (4320p/6480p) - + 7X (5040p/7560p) 7X (5040p/7560p) - + 8X (5760p/8640p) 8X (5760p/8640p) - + Nearest Neighbor Legközelebbi szomszéd - + Bilinear Bilineáris - + Bicubic Bikubikus - + Gaussian Gauss-féle - + Lanczos - + ScaleForce ScaleForce - + AMD FidelityFX Super Resolution - + Area - + MMPX - + Zero-Tangent - + B-Spline - + Mitchell - + Spline-1 - + Snapdragon Game Super Resolution - + Snapdragon Game Super Resolution EdgeDir - + None Nincs - + FXAA FXAA - + SMAA SMAA - + Default (16:9) Alapértelmezett (16:9) - + Force 4:3 4:3 kényszerítése - + Force 21:9 21:9 kényszerítése - + Force 16:10 16:10 kényszerítése - + Stretch to Window Ablakhoz nyújtás - + Automatic Automatikus - + 2x 2x - + 4x 4x - + 8x 8x - + 16x 16x - + Japanese (日本語) Japán (日本語) - + American English Amerikai angol - + French (français) Francia (français) - + German (Deutsch) Német (Deutsch) - + Italian (italiano) Olasz (italiano) - + Spanish (español) Spanyol (español) - + Chinese Kínai - + Korean (한국어) Koreai (한국어) - + Dutch (Nederlands) Holland (Nederlands) - + Portuguese (português) Portugál (português) - + Russian (Русский) Orosz (Русский) - + Taiwanese Tajvani - + British English Brit Angol - + Canadian French Kanadai francia - + Latin American Spanish Latin-amerikai spanyol - + Simplified Chinese Egyszerűsített kínai - + Traditional Chinese (正體中文) Hagyományos kínai (正體中文) - + Brazilian Portuguese (português do Brasil) Brazíliai portugál (português do Brasil) - + Polish (polska) - + Thai (แบบไทย) - - + + Japan Japán - + USA USA - + Europe Európa - + Australia Ausztrália - + China Kína - + Korea Korea - + Taiwan Tajvan - + Auto (%1) Auto select time zone Automatikus (%1) - + Default (%1) Default time zone Alapértelmezett (%1) - + CET CET - + CST6CDT CST6CDT - + Cuba Kuba - + EET EET - + Egypt Egyiptom - + Eire Eire - + EST EST - + EST5EDT EST5EDT - + GB GB - + GB-Eire GB-Eire - + GMT GMT - + GMT+0 GMT+0 - + GMT-0 GMT-0 - + GMT0 GMT0 - + Greenwich Greenwich - + Hongkong Hongkong - + HST HST - + Iceland Izland - + Iran Irán - + Israel Izrael - + Jamaica Jamaika - + Kwajalein Kwajalein - + Libya Líbia - + MET MET - + MST MST - + MST7MDT MST7MDT - + Navajo Navahó - + NZ NZ - + NZ-CHAT NZ-CHAT - + Poland Lengyelország - + Portugal Portugália - + PRC PRC - + PST8PDT PST8PDT - + ROC ROC - + ROK ROK - + Singapore Szingapúr - + Turkey Törökország - + UCT UCT - + Universal Univerzális - + UTC UTC - + W-SU W-SU - + WET WET - + Zulu Zulu - + Mono Mono - + Stereo Sztereó - + Surround Térhangzás - + 4GB DRAM (Default) 4GB DRAM (Alapértelmezett) - + 6GB DRAM (Unsafe) 6GB DRAM (Nem biztonságos) - + 8GB DRAM - + 10GB DRAM (Unsafe) - + 12GB DRAM (Unsafe) - + Docked Dokkolt - + Handheld Kézi + + + + Normal + + - Normal + Boost - Boost - - - - - Overclock - + Always ask (Default) Mindig kérdezz rá (alapértelmezett) - + Only if game specifies not to stop Csak akkor, ha a játék kifejezetten kéri a folytatást. - + Never ask Soha ne kérdezz rá - + Very Small (16 MB) - + Small (32 MB) - + Normal (128 MB) - + Large (256 MB) - + Very Large (512 MB) - + Very Low (4 MB) - + Low (8 MB) - + Normal (16 MB) - + Medium (32 MB) - + High (64 MB) - + Very Low (32) - + Low (64) - + Normal (128) - + Medium (256) - + High (512) - + + Disabled + + + + ExtendedDynamicState 1 - + ExtendedDynamicState 2 - + ExtendedDynamicState 3 - + Tree View - + Grid View @@ -3172,38 +3180,33 @@ Would you like to delete the old save data? Háttérszín: - + % FSR/SGSR sharpening percentage (e.g. 50%) - - Configure Effects... - - - - + Off Ki - + VSync Off VSync Ki - + Recommended Ajánlott - + On Be - + VSync On VSync Be @@ -4816,130 +4819,6 @@ Once deleted, these can NOT be recovered. Are you 100% sure you want to delete t - - ConfigurePostProcessing - - - Post-Processing Effects - - - - - Changes apply immediately while a game is running. - - - - - Enable post-processing - - - - - Preset: - - - - - Apply - - - - - Reset Values - - - - - Return every effect to the values the preset ships with. - - - - - Save As... - - - - - Save Preset - - - - - Preset name: - - - - - Clear - - - - - Remove every effect in use and deselect the preset. - - - - - Add Effect - - - - - None - - - - - No effects in use. Pick a preset and press Apply, or add effects one by one. - - - - - Custom chain. Pick a preset above and press Apply to replace it. - - - - - Active preset: %1 (modified). Press Reset Values to go back to how it ships. - - - - - Active preset: %1 - - - - - Enabled - - - - - Disabled - - - - - Reset to defaults - - - - - Effect '%1' was not found. - - - - - Effect failed to compile: -%1 - - - - - No usable ReShade FX effects were found. Place .fx files in the post_shaders folder. - - - ConfigureProfileManager @@ -6025,50 +5904,50 @@ Please go to Configure -> System -> Network and make a selection. GRenderWindow - - + + OpenGL not available! OpenGL nem elérhető! - + OpenGL shared contexts are not supported. - + Eden has not been compiled with OpenGL support. - - - + + + Error while initializing OpenGL! Hiba történt az OpenGL inicializálása során! - + Your GPU may not support OpenGL, or you do not have the latest graphics driver. Lehetséges, hogy a GPU-d nem támogatja az OpenGL-t, vagy nem a legfrissebb grafikus illesztőprogram van telepítve. - + Error while initializing OpenGL 4.6! Hiba történt az OpenGL 4.6 inicializálása során! - + Your GPU may not support OpenGL 4.6, or you do not have the latest graphics driver.<br><br>GL Renderer:<br>%1 Lehetséges, hogy a GPU-d nem támogatja az OpenGL 4.6-ot, vagy nem a legfrissebb grafikus illesztőprogram van telepítve.<br><br>GL Renderer:<br>%1 - + Your GPU may not support one or more required OpenGL extensions. Please ensure you have the latest graphics driver.<br><br>GL Renderer:<br>%1<br><br>Unsupported extensions:<br>%2 Előfordulhat, hogy a GPU-d nem támogat egy vagy több szükséges OpenGL kiterjesztést. Győződj meg róla, hogy a legújabb videokártya-illesztőprogramot használod.<br><br>GL Renderer:<br>%1<br><br>Nem támogatott kiterjesztések:<br>%2 - + This build doesn't have OpenGL support. @@ -6889,42 +6768,42 @@ Debug Message: Ablakfelbontás visszaállítása 1080p-re - + &Multiplayer &Multiplayer - + &Tools &Eszközök - + Am&iibo - + Launch &Applet - + &TAS &TAS - + &Create Home Menu Shortcut - + Install &Firmware - + &Help &Segítség @@ -6950,7 +6829,7 @@ Debug Message: - + &Pause &Szünet @@ -7051,176 +6930,176 @@ Debug Message: - &User Handbook - + Open &Quickstart Guide + &Gyorstájékoztató megnyitása - + + &FAQ + &GYIK + + + &Capture Screenshot &Képernyőkép készítése - + &Album - + &Set Nickname and Owner &Becenév és tulajdonos beállítása - + &Delete Game Data &Játékadatok törlése - + &Restore Amiibo &Amiibo helyreállítása - + &Format Amiibo &Amiibo formázása - + &Mii Editor - + &Configure TAS... &TAS konfigurálása... - + Configure C&urrent Game... J&elenlegi játék konfigurálása... - - + + &Start &Indítás - + &Reset &Visszaállítás - - + + R&ecord F&elvétel - + Open &Controller Menu &Vezérlő menü megnyitása - + Install Decryption &Keys - + &Home Menu - + &Desktop - + &Application Menu - + &Root Data Folder - + &NAND Folder - + &SDMC Folder - + &Mod Folder - + &Log Folder - + From Folder - + From ZIP - + &Eden Dependencies - + &Data Manager - + &Tree View - + &Grid View - + Game Icon Size - - + + None - + Show Game &Name - - - Show &Performance Overlay - - - Post-Processing &Shaders... + Show &Performance Overlay @@ -7229,737 +7108,722 @@ Debug Message: - + Small (32x32) - + Standard (64x64) - + Large (128x128) - + Full Size (256x256) - + Broken Vulkan Installation Detected - + Vulkan initialization failed during boot. - + Running a game TRANSLATORS: This string is shown to the user to explain why yuzu needs to prevent the computer from sleeping - + Loading Web Applet... - - + + Disable Web Applet - + Disabling the web applet can lead to undefined behavior and should only be used with Super Mario 3D All-Stars. Are you sure you want to disable the web applet? (This can be re-enabled in the Debug settings.) - + The amount of shaders currently being built - + The current selected resolution scaling multiplier. - + Current emulation speed. Values higher or lower than 100% indicate emulation is running faster or slower than a Switch. - + How many frames per second the game is currently displaying. This will vary from game to game and scene to scene. - + Time taken to emulate a Switch frame, not counting framelimiting or v-sync. For full-speed emulation this should be at most 16.67 ms. - + Unmute - + Mute - + Reset Volume - - Configure Effects... - - - - + &Clear Recent Files - + &Continue - + Warning: Outdated Game Format - + You are using the deconstructed ROM directory format for this game, which is an outdated format that has been superseded by others such as NCA, NAX, XCI, or NSP. Deconstructed ROM directories lack icons, metadata, and update support.<br>For an explanation of the various Switch formats Eden supports, out our user handbook. This message will not be shown again. - - + + Error while loading ROM! - + The ROM format is not supported. - + An error occurred initializing the video core. - - This is usually caused by outdated GPU drivers. Please see the log for more details. See: <a href='https://git.eden-emu.dev/eden-emu/eden/src/branch/master/docs/user/HowToAccessLogs.md'>How to access log files</a>. + + Eden has encountered an error while running the video core. This is usually caused by outdated GPU drivers, including integrated ones. Please see the log for more details. For more information on accessing the log, please see the following page: <a href='https://yuzu-mirror.github.io/help/reference/log-files/'>How to Upload the Log File</a>. - + Error while loading ROM! %1 %1 signifies a numeric error code. - + %1<br>Please redump your files or ask on Discord/Stoat for help. %1 signifies an error string. - + An unknown error occurred. Please see the log for more details. - - + + (64-bit) - - + + (32-bit) - - + + %1 %2 %1 is the title name. %2 indicates if the title is 64-bit or 32-bit - + Closing software... - + Save Data - + Mod Data - + Error Opening %1 Folder - - + + Folder does not exist! - + Remove Installed Game Contents? - + Remove Installed Game Update? - + Remove Installed Game DLC? - + Remove Entry - + Delete OpenGL Transferable Shader Cache? - + Delete Vulkan Transferable Shader Cache? - + Delete All Transferable Shader Caches? - + Remove Custom Game Configuration? - + Remove Cache Storage? - + Remove File - + Remove Play Time Data - + Reset play time? - - + + RomFS Extraction Failed! - + There was an error copying the RomFS files or the user cancelled the operation. - + Full - + Skeleton - + Select RomFS Dump Mode - + Please select the how you would like the RomFS dumped.<br>Full will copy all of the files into the new directory while <br>skeleton will only create the directory structure. - + There is not enough free space at %1 to extract the RomFS. Please free up space or select a different dump directory at Emulation > Configure > System > Filesystem > Dump Root - + Extracting RomFS... - - + + Cancel - + RomFS Extraction Succeeded! - + The operation completed successfully. - + Error Opening %1 - + Select Directory - + Properties - + The game properties could not be loaded. - + Switch Executable (%1);;All Files (*.*) %1 is an identifier for the Switch executable file extensions. - + Load File - + Open Extracted ROM Directory - + Invalid Directory Selected - + The directory you have selected does not contain a 'main' file. - + Installable Switch File (*.nca *.nsp *.xci);;Nintendo Content Archive (*.nca);;Nintendo Submission Package (*.nsp);;NX Cartridge Image (*.xci) - + Install Files - + %n file(s) remaining - + Installing file "%1"... - - + + Install Results - + To avoid possible conflicts, we discourage users from installing base games to the NAND. Please, only use this feature to install updates and DLC. - + %n file(s) were newly installed - + %n file(s) were overwritten - + %n file(s) failed to install - + System Application - + System Archive - + System Application Update - + Firmware Package (Type A) - + Firmware Package (Type B) - + Game - + Game Update - + Game DLC - + Delta Title - + Select NCA Install Type... - + Please select the type of title you would like to install this NCA as: (In most instances, the default 'Game' is fine.) - + Failed to Install - + The title type you selected for the NCA is invalid. - + File not found - + File "%1" not found - + OK - + Function Disabled - + Compatibility list reporting is currently disabled. Check back later! - + Error opening URL - + Unable to open the URL "%1". - + TAS Recording - + Overwrite file of player 1? - + Invalid config detected - + Handheld controller can't be used on docked mode. Pro controller will be selected. - - + + Amiibo - - + + The current amiibo has been removed - + Error - - + + The current game is not looking for amiibos - + Amiibo File (%1);; All Files (*.*) - + Load Amiibo - + Error loading Amiibo data - + The selected file is not a valid amiibo - + The selected file is already on use - + An unknown error occurred - + No firmware available - + Firmware Corrupted - + Unknown applet - + Applet doesn't map to a known value. - + Record not found - + Applet not found. Please reinstall firmware. - + Capture Screenshot - + PNG Image (*.png) - + TAS state: Running %1/%2 - + TAS state: Recording %1 - + TAS state: Idle %1/%2 - + TAS State: Invalid - + &Stop Running - + Stop R&ecording - + Building: %n shader(s) - + Scale: %1x %1 is the resolution scaling factor - + Speed: %1% / %2% - + Speed: %1% - + Game: %1 FPS - + Frame: %1 ms - + NO AA - - NO FX - - - - - FX - - - - + VOLUME: MUTE - + VOLUME: %1% Volume percentage (e.g. 50%) - + Derivation Components Missing - + Decryption keys are missing. Install them now? - + Wayland Detected! - + Wayland is known to have significant performance issues and mysterious bugs. It's recommended to use X11 instead. @@ -7967,74 +7831,74 @@ Would you like to force it for future launches? - + Use X11 - + Continue with Wayland - + Don't show again - + Restart Required - + Restart Eden to apply the X11 backend. - + Slow - + Turbo - + Unlocked - + Select RomFS Dump Target - + Please select which RomFS you would like to dump. - + Are you sure you want to close Eden? - - - + + + Eden - + Are you sure you want to stop the emulation? Any unsaved progress will be lost. - + The currently running application has requested Eden to not exit. Would you like to bypass this and exit anyway? @@ -9221,275 +9085,275 @@ p, li { white-space: pre-wrap; } - This game may require firmware to function properly, and you don't have any installed. Please install firmware before launching, or press "OK" to launch anyways. + The game you are trying to launch requires firmware to boot or to get past the opening menu. Please <a href='https://yuzu-mirror.github.io/help/quickstart'>dump and install firmware</a>, or press "OK" to launch anyways. - + Installing Firmware... - - - - - + + + + + Cancel - + Firmware Install Failed - + Firmware Install Succeeded - + Firmware integrity verification failed! - - + + Verification failed for the following files: %1 - - + + Verifying integrity... - - - - Integrity verification succeeded! - - + Integrity verification succeeded! + + + + + The operation completed successfully. - - + + Integrity verification failed! - + File contents may be corrupt or missing. - + Integrity verification couldn't be performed - + Firmware installation cancelled, firmware may be in a bad state or corrupted. File contents could not be checked for validity. - + Select Dumped Keys Location - + Decryption Keys install succeeded - + Decryption Keys install failed - + Orphaned Profiles Detected! - + UNEXPECTED BAD THINGS MAY HAPPEN IF YOU DON'T READ THIS!<br>Eden has detected the following save directories with no attached profile:<br>%1<br><br>The following profiles are valid:<br>%2<br><br>Click "OK" to open your save folder and fix up your profiles.<br>Hint: copy the contents of the largest or last-modified folder elsewhere, delete all orphaned profiles, and move your copied contents to the good profile.<br><br>Still confused? See the <a href='https://git.eden-emu.dev/eden-emu/eden/src/branch/master/docs/user/Orphaned.md'>help page</a>.<br> - + Really clear data? - + Important data may be lost! - + Are you REALLY sure? - + Once deleted, your data will NOT come back! Only do this if you're 100% sure you want to delete this data. - + Clearing... - + Select Export Location - + %1.zip - - - + + + Zipped Archives (*.zip) - + Exporting data. This may take a while... - + Exporting - + Exported Successfully - + Data was exported successfully. - + Export Cancelled - + Export was cancelled by the user. - + Export Failed - + Ensure you have write permissions on the targeted directory and try again. - + Select Import Location - + Import Warning - + All previous data in this directory will be deleted. Are you sure you wish to proceed? - + Importing data. This may take a while... - + Importing - + Imported Successfully - + Data was imported successfully. - + Import Cancelled - + Import was cancelled by the user. - + Import Failed - + Ensure you have read permissions on the targeted directory and try again. - + Keys not installed - + Install decryption keys and restart Eden before attempting to install firmware. - + Select Dumped Firmware Source Location - + Select Dumped Firmware ZIP - + Firmware cleanup failed - + Failed to clean up extracted firmware cache. Check write permissions in the system temp directory and try again. OS reported error: %1 diff --git a/dist/languages/id.ts b/dist/languages/id.ts index 7792d12f35..0ccf66400b 100644 --- a/dist/languages/id.ts +++ b/dist/languages/id.ts @@ -583,22 +583,12 @@ FXAA can produce a more stable picture in lower resolutions. - - Enable post-processing effects - - - - - Applies post-processing effects to the final image. - - - - + Fullscreen Mode: Mode Layar Penuh: - + The method used to render the window in fullscreen. Borderless offers the best compatibility with the on-screen keyboard that some games request for input. Exclusive fullscreen may offer better performance and better Freesync/Gsync support. @@ -607,47 +597,47 @@ Borderless menawarkan kompatibilitas terbaik dengan keyboard di layar yang dimin Layar penuh eksklusif mungkin menawarkan performa yang lebih baik dan dukungan Freesync/Gsync yang lebih baik. - + Aspect Ratio: Rasio Aspek: - + Stretches the renderer to fit the specified aspect ratio. Most games only support 16:9, so modifications are required to get other ratios. Also controls the aspect ratio of captured screenshots. - + Use persistent pipeline cache - + Allows saving shaders to storage for faster loading on following game boots. Disabling it is only intended for debugging. Memungkinkan penyimpanan shader untuk mempercepat pengambilan pada saat game berikutnya dimulai. Menonaktifkannya hanya dimaksudkan untuk debugging. - + Use asynchronous GPU emulation - + Uses an extra CPU thread for rendering. This option should always remain enabled. - + NVDEC emulation: Emulasi NVDEC: - + Specifies how videos should be decoded. It can either use the CPU or the GPU for decoding, or perform no decoding at all (black screen on videos). In most cases, GPU decoding provides the best performance. @@ -656,12 +646,12 @@ Ini dapat menggunakan CPU atau GPU untuk dekode, atau tidak melakukan dekode sam Dalam kebanyakan kasus, dekode GPU memberikan kinerja terbaik. - + ASTC Decoding Method: ASTC Metode Dekoding: - + This option controls how ASTC textures should be decoded. CPU: Use the CPU for decoding. GPU: Use the GPU's compute shaders to decode ASTC textures (recommended). @@ -670,75 +660,55 @@ stuttering but may present artifacts. - + ASTC Recompression Method: ASTC Metode Pemampatan Ulang: - + Most GPUs lack support for ASTC textures and must decompress to anintermediate format: RGBA8. BC1/BC3: The intermediate format will be recompressed to BC1 or BC3 format, saving VRAM but degrading image quality. - + Frame Pacing Mode (Vulkan only) - + Controls how the emulator manages frame pacing to reduce stuttering and make the frame rate smoother and more consistent. - + VRAM Usage Mode: Mode Penggunaan VRAM: - + Selects whether the emulator should prefer to conserve memory or make maximum usage of available video memory for performance. Aggressive mode may impact performance of other applications such as recording software. - + Skip CPU Inner Invalidation Abaikan Invalidasi Internal CPU - + Skips certain cache invalidations during memory updates, reducing CPU usage and improving latency. This may cause soft-crashes. - - GPU Readback Before NCE Invalidation - - - - - Flushes GPU buffer data back to guest memory before NCE invalidates the whole guest page, preserving it while the CPU store proceeds. - - - - - Patch Runtime NROs for NCE - - - - - Applies NCE code patches to runtime-loaded NRO modules.This is required for some games to run correctly. - - - - + VSync Mode: Mode Sinkronisasi Vertikal - + FIFO (VSync) does not drop frames or exhibit tearing but is limited by the screen refresh rate. FIFO Relaxed allows tearing as it recovers from a slow down. Mailbox can have lower latency than FIFO and does not tear but may drop frames. @@ -746,1372 +716,1410 @@ Immediate (no synchronization) presents whatever is available and can exhibit te - + Sync Memory Operations Sinkronisasi Operasi Memori - + Ensures data consistency between compute and memory operations. This option fixes issues in games, but may degrade performance. Unreal Engine 4 games often see the most significant changes thereof. - + Enable asynchronous presentation (Vulkan only) Aktifkan presentasi asinkron (hanya Vulkan) - + Slightly improves performance by moving presentation to a separate CPU thread. Meningkatkan kinerja sedikit dengan memindahkan presentasi ke thread CPU terpisah. - + Force maximum clocks (Vulkan only) Paksa jam maximum (Vulkan only) - + Runs work in the background while waiting for graphics commands to keep the GPU from lowering its clock speed. Berjalan bekerja di latar belakang sambil menunggu perintah grafis untuk mencegah GPU agar tidak menurunkan kecepatan jamnya. - + Anisotropic Filtering: Anisotropic Filtering: - + Controls the quality of texture rendering at oblique angles. Safe to set at 16x on most GPUs. - + GPU Mode: Mode GPU: - + Controls the GPU emulation mode. Most games render fine with Fast, but Accurate is still required for some. Particles tend to only render correctly with Accurate mode. - + DMA Accuracy: Akurasi DMA - + Controls the DMA read mode. Unsafe is faster, while Safe is more stable and can fix issues in some games. Default follows the GPU Accuracy setting. - + GPU Fence Behavior: - + Controls the GPU fence synchronization behavior. Immediate is the fastest option, but can introduce some issues. Balanced offers better compatibility and may fix issues in some games. Accurate further improves compatibility at the cost of some performance. -Default follows the GPU Mode setting. +Strict is the slowest option, but can fix issues that require stricter synchronization. +Default follows the GPU Accuracy setting. - + + Enable GPU buffer readback + + + + + Preserves GPU-modified data by reading it back before uploading. +Some games require this to render certain effects properly. + + + + Enable asynchronous shader compilation Gunakan kompilasi shader asinkron - + May reduce shader stutter. - + GPU Clocks - + Makes the game believe GPU work finishes faster than it does, so it stops lowering resolution and render distance to fit the Switch's clocks. - + GPU Unswizzle - + Accelerates BCn 3D texture decoding using GPU compute. Disable if experiencing crashes or graphical glitches. - + GPU Unswizzle Max Texture Size - + Sets the maximum size (MiB) for GPU-based texture unswizzling. While the GPU is faster for medium and large textures, the CPU may be more efficient for very small ones. Adjust this to find the balance between GPU acceleration and CPU overhead. - + GPU Unswizzle Stream Size - + Sets the maximum amount of texture data (in MiB) processed per frame. Higher values can reduce stutter during texture loading but may impact frame consistency. - + GPU Unswizzle Chunk Size - + Determines the number of depth slices processed in a single dispatch. Increasing this can improve throughput on high-end GPUs but may cause TDR or driver timeouts on weaker hardware. - + Use Vulkan pipeline cache Gunakan pipeline cache Vulkan - + Enables GPU vendor-specific pipeline cache. This option can improve shader loading time significantly in cases where the Vulkan driver does not store pipeline cache files internally. Memungkinkan cache pipeline spesifik vendor GPU. Opsi ini dapat meningkatkan waktu pemuatan shader secara signifikan dalam kasus di mana driver Vulkan tidak menyimpan file cache pipeline secara internal. - + Enable Compute Pipelines (Intel Vulkan Only) Aktifkan Pipa Komputasi (Hanya Intel Vulkan) - + Required by some games. This setting only exists for Intel proprietary drivers and may crash if enabled. Compute pipelines are always enabled on all other drivers. - + Enable Reactive Flushing Aktifkan Reactive Flushing - + Uses reactive flushing instead of predictive flushing, allowing more accurate memory syncing. Menggunakan pemadatan reaktif alih-alih pemadatan prediktif, memungkinkan sinkronisasi memori yang lebih akurat. - + Sync to framerate of video playback Sinkronkan dengan kecepatan pemutaran video - + Run the game at normal speed during video playback, even when the framerate is unlocked. Jalankan permainan dengan kecepatan normal selama pemutaran video, bahkan ketika framerate tidak terkunci. - + Barrier feedback loops Loop umpan balik penghalang - + Improves rendering of transparency effects in specific games. Meningkatkan rendering efek transparansi dalam game tertentu. - + Enable buffer history - + Enables access to previous buffer states. This option may improve rendering quality and performance consistency in some games. - + Fix bloom effects Perbaiki efek bloom - + Removes bloom in Burnout. - + + Enable Legacy Rescale Pass + + + + + May fix rescale issues in some games by relying on behavior from the previous implementation. +Legacy behavior workaround that fixes line artifacts on AMD and Intel GPUs, and grey texture flicker on Nvidia GPUs in Luigis Mansion 3. + + + + Extended Dynamic State - + Controls the number of features that can be used in Extended Dynamic State. Higher states allow for more features and can increase performance, but may cause additional graphical issues. - + Vertex Input Dynamic State - + Enables vertex input dynamic state feature for better quality and performance. - + Sample Shading Pencahayaan Sampel - + Allows the fragment shader to execute per sample in a multi-sampled fragment instead of once per fragment. Improves graphics quality at the cost of performance. Higher values improve quality but degrade performance. - + RNG Seed Benih RNG - + Controls the seed of the random number generator. Mainly used for speedrunning. - + Device Name Nama Perangkat - + The name of the console. - + Homebrew Args - + Command-line arguments passed to homebrew at launch (e.g. -noglsl). - + Custom RTC Date: Tanggal RTC Kustom: - + This option allows to change the clock of the console. Can be used to manipulate time in games. - + The number of seconds from the current unix time - + Language: Bahasa - + This option can be overridden when region setting is auto-select - + Region: Wilayah: - + The region of the console. - + Time Zone: Zona Waktu: - + The time zone of the console. - + Sound Output Mode: Mode keluaran suara. - + Console Mode: Mode Konsol - + Selects if the console is in Docked or Handheld mode. Games will change their resolution, details and supported controllers and depending on this setting. Setting to Handheld can help improve performance for low end systems. - + Prompt for user profile on boot - + Useful if multiple people use the same PC. - + Pause when not in focus - + Pauses emulation when focusing on other windows. - + Confirm before stopping emulation Konfirmasi sebelum menghentikan emulasi - + Overrides prompts asking to confirm stopping the emulation. Enabling it bypasses such prompts and directly exits the emulation. - + Hide mouse on inactivity Sembunyikan mouse saat tidak aktif - + Hides the mouse after 2.5s of inactivity. - + + Disable controller applet + Nonaktifkan aplikasi pengontrol + + + + Forcibly disables the use of the controller applet in emulated programs. +When a program attempts to open the controller applet, it is immediately closed. + + + + Check for updates Cek Pembaruan - + Whether or not to check for updates upon startup. - + Enable Gamemode Aktifkan Mode Permainan - + Force X11 as Graphics Backend - + Custom frontend Tampilan depan kustom - + Real applet Aplikasi nyata - - - Disabled - - - - + Never Tidak Pernah - + On Load - + Always Selalu - + CPU CPU - + GPU GPU - + CPU Asynchronous CPU sinkron - + Uncompressed (Best quality) Tidak terkompresi (Kualitas Terbaik) - + BC1 (Low quality) BC1 (Kualitas rendah) - + BC3 (Medium quality) BC3 (Kualitas sedang) - - + + Auto Otomatis - + 30 FPS - + 60 FPS - + 90 FPS - + 120 FPS - + Conservative Konservatif - + Aggressive Agresif - + Vulkan Vulkan - + OpenGL GLSL - + OpenGL GLASM (Assembly Shaders, NVIDIA Only) - + OpenGL SPIR-V (Experimental, AMD/Mesa Only) - + Null Null - + Fast Cepat - - - + + + Accurate Akurat - - - + + + Default Bawaan - + Unsafe (fast) - + Safe (stable) - + Immediate - + Balanced Seimbang - + + Strict + + + + Unsafe Berbahaya - + Paranoid (disables most optimizations) Paranoid (menonaktifkan sebagian besar optimasi) - + Debugging - + Dynarmic Dynarmic - + NCE NCE - + Borderless Windowed Layar Tanpa Batas - + Exclusive Fullscreen Layar Penuh Eksklusif - + No Video Output Tidak ada Keluaran Suara - + CPU Video Decoding Penguraian Video menggunakan CPU - + GPU Video Decoding (Default) Penguraian Video menggunakan GPU (Bawaan) - + 0.25X (180p/270p) [EXPERIMENTAL] - + 0.5X (360p/540p) [EXPERIMENTAL] 0.5X (360p/540p) [EKSPERIMENTAL] - + 0.75X (540p/810p) [EXPERIMENTAL] 0.75X (540p/810p) [EKSPERIMENTAL] - + 1X (720p/1080p) 1X (720p/1080p) - + 1.25X (900p/1350p) [EXPERIMENTAL] - + 1.5X (1080p/1620p) [EXPERIMENTAL] 1.5X (1080p/1620p) [EKSPERIMENTAL] - + 2X (1440p/2160p) 2X (1440p/2160p) - + 3X (2160p/3240p) 3X (2160p/3240p) - + 4X (2880p/4320p) 4X (2880p/4320p) - + 5X (3600p/5400p) 5X (3600p/5400p) - + 6X (4320p/6480p) 6X (4320p/6480p) - + 7X (5040p/7560p) 7X (5040p/7560p) - + 8X (5760p/8640p) 8X (5760p/8640p) - + Nearest Neighbor Nearest Neighbor - + Bilinear Biliner - + Bicubic Bikubik - + Gaussian Gaussian - + Lanczos - + ScaleForce ScaleForce - + AMD FidelityFX Super Resolution - + Area - + MMPX - + Zero-Tangent - + B-Spline - + Mitchell - + Spline-1 - + Snapdragon Game Super Resolution - + Snapdragon Game Super Resolution EdgeDir - + None Tak ada - + FXAA FXAA - + SMAA SMAA - + Default (16:9) Bawaan (16:9) - + Force 4:3 Paksa 4:3 - + Force 21:9 Paksa 21:9 - + Force 16:10 Paksa 16:10 - + Stretch to Window Regangkan ke Layar - + Automatic Otomatis - + 2x 2x - + 4x 4x - + 8x 8x - + 16x 16x - + Japanese (日本語) Jepang (日本語) - + American English Bahasa Inggris Amerika - + French (français) Prancis (français) - + German (Deutsch) Jerman (Deutsch) - + Italian (italiano) Italia (italiano) - + Spanish (español) Spanyol (español) - + Chinese Cina - + Korean (한국어) Korea (한국어) - + Dutch (Nederlands) Belanda (Nederlands) - + Portuguese (português) Portugis (português) - + Russian (Русский) Rusia (Русский) - + Taiwanese Taiwan - + British English Inggris Britania - + Canadian French Prancis Kanada - + Latin American Spanish Spanyol Amerika Latin - + Simplified Chinese Cina Sederhana - + Traditional Chinese (正體中文) Cina Tradisional (正體中文) - + Brazilian Portuguese (português do Brasil) Portugis Brazil (português do Brasil) - + Polish (polska) - + Thai (แบบไทย) - - + + Japan Jepang - + USA USA - + Europe Eropa - + Australia Australia - + China Tiongkok - + Korea Korea - + Taiwan Taiwan - + Auto (%1) Auto select time zone Auto (%1) - + Default (%1) Default time zone Bawaan (%1) - + CET CET - + CST6CDT CST6CDT - + Cuba Kuba - + EET EET - + Egypt Mesir - + Eire Éire - + EST EST - + EST5EDT EST5EDT - + GB GB - + GB-Eire GB-Éire - + GMT GMT - + GMT+0 GMT+0 - + GMT-0 GMT-0 - + GMT0 GMT0 - + Greenwich Greenwich - + Hongkong Hongkong - + HST HST - + Iceland Islandia - + Iran Iran - + Israel Israel - + Jamaica Jamaika - + Kwajalein Kwajalein - + Libya Libya - + MET MET - + MST MST - + MST7MDT MST7MDT - + Navajo Navajo - + NZ NZ - + NZ-CHAT NZ-CHAT - + Poland Polandia - + Portugal Portugal - + PRC PRC - + PST8PDT PST8PDT - + ROC ROC - + ROK ROK - + Singapore Singapura - + Turkey Turki - + UCT UCT - + Universal Universal - + UTC UTC - + W-SU W-SU - + WET WET - + Zulu Zulu - + Mono Mono - + Stereo Stereo - + Surround Surround - + 4GB DRAM (Default) 4GB DRAM (Bawaan) - + 6GB DRAM (Unsafe) 6GB DRAM (Tidak Aman) - + 8GB DRAM - + 10GB DRAM (Unsafe) 10GB DRAM (Tidak Aman) - + 12GB DRAM (Unsafe) 12GB DRAM (Tidak Aman) - + Docked Terpasang - + Handheld Jinjing + + + + Normal + + - Normal + Boost - Boost - - - - - Overclock - + Always ask (Default) Selalu tanyakan (Bawaan) - + Only if game specifies not to stop Hanya jika permainan menentukan untuk tidak berhenti - + Never ask Jangan pernah bertanya - + Very Small (16 MB) Sangat Kecil (16 MB) - + Small (32 MB) Kecil (32 MB) - + Normal (128 MB) - + Large (256 MB) - + Very Large (512 MB) - + Very Low (4 MB) - + Low (8 MB) - + Normal (16 MB) - + Medium (32 MB) - + High (64 MB) - + Very Low (32) - + Low (64) - + Normal (128) - + Medium (256) Sedang (256) - + High (512) Tinggi (512) - + + Disabled + + + + ExtendedDynamicState 1 - + ExtendedDynamicState 2 - + ExtendedDynamicState 3 - + Tree View - + Grid View @@ -3210,38 +3218,33 @@ Would you like to delete the old save data? Warna Latar: - + % FSR/SGSR sharpening percentage (e.g. 50%) - - Configure Effects... - - - - + Off Mati - + VSync Off VSync Mati - + Recommended Direkomendasikan - + On Nyala - + VSync On VSync Aktif @@ -4853,130 +4856,6 @@ Once deleted, these can NOT be recovered. Are you 100% sure you want to delete t - - ConfigurePostProcessing - - - Post-Processing Effects - - - - - Changes apply immediately while a game is running. - - - - - Enable post-processing - - - - - Preset: - - - - - Apply - - - - - Reset Values - - - - - Return every effect to the values the preset ships with. - - - - - Save As... - - - - - Save Preset - - - - - Preset name: - - - - - Clear - - - - - Remove every effect in use and deselect the preset. - - - - - Add Effect - - - - - None - - - - - No effects in use. Pick a preset and press Apply, or add effects one by one. - - - - - Custom chain. Pick a preset above and press Apply to replace it. - - - - - Active preset: %1 (modified). Press Reset Values to go back to how it ships. - - - - - Active preset: %1 - - - - - Enabled - - - - - Disabled - - - - - Reset to defaults - - - - - Effect '%1' was not found. - - - - - Effect failed to compile: -%1 - - - - - No usable ReShade FX effects were found. Place .fx files in the post_shaders folder. - - - ConfigureProfileManager @@ -6060,50 +5939,50 @@ Please go to Configure -> System -> Network and make a selection. GRenderWindow - - + + OpenGL not available! OpenGL tidak tersedia! - + OpenGL shared contexts are not supported. - + Eden has not been compiled with OpenGL support. - - - + + + Error while initializing OpenGL! Terjadi kesalahan menginisialisasi OpenGL! - + Your GPU may not support OpenGL, or you do not have the latest graphics driver. VGA anda mungkin tidak mendukung OpenGL, atau anda tidak memiliki pemacu piranti (driver) grafis terbaharu. - + Error while initializing OpenGL 4.6! Terjadi kesalahan menginisialisasi OpenGL 4.6! - + Your GPU may not support OpenGL 4.6, or you do not have the latest graphics driver.<br><br>GL Renderer:<br>%1 VGA anda mungkin tidak mendukung OpenGL 4.6, atau anda tidak memiliki pemacu piranti (driver) grafis terbaharu.<br><br>Pemuat GL:<br>%1 - + Your GPU may not support one or more required OpenGL extensions. Please ensure you have the latest graphics driver.<br><br>GL Renderer:<br>%1<br><br>Unsupported extensions:<br>%2 VGA anda mungkin tidak mendukung satu atau lebih ekstensi OpenGL. Mohon pastikan bahwa anda memiliki pemacu piranti (driver) grafis terbaharu.<br><br>Pemuat GL:<br>%1<br><br>Ekstensi yang tidak didukung:<br>%2 - + This build doesn't have OpenGL support. @@ -6923,42 +6802,42 @@ Debug Message: - + &Multiplayer - + &Tools - + Am&iibo - + Launch &Applet - + &TAS - + &Create Home Menu Shortcut - + Install &Firmware - + &Help @@ -6984,7 +6863,7 @@ Debug Message: - + &Pause &Jeda @@ -7085,176 +6964,176 @@ Debug Message: - &User Handbook - + Open &Quickstart Guide + Buka %Panduan cepat - - &Capture Screenshot + + &FAQ - &Album + &Capture Screenshot - &Set Nickname and Owner + &Album - &Delete Game Data + &Set Nickname and Owner - &Restore Amiibo + &Delete Game Data - &Format Amiibo + &Restore Amiibo - &Mii Editor + &Format Amiibo + &Mii Editor + + + + &Configure TAS... - + Configure C&urrent Game... - - + + &Start &Mulai - + &Reset - - + + R&ecord R&ekam - + Open &Controller Menu - + Install Decryption &Keys - + &Home Menu - + &Desktop - + &Application Menu - + &Root Data Folder - + &NAND Folder - + &SDMC Folder - + &Mod Folder - + &Log Folder - + From Folder - + From ZIP - + &Eden Dependencies - + &Data Manager - + &Tree View - + &Grid View - + Game Icon Size - - + + None - + Show Game &Name - - - Show &Performance Overlay - - - Post-Processing &Shaders... + Show &Performance Overlay @@ -7263,737 +7142,722 @@ Debug Message: - + Small (32x32) - + Standard (64x64) - + Large (128x128) - + Full Size (256x256) - + Broken Vulkan Installation Detected - + Vulkan initialization failed during boot. - + Running a game TRANSLATORS: This string is shown to the user to explain why yuzu needs to prevent the computer from sleeping - + Loading Web Applet... - - + + Disable Web Applet - + Disabling the web applet can lead to undefined behavior and should only be used with Super Mario 3D All-Stars. Are you sure you want to disable the web applet? (This can be re-enabled in the Debug settings.) - + The amount of shaders currently being built - + The current selected resolution scaling multiplier. - + Current emulation speed. Values higher or lower than 100% indicate emulation is running faster or slower than a Switch. - + How many frames per second the game is currently displaying. This will vary from game to game and scene to scene. - + Time taken to emulate a Switch frame, not counting framelimiting or v-sync. For full-speed emulation this should be at most 16.67 ms. - + Unmute - + Mute - + Reset Volume - - Configure Effects... - - - - + &Clear Recent Files - + &Continue - + Warning: Outdated Game Format - + You are using the deconstructed ROM directory format for this game, which is an outdated format that has been superseded by others such as NCA, NAX, XCI, or NSP. Deconstructed ROM directories lack icons, metadata, and update support.<br>For an explanation of the various Switch formats Eden supports, out our user handbook. This message will not be shown again. - - + + Error while loading ROM! - + The ROM format is not supported. - + An error occurred initializing the video core. - - This is usually caused by outdated GPU drivers. Please see the log for more details. See: <a href='https://git.eden-emu.dev/eden-emu/eden/src/branch/master/docs/user/HowToAccessLogs.md'>How to access log files</a>. + + Eden has encountered an error while running the video core. This is usually caused by outdated GPU drivers, including integrated ones. Please see the log for more details. For more information on accessing the log, please see the following page: <a href='https://yuzu-mirror.github.io/help/reference/log-files/'>How to Upload the Log File</a>. - + Error while loading ROM! %1 %1 signifies a numeric error code. - + %1<br>Please redump your files or ask on Discord/Stoat for help. %1 signifies an error string. - + An unknown error occurred. Please see the log for more details. - - + + (64-bit) - - + + (32-bit) - - + + %1 %2 %1 is the title name. %2 indicates if the title is 64-bit or 32-bit - + Closing software... - + Save Data - + Mod Data - + Error Opening %1 Folder - - + + Folder does not exist! - + Remove Installed Game Contents? - + Remove Installed Game Update? - + Remove Installed Game DLC? - + Remove Entry - + Delete OpenGL Transferable Shader Cache? - + Delete Vulkan Transferable Shader Cache? - + Delete All Transferable Shader Caches? - + Remove Custom Game Configuration? - + Remove Cache Storage? - + Remove File - + Remove Play Time Data - + Reset play time? - - + + RomFS Extraction Failed! - + There was an error copying the RomFS files or the user cancelled the operation. - + Full - + Skeleton - + Select RomFS Dump Mode - + Please select the how you would like the RomFS dumped.<br>Full will copy all of the files into the new directory while <br>skeleton will only create the directory structure. - + There is not enough free space at %1 to extract the RomFS. Please free up space or select a different dump directory at Emulation > Configure > System > Filesystem > Dump Root - + Extracting RomFS... - - + + Cancel - + RomFS Extraction Succeeded! - + The operation completed successfully. - + Error Opening %1 - + Select Directory - + Properties - + The game properties could not be loaded. - + Switch Executable (%1);;All Files (*.*) %1 is an identifier for the Switch executable file extensions. - + Load File - + Open Extracted ROM Directory - + Invalid Directory Selected - + The directory you have selected does not contain a 'main' file. - + Installable Switch File (*.nca *.nsp *.xci);;Nintendo Content Archive (*.nca);;Nintendo Submission Package (*.nsp);;NX Cartridge Image (*.xci) - + Install Files - + %n file(s) remaining - + Installing file "%1"... - - + + Install Results - + To avoid possible conflicts, we discourage users from installing base games to the NAND. Please, only use this feature to install updates and DLC. - + %n file(s) were newly installed - + %n file(s) were overwritten - + %n file(s) failed to install - + System Application - + System Archive - + System Application Update - + Firmware Package (Type A) - + Firmware Package (Type B) - + Game - + Game Update - + Game DLC - + Delta Title - + Select NCA Install Type... - + Please select the type of title you would like to install this NCA as: (In most instances, the default 'Game' is fine.) - + Failed to Install - + The title type you selected for the NCA is invalid. - + File not found - + File "%1" not found - + OK - + Function Disabled - + Compatibility list reporting is currently disabled. Check back later! - + Error opening URL - + Unable to open the URL "%1". - + TAS Recording - + Overwrite file of player 1? - + Invalid config detected - + Handheld controller can't be used on docked mode. Pro controller will be selected. - - + + Amiibo - - + + The current amiibo has been removed - + Error - - + + The current game is not looking for amiibos - + Amiibo File (%1);; All Files (*.*) - + Load Amiibo - + Error loading Amiibo data - + The selected file is not a valid amiibo - + The selected file is already on use - + An unknown error occurred - + No firmware available - + Firmware Corrupted - + Unknown applet - + Applet doesn't map to a known value. - + Record not found - + Applet not found. Please reinstall firmware. - + Capture Screenshot - + PNG Image (*.png) - + TAS state: Running %1/%2 - + TAS state: Recording %1 - + TAS state: Idle %1/%2 - + TAS State: Invalid - + &Stop Running - + Stop R&ecording - + Building: %n shader(s) - + Scale: %1x %1 is the resolution scaling factor - + Speed: %1% / %2% - + Speed: %1% - + Game: %1 FPS - + Frame: %1 ms - + NO AA - - NO FX - - - - - FX - - - - + VOLUME: MUTE - + VOLUME: %1% Volume percentage (e.g. 50%) - + Derivation Components Missing - + Decryption keys are missing. Install them now? - + Wayland Detected! - + Wayland is known to have significant performance issues and mysterious bugs. It's recommended to use X11 instead. @@ -8001,74 +7865,74 @@ Would you like to force it for future launches? - + Use X11 - + Continue with Wayland - + Don't show again - + Restart Required - + Restart Eden to apply the X11 backend. - + Slow - + Turbo - + Unlocked - + Select RomFS Dump Target - + Please select which RomFS you would like to dump. - + Are you sure you want to close Eden? - - - + + + Eden - + Are you sure you want to stop the emulation? Any unsaved progress will be lost. - + The currently running application has requested Eden to not exit. Would you like to bypass this and exit anyway? @@ -9249,275 +9113,275 @@ p, li { white-space: pre-wrap; } - This game may require firmware to function properly, and you don't have any installed. Please install firmware before launching, or press "OK" to launch anyways. + The game you are trying to launch requires firmware to boot or to get past the opening menu. Please <a href='https://yuzu-mirror.github.io/help/quickstart'>dump and install firmware</a>, or press "OK" to launch anyways. - + Installing Firmware... - - - - - + + + + + Cancel - + Firmware Install Failed - + Firmware Install Succeeded - + Firmware integrity verification failed! - - + + Verification failed for the following files: %1 - - + + Verifying integrity... - - - - Integrity verification succeeded! - - + Integrity verification succeeded! + + + + + The operation completed successfully. - - + + Integrity verification failed! - + File contents may be corrupt or missing. - + Integrity verification couldn't be performed - + Firmware installation cancelled, firmware may be in a bad state or corrupted. File contents could not be checked for validity. - + Select Dumped Keys Location - + Decryption Keys install succeeded - + Decryption Keys install failed - + Orphaned Profiles Detected! - + UNEXPECTED BAD THINGS MAY HAPPEN IF YOU DON'T READ THIS!<br>Eden has detected the following save directories with no attached profile:<br>%1<br><br>The following profiles are valid:<br>%2<br><br>Click "OK" to open your save folder and fix up your profiles.<br>Hint: copy the contents of the largest or last-modified folder elsewhere, delete all orphaned profiles, and move your copied contents to the good profile.<br><br>Still confused? See the <a href='https://git.eden-emu.dev/eden-emu/eden/src/branch/master/docs/user/Orphaned.md'>help page</a>.<br> - + Really clear data? - + Important data may be lost! - + Are you REALLY sure? - + Once deleted, your data will NOT come back! Only do this if you're 100% sure you want to delete this data. - + Clearing... - + Select Export Location - + %1.zip - - - + + + Zipped Archives (*.zip) - + Exporting data. This may take a while... - + Exporting - + Exported Successfully - + Data was exported successfully. - + Export Cancelled - + Export was cancelled by the user. - + Export Failed - + Ensure you have write permissions on the targeted directory and try again. - + Select Import Location - + Import Warning - + All previous data in this directory will be deleted. Are you sure you wish to proceed? - + Importing data. This may take a while... - + Importing - + Imported Successfully - + Data was imported successfully. - + Import Cancelled - + Import was cancelled by the user. - + Import Failed - + Ensure you have read permissions on the targeted directory and try again. - + Keys not installed - + Install decryption keys and restart Eden before attempting to install firmware. - + Select Dumped Firmware Source Location - + Select Dumped Firmware ZIP - + Firmware cleanup failed - + Failed to clean up extracted firmware cache. Check write permissions in the system temp directory and try again. OS reported error: %1 diff --git a/dist/languages/it.ts b/dist/languages/it.ts index 2cf9191129..9a94adc3f9 100644 --- a/dist/languages/it.ts +++ b/dist/languages/it.ts @@ -592,22 +592,12 @@ SMAA offre la migliore qualità. FXAA può produrre un'immagine più stabile nelle risoluzioni più basse. - - Enable post-processing effects - - - - - Applies post-processing effects to the final image. - - - - + Fullscreen Mode: Modalità schermo intero: - + The method used to render the window in fullscreen. Borderless offers the best compatibility with the on-screen keyboard that some games request for input. Exclusive fullscreen may offer better performance and better Freesync/Gsync support. @@ -616,12 +606,12 @@ Exclusive fullscreen may offer better performance and better Freesync/Gsync supp "Schermo intero esclusivo" può offrire prestazioni maggiori e un supporto migliore al Freesync/Gsync. - + Aspect Ratio: Rapporto d'aspetto: - + Stretches the renderer to fit the specified aspect ratio. Most games only support 16:9, so modifications are required to get other ratios. Also controls the aspect ratio of captured screenshots. @@ -630,36 +620,36 @@ La maggior parte dei giochi supporta solo 16:9, quindi le mod sono necessarie pe Controlla anche il rapporto d'aspetto degli screenshot. - + Use persistent pipeline cache Usa la cache persistente delle pipeline - + Allows saving shaders to storage for faster loading on following game boots. Disabling it is only intended for debugging. Permette di salvare gli shader su disco per velocizzarne il caricamento negli avvii successivi del gioco. Disabilitarla ha senso solo quando si effettua il debug. - + Use asynchronous GPU emulation Abilita l'emulazione asincrona della GPU - + Uses an extra CPU thread for rendering. This option should always remain enabled. Utilizza un thread aggiuntivo della CPU per il rendering. Quest'opzione dovrebbe sempre rimanere abilitata. - + NVDEC emulation: Emulazione NVDEC: - + Specifies how videos should be decoded. It can either use the CPU or the GPU for decoding, or perform no decoding at all (black screen on videos). In most cases, GPU decoding provides the best performance. @@ -668,12 +658,12 @@ In most cases, GPU decoding provides the best performance. Nella maggior parte dei casi, la decodifica tramite GPU fornisce prestazioni migliori. - + ASTC Decoding Method: Metodo di decodifica ASTC: - + This option controls how ASTC textures should be decoded. CPU: Use the CPU for decoding. GPU: Use the GPU's compute shaders to decode ASTC textures (recommended). @@ -685,12 +675,12 @@ GPU: Usa i compute shader della GPU per decodificare le texture ASTC (consigliat CPU (Asincrono): Usa la CPU per decodificare le texture ASTC se richiesto. Elimina lo stuttering causato dalla decodifica ma potrebbe generare artefatti visivi. - + ASTC Recompression Method: Metodo di ricompressione ASTC: - + Most GPUs lack support for ASTC textures and must decompress to anintermediate format: RGBA8. BC1/BC3: The intermediate format will be recompressed to BC1 or BC3 format, saving VRAM but degrading image quality. @@ -698,64 +688,44 @@ BC1/BC3: The intermediate format will be recompressed to BC1 or BC3 format, BC1/BC3: Il formato intermedio sarà ricompresso nel formato BC1 o BC3, risparmiando VRAM ma peggiorando la qualità visiva. - + Frame Pacing Mode (Vulkan only) - + Controls how the emulator manages frame pacing to reduce stuttering and make the frame rate smoother and more consistent. - + VRAM Usage Mode: Modalità di utilizzo della VRAM: - + Selects whether the emulator should prefer to conserve memory or make maximum usage of available video memory for performance. Aggressive mode may impact performance of other applications such as recording software. Determina se l'emulatore dovrebbe risparmiare memoria o utilizzarne il più possibile per massimizzare le prestazioni. La modalità aggressiva potrebbe impattare sulle prestazioni di altre applicazioni, come i programmi di registrazione. - + Skip CPU Inner Invalidation Salta invalidamento interno CPU - + Skips certain cache invalidations during memory updates, reducing CPU usage and improving latency. This may cause soft-crashes. Salta alcuni invalidamenti della cache durante gli aggiornamenti della memoria, riducendo l'uso della CPU e migliorando la latenza. Questo potrebbe causare soft-crash. - - GPU Readback Before NCE Invalidation - - - - - Flushes GPU buffer data back to guest memory before NCE invalidates the whole guest page, preserving it while the CPU store proceeds. - - - - - Patch Runtime NROs for NCE - - - - - Applies NCE code patches to runtime-loaded NRO modules.This is required for some games to run correctly. - - - - + VSync Mode: Modalità VSync: - + FIFO (VSync) does not drop frames or exhibit tearing but is limited by the screen refresh rate. FIFO Relaxed allows tearing as it recovers from a slow down. Mailbox can have lower latency than FIFO and does not tear but may drop frames. @@ -766,12 +736,12 @@ Mailbox può avere una latenza minore di FIFO e non ha tearing ma potrebbe perde Immediate (no sincronizzazione) mostra tutto il disponibile, quindi anche tearing. - + Sync Memory Operations Sincronizza operazioni di memoria - + Ensures data consistency between compute and memory operations. This option fixes issues in games, but may degrade performance. Unreal Engine 4 games often see the most significant changes thereof. @@ -780,159 +750,171 @@ Questa opzione dovrebbe risolvere problemi in alcuni giochi, ma potrebbe ridurre I giochi con Unreal Engine 4 sembrano essere i più colpiti. - + Enable asynchronous presentation (Vulkan only) Abilita la presentazione asincrona (solo Vulkan) - + Slightly improves performance by moving presentation to a separate CPU thread. Migliora di poco le prestazioni spostando la presentazione su un thread della CPU separato. - + Force maximum clocks (Vulkan only) Forza clock massimi (solo Vulkan) - + Runs work in the background while waiting for graphics commands to keep the GPU from lowering its clock speed. Esegue del lavoro in background durante l'attesa dei comandi grafici per evitare che la GPU diminuisca la sua velocità di clock. - + Anisotropic Filtering: Filtro anisotropico: - + Controls the quality of texture rendering at oblique angles. Safe to set at 16x on most GPUs. Controlla la qualità del rendering delle texture negli angoli obliqui. Si può utilizzare in modo sicuro al 16x su quasi tutte le GPU. - + GPU Mode: Modalità GPU: - + Controls the GPU emulation mode. Most games render fine with Fast, but Accurate is still required for some. Particles tend to only render correctly with Accurate mode. - + DMA Accuracy: Precisione DMA: - + Controls the DMA read mode. Unsafe is faster, while Safe is more stable and can fix issues in some games. Default follows the GPU Accuracy setting. - + GPU Fence Behavior: - + Controls the GPU fence synchronization behavior. Immediate is the fastest option, but can introduce some issues. Balanced offers better compatibility and may fix issues in some games. Accurate further improves compatibility at the cost of some performance. -Default follows the GPU Mode setting. +Strict is the slowest option, but can fix issues that require stricter synchronization. +Default follows the GPU Accuracy setting. - + + Enable GPU buffer readback + + + + + Preserves GPU-modified data by reading it back before uploading. +Some games require this to render certain effects properly. + + + + Enable asynchronous shader compilation Abilita la compilazione asincrona degli shader - + May reduce shader stutter. Può ridurre i fenomeni di stuttering (scatti) causati dagli shader. - + GPU Clocks - + Makes the game believe GPU work finishes faster than it does, so it stops lowering resolution and render distance to fit the Switch's clocks. - + GPU Unswizzle - + Accelerates BCn 3D texture decoding using GPU compute. Disable if experiencing crashes or graphical glitches. - + GPU Unswizzle Max Texture Size - + Sets the maximum size (MiB) for GPU-based texture unswizzling. While the GPU is faster for medium and large textures, the CPU may be more efficient for very small ones. Adjust this to find the balance between GPU acceleration and CPU overhead. - + GPU Unswizzle Stream Size - + Sets the maximum amount of texture data (in MiB) processed per frame. Higher values can reduce stutter during texture loading but may impact frame consistency. - + GPU Unswizzle Chunk Size - + Determines the number of depth slices processed in a single dispatch. Increasing this can improve throughput on high-end GPUs but may cause TDR or driver timeouts on weaker hardware. - + Use Vulkan pipeline cache Usa la cache delle pipeline di Vulkan - + Enables GPU vendor-specific pipeline cache. This option can improve shader loading time significantly in cases where the Vulkan driver does not store pipeline cache files internally. Abilita la cache delle pipeline specifica del produttore della GPU. Quest'opzione può ridurre di molto i tempi di caricamento degli shader nei casi in cui il driver Vulkan non memorizza la cache delle pipeline internamente. - + Enable Compute Pipelines (Intel Vulkan Only) Abilita le compute pipeline (solo per Vulkan su Intel) - + Required by some games. This setting only exists for Intel proprietary drivers and may crash if enabled. Compute pipelines are always enabled on all other drivers. @@ -941,181 +923,192 @@ Quest'impostazione esiste solo per i driver proprietari Intel e potrebbe fa Le compute pipelines sono sempre attivate su tutti gli altri drivers. - + Enable Reactive Flushing Abilita il flushing reattivo - + Uses reactive flushing instead of predictive flushing, allowing more accurate memory syncing. Utilizza il flushing reattivo invece di quello predittivo, al fine di ottenere una sincronizzazione della memoria più accurata. - + Sync to framerate of video playback Sincronizza il framerate a quello del video - + Run the game at normal speed during video playback, even when the framerate is unlocked. Esegue il gioco a velocità normale durante le cutscene, anche quando il framerate è sbloccato. - + Barrier feedback loops Barrier feedback loops - + Improves rendering of transparency effects in specific games. Migliora il rendering degli effetti di trasparenza in alcuni giochi. - + Enable buffer history - + Enables access to previous buffer states. This option may improve rendering quality and performance consistency in some games. - + Fix bloom effects - + Removes bloom in Burnout. - + + Enable Legacy Rescale Pass + + + + + May fix rescale issues in some games by relying on behavior from the previous implementation. +Legacy behavior workaround that fixes line artifacts on AMD and Intel GPUs, and grey texture flicker on Nvidia GPUs in Luigis Mansion 3. + + + + Extended Dynamic State Stato dinamico esteso - + Controls the number of features that can be used in Extended Dynamic State. Higher states allow for more features and can increase performance, but may cause additional graphical issues. Controlla il numero di funzionalità che possono essere usate con lo stato dinamico esteso. Gli stati più alti consentono più funzionalità e possono migliorare le prestazioni, ma possono causare ulteriori problemi grafici. - + Vertex Input Dynamic State - + Enables vertex input dynamic state feature for better quality and performance. - + Sample Shading Sample shading - + Allows the fragment shader to execute per sample in a multi-sampled fragment instead of once per fragment. Improves graphics quality at the cost of performance. Higher values improve quality but degrade performance. Permette al fragment shader di eseguire per campione in un frammento multi-campione invece che una volta per frammento. Migliora la qualità grafica a scapito delle prestazioni. Alti valori migliorano la qualità ma peggiorano le prestazioni. - + RNG Seed Seed RNG - + Controls the seed of the random number generator. Mainly used for speedrunning. Controlla il seme del generatore di numeri casuali. Principalmente utilizzato per le speedrun. - + Device Name Nome del dispositivo - + The name of the console. Il nome della console. - + Homebrew Args - + Command-line arguments passed to homebrew at launch (e.g. -noglsl). - + Custom RTC Date: Data RTC personalizzata: - + This option allows to change the clock of the console. Can be used to manipulate time in games. Quest'opzione permette di modificare l'orologio della console. Può essere usato per manipolare il tempo nei giochi. - + The number of seconds from the current unix time Il numero di secondi dal tempo Unix attuale - + Language: Lingua: - + This option can be overridden when region setting is auto-select Può essere rimpiazzato se il fuso orario della Regione è impostato su Auto - + Region: Regione: - + The region of the console. La regione della console. - + Time Zone: Fuso orario: - + The time zone of the console. Il fuso orario della console. - + Sound Output Mode: Modalità di output del suono: - + Console Mode: Modalità console: - + Selects if the console is in Docked or Handheld mode. Games will change their resolution, details and supported controllers and depending on this setting. Setting to Handheld can help improve performance for low end systems. @@ -1124,1026 +1117,1042 @@ I giochi ne terranno conto e modificheranno la risoluzione, i dettagli e i contr Impostare l'opzione su "Portatile" può aiutare a migliorare le prestazioni sui sistemi meno potenti. - + Prompt for user profile on boot Scegli il profilo utente all'avvio - + Useful if multiple people use the same PC. Utile se più persone utilizzano lo stesso PC. - + Pause when not in focus Metti in pausa quando la finestra non è in primo piano - + Pauses emulation when focusing on other windows. Mette in pausa l'emulazione quando altre finestre sono in primo piano. - + Confirm before stopping emulation Chiedi conferma prima di arrestare l'emulazione - + Overrides prompts asking to confirm stopping the emulation. Enabling it bypasses such prompts and directly exits the emulation. Sovrascrive le richieste di conferma per fermare l'emulazione. Abilitarla bypassa queste richieste e l'emulazione cesserà immediatamente. - + Hide mouse on inactivity Nascondi il puntatore del mouse se inattivo - + Hides the mouse after 2.5s of inactivity. Nasconde il mouse dopo 2,5 secondi di inattività. - + + Disable controller applet + Disabilita l'applet controller + + + + Forcibly disables the use of the controller applet in emulated programs. +When a program attempts to open the controller applet, it is immediately closed. + Disabilita forzatamente l'uso dell'applet del controller nei programmi emulati. +Quando un programma proverà ad aprire l'applet del controller, quest'ultimo verrà immediatamente chiuso. + + + Check for updates Controlla la presenza di aggiornamenti - + Whether or not to check for updates upon startup. Determina se controllare o meno la presenza di aggiornamenti all'avvio. - + Enable Gamemode Abilita Gamemode - + Force X11 as Graphics Backend Forza l'uso del back-end grafico X11 - + Custom frontend Frontend personalizzato - + Real applet Applet reale - - - Disabled - Disabilitato - - - + Never Mai - + On Load Al caricamento - + Always Sempre - + CPU CPU - + GPU GPU - + CPU Asynchronous CPU (Asincrono) - + Uncompressed (Best quality) Nessuna compressione (qualità migliore) - + BC1 (Low quality) BC1 (qualità bassa) - + BC3 (Medium quality) BC3 (qualità media) - - + + Auto Automatico - + 30 FPS 30 FPS - + 60 FPS 60 FPS - + 90 FPS 90 FPS - + 120 FPS 120 FPS - + Conservative Conservativa - + Aggressive Aggressiva - + Vulkan Vulkan - + OpenGL GLSL OpenGL GLSL - + OpenGL GLASM (Assembly Shaders, NVIDIA Only) OpenGL GLASM (shader assembly, solo NVIDIA) - + OpenGL SPIR-V (Experimental, AMD/Mesa Only) OpenGL SPIR-V (sperimentale, solo AMD/MESA) - + Null Nullo - + Fast Veloce - - - + + + Accurate Accurata - - - + + + Default Predefinito - + Unsafe (fast) Non sicuro (veloce) - + Safe (stable) Sicuro (stabile) - + Immediate - + Balanced Bilanciata - + + Strict + + + + Unsafe Non sicura - + Paranoid (disables most optimizations) Paranoica (disabilita la maggior parte delle ottimizzazioni) - + Debugging Debug - + Dynarmic Dynarmic - + NCE NCE - + Borderless Windowed Finestra senza bordi - + Exclusive Fullscreen Schermo intero esclusivo - + No Video Output Nessun output video - + CPU Video Decoding Decodifica video CPU - + GPU Video Decoding (Default) Decodifica video GPU (predefinita) - + 0.25X (180p/270p) [EXPERIMENTAL] 0.25X (180p/270p) [SPERIMENTALE] - + 0.5X (360p/540p) [EXPERIMENTAL] 0.5X (360p/540p) [SPERIMENTALE] - + 0.75X (540p/810p) [EXPERIMENTAL] 0.75X (540p/810p) [SPERIMENTALE] - + 1X (720p/1080p) 1X (720p/1080p) - + 1.25X (900p/1350p) [EXPERIMENTAL] 1.25X (900p/1350p) [SPERIMENTALE] - + 1.5X (1080p/1620p) [EXPERIMENTAL] 1.5X (1080p/1620p) [SPERIMENTALE] - + 2X (1440p/2160p) 2X (1440p/2160p) - + 3X (2160p/3240p) 3X (2160p/3240p) - + 4X (2880p/4320p) 4X (2880p/4320p) - + 5X (3600p/5400p) 5X (3600p/5400p) - + 6X (4320p/6480p) 6X (4320p/6480p) - + 7X (5040p/7560p) 7X (5040p/7560p) - + 8X (5760p/8640p) 8X (5760p/8640p) - + Nearest Neighbor Nearest neighbor - + Bilinear Bilineare - + Bicubic Bicubico - + Gaussian Gaussiano - + Lanczos Lanczos - + ScaleForce ScaleForce - + AMD FidelityFX Super Resolution AMD FidelityFX Super Resolution - + Area Area - + MMPX MMPX - + Zero-Tangent Zero-Tangent - + B-Spline B-Spline - + Mitchell Mitchell - + Spline-1 Spline-1 - + Snapdragon Game Super Resolution - + Snapdragon Game Super Resolution EdgeDir - + None Nessuna - + FXAA FXAA - + SMAA SMAA - + Default (16:9) Predefinito (16:9) - + Force 4:3 Forza 4:3 - + Force 21:9 Forza 21:9 - + Force 16:10 Forza 16:10 - + Stretch to Window Allunga a finestra - + Automatic Automatico - + 2x 2x - + 4x 4x - + 8x 8x - + 16x 16x - + Japanese (日本語) Giapponese (日本語) - + American English Inglese americano - + French (français) Francese (français) - + German (Deutsch) Tedesco (Deutsch) - + Italian (italiano) Italiano - + Spanish (español) Spagnolo (español) - + Chinese Cinese - + Korean (한국어) Coreano (한국어) - + Dutch (Nederlands) Olandese (Nederlands) - + Portuguese (português) Portoghese (português) - + Russian (Русский) Russo (Русский) - + Taiwanese Taiwanese - + British English Inglese britannico - + Canadian French Francese canadese - + Latin American Spanish Spagnolo latino-americano - + Simplified Chinese Cinese semplificato - + Traditional Chinese (正體中文) Cinese tradizionale (正體中文) - + Brazilian Portuguese (português do Brasil) Portoghese brasiliano (português do Brasil) - + Polish (polska) Polacco (polska) - + Thai (แบบไทย) Thailandese (แบบไทย) - - + + Japan Giappone - + USA USA - + Europe Europa - + Australia Australia - + China Cina - + Korea Corea - + Taiwan Taiwan - + Auto (%1) Auto select time zone Automatico (%1) - + Default (%1) Default time zone Predefinito (%1) - + CET CET - + CST6CDT CST6CDT - + Cuba Cuba - + EET EET - + Egypt Egitto - + Eire Eire - + EST EST - + EST5EDT EST5EDT - + GB GB - + GB-Eire GB-Eire - + GMT GMT - + GMT+0 GMT+0 - + GMT-0 GMT-0 - + GMT0 GMT0 - + Greenwich Greenwich - + Hongkong Hongkong - + HST HST - + Iceland Islanda - + Iran Iran - + Israel Israele - + Jamaica Giamaica - + Kwajalein Kwajalein - + Libya Libia - + MET MET - + MST MST - + MST7MDT MST7MDT - + Navajo Navajo - + NZ NZ - + NZ-CHAT NZ-CHAT - + Poland Polonia - + Portugal Portogallo - + PRC PRC - + PST8PDT PST8PDT - + ROC ROC - + ROK ROK - + Singapore Singapore - + Turkey Turchia - + UCT UCT - + Universal Universale - + UTC UTC - + W-SU W-SU - + WET WET - + Zulu Zulu - + Mono Mono - + Stereo Stereo - + Surround Surround - + 4GB DRAM (Default) 4GB DRAM (Predefinito) - + 6GB DRAM (Unsafe) 6GB DRAM (Non sicuro) - + 8GB DRAM 8GB DRAM - + 10GB DRAM (Unsafe) 10GB DRAM (Non sicuro) - + 12GB DRAM (Unsafe) 12GB DRAM (Non sicuro) - + Docked Dock - + Handheld Portatile + + + + Normal + + - Normal + Boost - Boost - - - - - Overclock - + Always ask (Default) Chiedi sempre (Predefinito) - + Only if game specifies not to stop Solo se il gioco richiede di non essere arrestato - + Never ask Non chiedere mai - + Very Small (16 MB) Molto piccola (16 MB) - + Small (32 MB) Piccola (32 MB) - + Normal (128 MB) Normale (128 MB) - + Large (256 MB) Grande (256 MB) - + Very Large (512 MB) Molto grande (512 MB) - + Very Low (4 MB) Molto bassa (4 MB) - + Low (8 MB) Bassa (8 MB) - + Normal (16 MB) Normale (16 MB) - + Medium (32 MB) Media (32 MB) - + High (64 MB) Alta (64 MB) - + Very Low (32) Molto basso (32) - + Low (64) Basso (64) - + Normal (128) Normale (128) - + Medium (256) Medio (256) - + High (512) Alto (512) - + + Disabled + Disabilitato + + + ExtendedDynamicState 1 Stato dinamico esteso 1 - + ExtendedDynamicState 2 Stato dinamico esteso 2 - + ExtendedDynamicState 3 Stato dinamico esteso 3 - + Tree View Vista ad albero - + Grid View Vista a griglia @@ -3253,38 +3262,33 @@ Vuoi cancellare i dati precedenti? Colore dello sfondo: - + % FSR/SGSR sharpening percentage (e.g. 50%) - - Configure Effects... - - - - + Off Disattivato - + VSync Off VSync disattivato - + Recommended Consigliata - + On Attivato - + VSync On VSync attivato @@ -4906,130 +4910,6 @@ Una volta rimosse, non potranno più essere recuperate. Sei assolutamente sicuro &Apri nel gestore file - - ConfigurePostProcessing - - - Post-Processing Effects - - - - - Changes apply immediately while a game is running. - - - - - Enable post-processing - - - - - Preset: - - - - - Apply - - - - - Reset Values - - - - - Return every effect to the values the preset ships with. - - - - - Save As... - - - - - Save Preset - - - - - Preset name: - - - - - Clear - - - - - Remove every effect in use and deselect the preset. - - - - - Add Effect - - - - - None - - - - - No effects in use. Pick a preset and press Apply, or add effects one by one. - - - - - Custom chain. Pick a preset above and press Apply to replace it. - - - - - Active preset: %1 (modified). Press Reset Values to go back to how it ships. - - - - - Active preset: %1 - - - - - Enabled - - - - - Disabled - - - - - Reset to defaults - - - - - Effect '%1' was not found. - - - - - Effect failed to compile: -%1 - - - - - No usable ReShade FX effects were found. Place .fx files in the post_shaders folder. - - - ConfigureProfileManager @@ -6117,50 +5997,50 @@ Vai su Configura -> Sistema -> Rete e selezionane una. GRenderWindow - - + + OpenGL not available! OpenGL non disponibile! - + OpenGL shared contexts are not supported. Gli shared context di OpenGL non sono supportati. - + Eden has not been compiled with OpenGL support. Eden non è stato compilato con il supporto a OpenGL. - - - + + + Error while initializing OpenGL! Errore durante l'inizializzazione di OpenGL! - + Your GPU may not support OpenGL, or you do not have the latest graphics driver. La tua GPU potrebbe non supportare OpenGL, o non hai installato l'ultima versione dei driver video. - + Error while initializing OpenGL 4.6! Errore durante l'inizializzazione di OpenGL 4.6! - + Your GPU may not support OpenGL 4.6, or you do not have the latest graphics driver.<br><br>GL Renderer:<br>%1 La tua GPU potrebbe non supportare OpenGL 4.6, o non hai installato l'ultima versione dei driver video.<br><br>Renderer GL:<br>%1 - + Your GPU may not support one or more required OpenGL extensions. Please ensure you have the latest graphics driver.<br><br>GL Renderer:<br>%1<br><br>Unsupported extensions:<br>%2 La tua GPU potrebbe non supportare una o più estensioni OpenGL richieste. Assicurati di aver installato i driver video più recenti.<br><br>Renderer GL:<br>%1<br><br>Estensioni non supportate:<br>%2 - + This build doesn't have OpenGL support. @@ -6982,42 +6862,42 @@ Messaggio debug: Ripristina le dimensioni della finestra a 1080p - + &Multiplayer &Multigiocatore - + &Tools &Strumenti - + Am&iibo Am&iibo - + Launch &Applet Avvia &applet - + &TAS &TAS - + &Create Home Menu Shortcut &Crea scorciatoia per il menù Home - + Install &Firmware Installa &firmware - + &Help &Aiuto @@ -7043,7 +6923,7 @@ Messaggio debug: - + &Pause &Pausa @@ -7144,583 +7024,578 @@ Messaggio debug: - &User Handbook - + Open &Quickstart Guide + Apri la &guida introduttiva - + + &FAQ + &Domande frequenti + + + &Capture Screenshot Cattura schermo - + &Album &Album - + &Set Nickname and Owner &Imposta nickname e proprietario - + &Delete Game Data &Rimuovi i dati di gioco - + &Restore Amiibo &Ripristina gli Amiibo - + &Format Amiibo &Formatta gli Amiibo - + &Mii Editor Editor &Mii - + &Configure TAS... &Configura TAS... - + Configure C&urrent Game... Configura il gioco in uso... - - + + &Start &Avvia - + &Reset &Reimposta - - + + R&ecord R&egistra - + Open &Controller Menu Apri il menù dei &controller - + Install Decryption &Keys Installa le &chiavi di crittografia - + &Home Menu Menù &Home - + &Desktop &Desktop - + &Application Menu &Menù delle applicazioni - + &Root Data Folder Cartella &principale dei dati - + &NAND Folder Cartella &NAND - + &SDMC Folder Cartella &SDMC - + &Mod Folder Cartella delle &mod - + &Log Folder Cartella dei &log - + From Folder Da una cartella - + From ZIP Da un file ZIP - + &Eden Dependencies &Dipendenze di Eden - + &Data Manager Gestione &dati - + &Tree View Vista ad &albero - + &Grid View Vista a &griglia - + Game Icon Size Dimensione delle icone dei giochi - - + + None Nessuno - + Show Game &Name Mostra i nomi dei giochi - + Show &Performance Overlay Mostra &prestazioni in sovrimpressione - - - Post-Processing &Shaders... - - &Carousel View - + Small (32x32) Piccola (32x32) - + Standard (64x64) Normale (64x64) - + Large (128x128) Grande (128x128) - + Full Size (256x256) Intera (256x256) - + Broken Vulkan Installation Detected Rilevata installazione di Vulkan non funzionante - + Vulkan initialization failed during boot. L'inizializzazione di Vulkan è fallita durante l'avvio. - + Running a game TRANSLATORS: This string is shown to the user to explain why yuzu needs to prevent the computer from sleeping Gioco in esecuzione - + Loading Web Applet... Caricamento dell'applet web... - - + + Disable Web Applet Disabilita l'applet web - + Disabling the web applet can lead to undefined behavior and should only be used with Super Mario 3D All-Stars. Are you sure you want to disable the web applet? (This can be re-enabled in the Debug settings.) Disabilitare l'applet web potrebbe causare dei comportamenti indesiderati e andrebbe fatto solo con Super Mario 3D All-Stars. Sei sicuro di voler procedere? (Puoi riabilitarlo quando vuoi nelle impostazioni di debug.) - + The amount of shaders currently being built Il numero di shader in fase di compilazione - + The current selected resolution scaling multiplier. Il moltiplicatore attuale della risoluzione. - + Current emulation speed. Values higher or lower than 100% indicate emulation is running faster or slower than a Switch. Velocità attuale dell'emulazione. Valori più alti o più bassi di 100% indicano che l'emulazione sta funzionando più velocemente o lentamente rispetto a una Switch. - + How many frames per second the game is currently displaying. This will vary from game to game and scene to scene. Il numero di fotogrammi al secondo che il gioco sta attualmente renderizzando. Può variare in base al gioco e alla situazione. - + Time taken to emulate a Switch frame, not counting framelimiting or v-sync. For full-speed emulation this should be at most 16.67 ms. Tempo necessario per emulare un fotogramma della Switch, senza tenere conto del limite al framerate o del V-Sync. Per un'emulazione alla massima velocità, il valore non dovrebbe essere superiore a 16.67 ms. - + Unmute Riattiva - + Mute Silenzia - + Reset Volume Reimposta volume - - Configure Effects... - - - - + &Clear Recent Files &Cancella i file recenti - + &Continue &Continua - + Warning: Outdated Game Format Attenzione: Formato del gioco obsoleto - + You are using the deconstructed ROM directory format for this game, which is an outdated format that has been superseded by others such as NCA, NAX, XCI, or NSP. Deconstructed ROM directories lack icons, metadata, and update support.<br>For an explanation of the various Switch formats Eden supports, out our user handbook. This message will not be shown again. Stai usando una cartella contenente una ROM decostruita per avviare questo gioco, che è un formato obsoleto e sostituito da NCA, NAX, XCI o NSP. Le ROM decostruite non hanno icone né metadati e non supportano gli aggiornamenti.<br>Per una spiegazione sui vari formati della console Switch supportati da Eden, consulta il manuale utente. Non riceverai di nuovo questo avviso. - - + + Error while loading ROM! Errore nel caricamento della ROM! - + The ROM format is not supported. Il formato della ROM non è supportato. - + An error occurred initializing the video core. Errore durante l'inizializzazione del componente video di base - - This is usually caused by outdated GPU drivers. Please see the log for more details. See: <a href='https://git.eden-emu.dev/eden-emu/eden/src/branch/master/docs/user/HowToAccessLogs.md'>How to access log files</a>. - + + Eden has encountered an error while running the video core. This is usually caused by outdated GPU drivers, including integrated ones. Please see the log for more details. For more information on accessing the log, please see the following page: <a href='https://yuzu-mirror.github.io/help/reference/log-files/'>How to Upload the Log File</a>. + Eden ha riscontrato un errore durante l'esecuzione del componente video di base. Di solito questo errore è causato da driver GPU obsoleti, compresi quelli integrati. Consulta il log per maggiori dettagli. Per informazioni su come accedere al log, visita <a href='https://yuzu-mirror.github.io/help/reference/log-files/'>questa pagina</a>. - + Error while loading ROM! %1 %1 signifies a numeric error code. Errore nel caricamento della ROM! %1 - + %1<br>Please redump your files or ask on Discord/Stoat for help. %1 signifies an error string. %1<br>Esegui un nuovo dump dei tuoi file o chiedi aiuto su Discord/Stoat. - + An unknown error occurred. Please see the log for more details. Si è verificato un errore sconosciuto. Consulta il log per maggiori dettagli. - - + + (64-bit) (64 bit) - - + + (32-bit) (32 bit) - - + + %1 %2 %1 is the title name. %2 indicates if the title is 64-bit or 32-bit %1 %2 - + Closing software... Chiusura del software in corso... - + Save Data Dati di salvataggio - + Mod Data Dati delle mod - + Error Opening %1 Folder Impossibile aprire la cartella %1 - - + + Folder does not exist! La cartella non esiste! - + Remove Installed Game Contents? Rimuovere il contenuto del gioco installato? - + Remove Installed Game Update? Rimuovere l'aggiornamento installato? - + Remove Installed Game DLC? Rimuovere il DLC installato? - + Remove Entry Rimuovi voce - + Delete OpenGL Transferable Shader Cache? Vuoi rimuovere la cache trasferibile degli shader OpenGL? - + Delete Vulkan Transferable Shader Cache? Vuoi rimuovere la cache trasferibile degli shader Vulkan? - + Delete All Transferable Shader Caches? Vuoi rimuovere tutte le cache trasferibili degli shader? - + Remove Custom Game Configuration? Rimuovere la configurazione personalizzata del gioco? - + Remove Cache Storage? Rimuovere la cache del gioco? - + Remove File Rimuovi file - + Remove Play Time Data Reimposta il tempo di gioco - + Reset play time? Vuoi reimpostare il tempo di gioco? - - + + RomFS Extraction Failed! Estrazione RomFS fallita! - + There was an error copying the RomFS files or the user cancelled the operation. Si è verificato un errore durante la copia dei file del RomFS o l'operazione è stata annullata dall'utente. - + Full Completa - + Skeleton Cartelle - + Select RomFS Dump Mode Seleziona la modalità di estrazione del RomFS - + Please select the how you would like the RomFS dumped.<br>Full will copy all of the files into the new directory while <br>skeleton will only create the directory structure. Seleziona come vorresti estrarre il RomFS. <br>La modalità Completa copierà tutti i file in una nuova cartella mentre<br>la modalità Cartelle creerà solamente la struttura delle cartelle. - + There is not enough free space at %1 to extract the RomFS. Please free up space or select a different dump directory at Emulation > Configure > System > Filesystem > Dump Root Non c'è abbastanza spazio disponibile in %1 per estrarre il RomFS. Libera lo spazio o seleziona una cartella di estrazione diversa in Emulazione > Configura > Sistema > File system > Cartella di estrazione - + Extracting RomFS... Estrazione RomFS in corso... - - + + Cancel Annulla - + RomFS Extraction Succeeded! Estrazione RomFS riuscita! - + The operation completed successfully. L'operazione è stata completata con successo. - + Error Opening %1 Impossibile aprire %1 - + Select Directory Seleziona cartella - + Properties Proprietà - + The game properties could not be loaded. Non è stato possibile caricare le proprietà del gioco. - + Switch Executable (%1);;All Files (*.*) %1 is an identifier for the Switch executable file extensions. Eseguibile Switch (%1);;Tutti i file (*.*) - + Load File Carica file - + Open Extracted ROM Directory Apri la cartella della ROM estratta - + Invalid Directory Selected Cartella selezionata non valida - + The directory you have selected does not contain a 'main' file. La cartella che hai selezionato non contiene un file "main". - + Installable Switch File (*.nca *.nsp *.xci);;Nintendo Content Archive (*.nca);;Nintendo Submission Package (*.nsp);;NX Cartridge Image (*.xci) File Switch installabili (*.nca *.nsp *.xci);;Nintendo Content Archive (*.nca);;Nintendo Submission Package (*.nsp);;NX Cartridge Image (*.xci) - + Install Files Installa file - + %n file(s) remaining %n file rimanente%n di file rimanenti%n file rimanenti - + Installing file "%1"... Installazione del file "%1"... - - + + Install Results Risultati dell'installazione - + To avoid possible conflicts, we discourage users from installing base games to the NAND. Please, only use this feature to install updates and DLC. Per evitare possibli conflitti, sconsigliamo di installare i giochi base su NAND. Usa questa funzione solo per installare aggiornamenti e DLC. - + %n file(s) were newly installed %n nuovo file è stato installato @@ -7729,7 +7604,7 @@ Usa questa funzione solo per installare aggiornamenti e DLC. - + %n file(s) were overwritten %n file è stato sovrascritto @@ -7738,7 +7613,7 @@ Usa questa funzione solo per installare aggiornamenti e DLC. - + %n file(s) failed to install %n file non è stato installato a causa di errori @@ -7747,324 +7622,314 @@ Usa questa funzione solo per installare aggiornamenti e DLC. - + System Application Applicazione di sistema - + System Archive Archivio di sistema - + System Application Update Aggiornamento di un'applicazione di sistema - + Firmware Package (Type A) Pacchetto firmware (tipo A) - + Firmware Package (Type B) Pacchetto firmware (tipo B) - + Game Gioco - + Game Update Aggiornamento di gioco - + Game DLC DLC - + Delta Title Titolo delta - + Select NCA Install Type... Seleziona il tipo di installazione NCA... - + Please select the type of title you would like to install this NCA as: (In most instances, the default 'Game' is fine.) Seleziona il tipo del file NCA da installare: (Nella maggior parte dei casi, il valore predefinito "Gioco" va bene) - + Failed to Install Installazione fallita - + The title type you selected for the NCA is invalid. Il tipo che hai selezionato per il file NCA non è valido. - + File not found File non trovato - + File "%1" not found File "%1" non trovato - + OK OK - + Function Disabled Funzionalità disabilitata - + Compatibility list reporting is currently disabled. Check back later! La segnalazione della compatibilità è al momento disabilitata. Torna a controllare più avanti! - + Error opening URL Impossibile aprire l'URL - + Unable to open the URL "%1". Non è stato possibile aprire l'URL "%1". - + TAS Recording Registrazione TAS - + Overwrite file of player 1? Vuoi sovrascrivere il file del giocatore 1? - + Invalid config detected Rilevata configurazione non valida - + Handheld controller can't be used on docked mode. Pro controller will be selected. Il controller portatile non può essere utilizzato in modalità dock. Verrà selezionato il controller Pro. - - + + Amiibo Amiibo - - + + The current amiibo has been removed L'Amiibo corrente è stato rimosso - + Error Errore - - + + The current game is not looking for amiibos Il gioco in uso non è alla ricerca di Amiibo - + Amiibo File (%1);; All Files (*.*) File Amiibo (%1);; Tutti i file (*.*) - + Load Amiibo Carica Amiibo - + Error loading Amiibo data Impossibile caricare i dati dell'Amiibo - + The selected file is not a valid amiibo Il file selezionato non è un Amiibo valido - + The selected file is already on use Il file selezionato è già in uso - + An unknown error occurred Si è verificato un errore sconosciuto - + No firmware available Nessun firmware disponibile - + Firmware Corrupted Firmware corrotto - + Unknown applet Applet sconosciuto - + Applet doesn't map to a known value. L'applet non è associato a un valore noto. - + Record not found Non trovato - + Applet not found. Please reinstall firmware. Applet non trovato. Reinstalla il firmware. - + Capture Screenshot Cattura screenshot - + PNG Image (*.png) Immagine PNG (*.png) - + TAS state: Running %1/%2 Stato TAS: In esecuzione (%1/%2) - + TAS state: Recording %1 Stato TAS: Registrazione in corso (%1) - + TAS state: Idle %1/%2 Stato TAS: In attesa (%1/%2) - + TAS State: Invalid Stato TAS: Non valido - + &Stop Running &Interrompi esecuzione - + Stop R&ecording Interrompi r&egistrazione - + Building: %n shader(s) Compilazione di %n shaderCompilazione di %n shaderCompilazione di %n shader - + Scale: %1x %1 is the resolution scaling factor Risoluzione: %1x - + Speed: %1% / %2% Velocità: %1% / %2% - + Speed: %1% Velocità: %1% - + Game: %1 FPS Gioco: %1 FPS - + Frame: %1 ms Frame: %1 ms - + NO AA NO AA - - NO FX - - - - - FX - - - - + VOLUME: MUTE VOLUME: MUTO - + VOLUME: %1% Volume percentage (e.g. 50%) VOLUME: %1% - + Derivation Components Missing Componenti di derivazione mancanti - + Decryption keys are missing. Install them now? Chiavi di crittografia mancanti. Vuoi installarle ora? - + Wayland Detected! Wayland rilevato! - + Wayland is known to have significant performance issues and mysterious bugs. It's recommended to use X11 instead. @@ -8075,74 +7940,74 @@ Si consiglia invece di usare X11. Vuoi forzare l'uso di quest'ultimo per i prossimi avvii? - + Use X11 Usa X11 - + Continue with Wayland Continua con Wayland - + Don't show again Non mostrare di nuovo - + Restart Required Riavvio richiesto - + Restart Eden to apply the X11 backend. Riavvia Eden per usare il back-end X11. - + Slow Lento - + Turbo Turbo - + Unlocked Sbloccato - + Select RomFS Dump Target Seleziona RomFS da estrarre - + Please select which RomFS you would like to dump. Seleziona quale RomFS vorresti estrarre. - + Are you sure you want to close Eden? Sei sicuro di voler uscire da Eden? - - - + + + Eden Eden - + Are you sure you want to stop the emulation? Any unsaved progress will be lost. Sei sicuro di voler arrestare l'emulazione? Tutti i progressi non salvati verranno perduti. - + The currently running application has requested Eden to not exit. Would you like to bypass this and exit anyway? @@ -9332,41 +9197,41 @@ p, li { white-space: pre-wrap; } - This game may require firmware to function properly, and you don't have any installed. Please install firmware before launching, or press "OK" to launch anyways. - + The game you are trying to launch requires firmware to boot or to get past the opening menu. Please <a href='https://yuzu-mirror.github.io/help/quickstart'>dump and install firmware</a>, or press "OK" to launch anyways. + Il gioco che stai cercando di avviare richiede il firmware per poter partire o per superare il menù iniziale. <a href='https://yuzu-mirror.github.io/help/quickstart'>Esegui il dump del firmware e installalo</a>, o premi "OK" per continuare lo stesso. - + Installing Firmware... Installazione del firmware in corso... - - - - - + + + + + Cancel Annulla - + Firmware Install Failed Installazione del firmware fallita - + Firmware Install Succeeded Installazione del firmware riuscita - + Firmware integrity verification failed! Verifica dell'integrità del firmware fallita! - - + + Verification failed for the following files: %1 @@ -9375,235 +9240,235 @@ p, li { white-space: pre-wrap; } %1 - - + + Verifying integrity... Verifica dell'integrità in corso... - - + + Integrity verification succeeded! Verifica dell'integrità riuscita! - - + + The operation completed successfully. L'operazione è stata completata con successo. - - + + Integrity verification failed! Verifica dell'integrità fallita! - + File contents may be corrupt or missing. I contenuti dei file potrebbero essere corrotti o mancanti. - + Integrity verification couldn't be performed Impossibile effettuare la verifica dell'integrità - + Firmware installation cancelled, firmware may be in a bad state or corrupted. File contents could not be checked for validity. Installazione del firmware annullata, il firmware potrebbe essere corrotto o in cattivo stato. Non è stato possibile controllare la validità dei contenuti dei file. - + Select Dumped Keys Location Seleziona il percorso delle chiavi estratte - + Decryption Keys install succeeded Installazione delle chiavi di crittografia riuscita - + Decryption Keys install failed Installazione delle chiavi di crittografia fallita - + Orphaned Profiles Detected! Rilevati profili scollegati! - + UNEXPECTED BAD THINGS MAY HAPPEN IF YOU DON'T READ THIS!<br>Eden has detected the following save directories with no attached profile:<br>%1<br><br>The following profiles are valid:<br>%2<br><br>Click "OK" to open your save folder and fix up your profiles.<br>Hint: copy the contents of the largest or last-modified folder elsewhere, delete all orphaned profiles, and move your copied contents to the good profile.<br><br>Still confused? See the <a href='https://git.eden-emu.dev/eden-emu/eden/src/branch/master/docs/user/Orphaned.md'>help page</a>.<br> - + Really clear data? Eliminare i dati? - + Important data may be lost! Potresti perdere dei dati importanti! - + Are you REALLY sure? Sei DAVVERO sicuro? - + Once deleted, your data will NOT come back! Only do this if you're 100% sure you want to delete this data. Una volta eliminati, i tuoi dati NON potranno essere ripristinati! Procedi solo se sei assolutamente sicuro di voler eliminare questi dati. - + Clearing... Eliminazione in corso... - + Select Export Location Scegli dove esportare i dati - + %1.zip %1.zip - - - + + + Zipped Archives (*.zip) Archivi compressi (*.zip) - + Exporting data. This may take a while... Esportazione dei dati in corso. Potrebbe richiedere un po' di tempo... - + Exporting Esportazione in corso - + Exported Successfully Esportazione completata - + Data was exported successfully. I dati sono stati esportati con successo. - + Export Cancelled Esportazione annullata - + Export was cancelled by the user. L'esportazione è stata annullata dall'utente. - + Export Failed Esportazione fallita - + Ensure you have write permissions on the targeted directory and try again. Assicurati di disporre dei permessi di scrittura nella cartella selezionata e poi riprova. - + Select Import Location Seleziona il file da importare - + Import Warning Attenzione - + All previous data in this directory will be deleted. Are you sure you wish to proceed? Tutti i dati già presenti in questa cartella verranno eliminati. Sei sicuro di voler procedere? - + Importing data. This may take a while... Importazione dei dati in corso. Potrebbe richiedere un po' di tempo... - + Importing Importazione in corso - + Imported Successfully Importazione completata - + Data was imported successfully. I dati sono stati importati con successo. - + Import Cancelled Importazione annullata - + Import was cancelled by the user. L'importazione è stata annullata dall'utente. - + Import Failed Importazione fallita - + Ensure you have read permissions on the targeted directory and try again. Assicurati di disporre dei permessi di lettura nella cartella selezionata e poi riprova. - + Keys not installed - + Install decryption keys and restart Eden before attempting to install firmware. - + Select Dumped Firmware Source Location - + Select Dumped Firmware ZIP - + Firmware cleanup failed - + Failed to clean up extracted firmware cache. Check write permissions in the system temp directory and try again. OS reported error: %1 diff --git a/dist/languages/ja_JP.ts b/dist/languages/ja_JP.ts index 2341618395..a5a357f534 100644 --- a/dist/languages/ja_JP.ts +++ b/dist/languages/ja_JP.ts @@ -571,80 +571,70 @@ FXAA can produce a more stable picture in lower resolutions. - - Enable post-processing effects - - - - - Applies post-processing effects to the final image. - - - - + Fullscreen Mode: フルスクリーンモード: - + The method used to render the window in fullscreen. Borderless offers the best compatibility with the on-screen keyboard that some games request for input. Exclusive fullscreen may offer better performance and better Freesync/Gsync support. - + Aspect Ratio: アスペクト比: - + Stretches the renderer to fit the specified aspect ratio. Most games only support 16:9, so modifications are required to get other ratios. Also controls the aspect ratio of captured screenshots. - + Use persistent pipeline cache - + Allows saving shaders to storage for faster loading on following game boots. Disabling it is only intended for debugging. - + Use asynchronous GPU emulation - + Uses an extra CPU thread for rendering. This option should always remain enabled. - + NVDEC emulation: NVDEC エミュレーション: - + Specifies how videos should be decoded. It can either use the CPU or the GPU for decoding, or perform no decoding at all (black screen on videos). In most cases, GPU decoding provides the best performance. - + ASTC Decoding Method: ASTC デコード方式: - + This option controls how ASTC textures should be decoded. CPU: Use the CPU for decoding. GPU: Use the GPU's compute shaders to decode ASTC textures (recommended). @@ -653,75 +643,55 @@ stuttering but may present artifacts. - + ASTC Recompression Method: ASTC 再圧縮方式: - + Most GPUs lack support for ASTC textures and must decompress to anintermediate format: RGBA8. BC1/BC3: The intermediate format will be recompressed to BC1 or BC3 format, saving VRAM but degrading image quality. - + Frame Pacing Mode (Vulkan only) - + Controls how the emulator manages frame pacing to reduce stuttering and make the frame rate smoother and more consistent. - + VRAM Usage Mode: - + Selects whether the emulator should prefer to conserve memory or make maximum usage of available video memory for performance. Aggressive mode may impact performance of other applications such as recording software. - + Skip CPU Inner Invalidation - + Skips certain cache invalidations during memory updates, reducing CPU usage and improving latency. This may cause soft-crashes. - - GPU Readback Before NCE Invalidation - - - - - Flushes GPU buffer data back to guest memory before NCE invalidates the whole guest page, preserving it while the CPU store proceeds. - - - - - Patch Runtime NROs for NCE - - - - - Applies NCE code patches to runtime-loaded NRO modules.This is required for some games to run correctly. - - - - + VSync Mode: 垂直同期: - + FIFO (VSync) does not drop frames or exhibit tearing but is limited by the screen refresh rate. FIFO Relaxed allows tearing as it recovers from a slow down. Mailbox can have lower latency than FIFO and does not tear but may drop frames. @@ -732,1371 +702,1409 @@ Mailbox は FIFO よりも遅延が小さくティアリングがありません Immediate (no synchronization) は表示可能なものをすべて表示し, ティアリング発生の可能性があります. - + Sync Memory Operations メモリ操作の同期 - + Ensures data consistency between compute and memory operations. This option fixes issues in games, but may degrade performance. Unreal Engine 4 games often see the most significant changes thereof. - + Enable asynchronous presentation (Vulkan only) 非同期プレゼンテーション (Vulkan のみ) - + Slightly improves performance by moving presentation to a separate CPU thread. - + Force maximum clocks (Vulkan only) 最大クロック強制 (Vulkan のみ) - + Runs work in the background while waiting for graphics commands to keep the GPU from lowering its clock speed. GPUのクロックスピードを下げないように、グラフィックコマンドを待っている間、バックグラウンドで作業を実行させます。 - + Anisotropic Filtering: 異方性フィルタリング: - + Controls the quality of texture rendering at oblique angles. Safe to set at 16x on most GPUs. - + GPU Mode: GPUモード: - + Controls the GPU emulation mode. Most games render fine with Fast, but Accurate is still required for some. Particles tend to only render correctly with Accurate mode. - + DMA Accuracy: DMA精度: - + Controls the DMA read mode. Unsafe is faster, while Safe is more stable and can fix issues in some games. Default follows the GPU Accuracy setting. - + GPU Fence Behavior: - + Controls the GPU fence synchronization behavior. Immediate is the fastest option, but can introduce some issues. Balanced offers better compatibility and may fix issues in some games. Accurate further improves compatibility at the cost of some performance. -Default follows the GPU Mode setting. +Strict is the slowest option, but can fix issues that require stricter synchronization. +Default follows the GPU Accuracy setting. - + + Enable GPU buffer readback + + + + + Preserves GPU-modified data by reading it back before uploading. +Some games require this to render certain effects properly. + + + + Enable asynchronous shader compilation - + May reduce shader stutter. - + GPU Clocks - + Makes the game believe GPU work finishes faster than it does, so it stops lowering resolution and render distance to fit the Switch's clocks. - + GPU Unswizzle - + Accelerates BCn 3D texture decoding using GPU compute. Disable if experiencing crashes or graphical glitches. - + GPU Unswizzle Max Texture Size - + Sets the maximum size (MiB) for GPU-based texture unswizzling. While the GPU is faster for medium and large textures, the CPU may be more efficient for very small ones. Adjust this to find the balance between GPU acceleration and CPU overhead. - + GPU Unswizzle Stream Size - + Sets the maximum amount of texture data (in MiB) processed per frame. Higher values can reduce stutter during texture loading but may impact frame consistency. - + GPU Unswizzle Chunk Size - + Determines the number of depth slices processed in a single dispatch. Increasing this can improve throughput on high-end GPUs but may cause TDR or driver timeouts on weaker hardware. - + Use Vulkan pipeline cache Vulkan パイプラインキャッシュを使用 - + Enables GPU vendor-specific pipeline cache. This option can improve shader loading time significantly in cases where the Vulkan driver does not store pipeline cache files internally. - + Enable Compute Pipelines (Intel Vulkan Only) コンピュート・パイプラインの有効化(インテル Vulkan のみ) - + Required by some games. This setting only exists for Intel proprietary drivers and may crash if enabled. Compute pipelines are always enabled on all other drivers. - + Enable Reactive Flushing - + Uses reactive flushing instead of predictive flushing, allowing more accurate memory syncing. - + Sync to framerate of video playback ビデオ再生のフレームレートに同期する - + Run the game at normal speed during video playback, even when the framerate is unlocked. - + Barrier feedback loops - + Improves rendering of transparency effects in specific games. 特定のゲームにおける透明エフェクトのレンダリングを改善します。 - + Enable buffer history - + Enables access to previous buffer states. This option may improve rendering quality and performance consistency in some games. - + Fix bloom effects - + Removes bloom in Burnout. - + + Enable Legacy Rescale Pass + + + + + May fix rescale issues in some games by relying on behavior from the previous implementation. +Legacy behavior workaround that fixes line artifacts on AMD and Intel GPUs, and grey texture flicker on Nvidia GPUs in Luigis Mansion 3. + + + + Extended Dynamic State - + Controls the number of features that can be used in Extended Dynamic State. Higher states allow for more features and can increase performance, but may cause additional graphical issues. - + Vertex Input Dynamic State - + Enables vertex input dynamic state feature for better quality and performance. - + Sample Shading - + Allows the fragment shader to execute per sample in a multi-sampled fragment instead of once per fragment. Improves graphics quality at the cost of performance. Higher values improve quality but degrade performance. - + RNG Seed 乱数シード値の変更 - + Controls the seed of the random number generator. Mainly used for speedrunning. - + Device Name デバイス名 - + The name of the console. - + Homebrew Args - + Command-line arguments passed to homebrew at launch (e.g. -noglsl). - + Custom RTC Date: - + This option allows to change the clock of the console. Can be used to manipulate time in games. - + The number of seconds from the current unix time - + Language: 言語: - + This option can be overridden when region setting is auto-select - + Region: 地域: - + The region of the console. - + Time Zone: タイムゾーン: - + The time zone of the console. - + Sound Output Mode: 音声出力モード: - + Console Mode: コンソールモード: - + Selects if the console is in Docked or Handheld mode. Games will change their resolution, details and supported controllers and depending on this setting. Setting to Handheld can help improve performance for low end systems. - + Prompt for user profile on boot - + Useful if multiple people use the same PC. - + Pause when not in focus - + Pauses emulation when focusing on other windows. - + Confirm before stopping emulation エミュレーションを停止する前に確認する - + Overrides prompts asking to confirm stopping the emulation. Enabling it bypasses such prompts and directly exits the emulation. - + Hide mouse on inactivity 非アクティブ時にマウスカーソルを隠す - + Hides the mouse after 2.5s of inactivity. - + + Disable controller applet + コントローラーアプレットの無効化 + + + + Forcibly disables the use of the controller applet in emulated programs. +When a program attempts to open the controller applet, it is immediately closed. + + + + Check for updates - + Whether or not to check for updates upon startup. - + Enable Gamemode - + Force X11 as Graphics Backend - + Custom frontend - + Real applet - - - Disabled - 無効 - - - + Never - + On Load - + Always - + CPU CPU - + GPU GPU - + CPU Asynchronous CPU 非同期 - + Uncompressed (Best quality) 圧縮しない (最高品質) - + BC1 (Low quality) BC1 (低品質) - + BC3 (Medium quality) BC3 (中品質) - - + + Auto 自動 - + 30 FPS - + 60 FPS - + 90 FPS - + 120 FPS - + Conservative - + Aggressive - + Vulkan Vulkan - + OpenGL GLSL OpenGL GLSL - + OpenGL GLASM (Assembly Shaders, NVIDIA Only) OpenGL GLASM (アセンブリシェーダー、NVIDIA のみ) - + OpenGL SPIR-V (Experimental, AMD/Mesa Only) OpenGL SPIR-V(実験的、AMD/Mesaのみ) - + Null - + Fast - - - + + + Accurate 正確 - - - + + + Default デフォルト - + Unsafe (fast) - + Safe (stable) - + Immediate - + Balanced - + + Strict + + + + Unsafe 不安定 - + Paranoid (disables most optimizations) パラノイド (ほとんどの最適化を無効化) - + Debugging - + Dynarmic Dynarmic - + NCE NCE - + Borderless Windowed ボーダーレスウィンドウ - + Exclusive Fullscreen 排他的フルスクリーン - + No Video Output ビデオ出力しない - + CPU Video Decoding ビデオをCPUでデコード - + GPU Video Decoding (Default) ビデオをGPUでデコード (デフォルト) - + 0.25X (180p/270p) [EXPERIMENTAL] 0.25X (180p/270p) [EXPERIMENTAL] - + 0.5X (360p/540p) [EXPERIMENTAL] 0.5X (360p/540p) [実験的] - + 0.75X (540p/810p) [EXPERIMENTAL] 0.75X (540p/810p) [実験的] - + 1X (720p/1080p) 1X (720p/1080p) - + 1.25X (900p/1350p) [EXPERIMENTAL] 1.25X (900p/1350p) [EXPERIMENTAL] - + 1.5X (1080p/1620p) [EXPERIMENTAL] 1.5X (1080p/1620p) [実験的] - + 2X (1440p/2160p) 2X (1440p/2160p) - + 3X (2160p/3240p) 3X (2160p/3240p) - + 4X (2880p/4320p) 4X (2880p/4320p) - + 5X (3600p/5400p) 5X (3600p/5400p) - + 6X (4320p/6480p) 6X (4320p/6480p) - + 7X (5040p/7560p) 7X (5040p/7560p) - + 8X (5760p/8640p) 8X (5760p/8640p) - + Nearest Neighbor Nearest Neighbor - + Bilinear Bilinear - + Bicubic Bicubic - + Gaussian Gaussian - + Lanczos Lanczos - + ScaleForce ScaleForce - + AMD FidelityFX Super Resolution AMD FidelityFX Super Resolution - + Area - + MMPX MMPX - + Zero-Tangent - + B-Spline - + Mitchell - + Spline-1 - + Snapdragon Game Super Resolution - + Snapdragon Game Super Resolution EdgeDir - + None なし - + FXAA FXAA - + SMAA SMAA - + Default (16:9) デフォルト (16:9) - + Force 4:3 強制 4:3 - + Force 21:9 強制 21:9 - + Force 16:10 強制 16:10 - + Stretch to Window ウィンドウに合わせる - + Automatic 自動 - + 2x 2x - + 4x 4x - + 8x 8x - + 16x 16x - + Japanese (日本語) 日本語 - + American English アメリカ英語 - + French (français) フランス語 (français) - + German (Deutsch) ドイツ語 (Deutsch) - + Italian (italiano) イタリア語 (italiano) - + Spanish (español) スペイン語 (español) - + Chinese 中国語 - + Korean (한국어) 韓国語 (한국어) - + Dutch (Nederlands) オランダ語 (Nederlands) - + Portuguese (português) ポルトガル語 (português) - + Russian (Русский) ロシア語 (Русский) - + Taiwanese 台湾語 - + British English イギリス英語 - + Canadian French カナダフランス語 - + Latin American Spanish ラテンアメリカスペイン語 - + Simplified Chinese 簡体字中国語 - + Traditional Chinese (正體中文) 繁体字中国語 (正體中文) - + Brazilian Portuguese (português do Brasil) ブラジルポルトガル語 (português do Brasil) - + Polish (polska) - + Thai (แบบไทย) - - + + Japan 日本 - + USA アメリカ - + Europe ヨーロッパ - + Australia オーストラリア - + China 中国 - + Korea 韓国 - + Taiwan 台湾 - + Auto (%1) Auto select time zone 自動 (%1) - + Default (%1) Default time zone 既定 (%1) - + CET 中央ヨーロッパ時間 - + CST6CDT CST6CDT - + Cuba キューバ - + EET 東ヨーロッパ標準時 - + Egypt エジプト - + Eire アイルランド - + EST アメリカ東部標準時 - + EST5EDT EST5EDT - + GB GB - + GB-Eire イギリス-アイルランド - + GMT GMT - + GMT+0 GMT+0 - + GMT-0 GMT-0 - + GMT0 GMT0 - + Greenwich グリニッジ - + Hongkong 香港 - + HST ハワイ標準時 - + Iceland アイスランド - + Iran イラン - + Israel イスラエル - + Jamaica ジャマイカ - + Kwajalein クェゼリン - + Libya リビア - + MET 中東時間 - + MST MST - + MST7MDT MST7MDT - + Navajo ナバホ - + NZ NZ - + NZ-CHAT NZ-CHAT - + Poland ポーランド - + Portugal ポルトガル - + PRC PRC - + PST8PDT PST8PDT - + ROC ROC - + ROK ROK - + Singapore シンガポール - + Turkey トルコ - + UCT UCT - + Universal ユニバーサル - + UTC UTC - + W-SU W-SU - + WET WET - + Zulu ズールー - + Mono モノラル - + Stereo ステレオ - + Surround サラウンド - + 4GB DRAM (Default) 4GB DRAM (デフォルト) - + 6GB DRAM (Unsafe) 6GB DRAM (不安定) - + 8GB DRAM 8GB DRAM - + 10GB DRAM (Unsafe) - + 12GB DRAM (Unsafe) - + Docked Docked - + Handheld 携帯モード + + + + Normal + + - Normal + Boost - Boost - - - - - Overclock - + Always ask (Default) 常に確認する (デフォルト) - + Only if game specifies not to stop ゲームが停止しないように指定しているときのみ - + Never ask 確認しない - + Very Small (16 MB) - + Small (32 MB) - + Normal (128 MB) - + Large (256 MB) - + Very Large (512 MB) - + Very Low (4 MB) - + Low (8 MB) - + Normal (16 MB) - + Medium (32 MB) - + High (64 MB) - + Very Low (32) - + Low (64) - + Normal (128) - + Medium (256) - + High (512) - + + Disabled + 無効 + + + ExtendedDynamicState 1 - + ExtendedDynamicState 2 - + ExtendedDynamicState 3 - + Tree View - + Grid View @@ -3196,38 +3204,33 @@ Would you like to delete the old save data? 背景色: - + % FSR/SGSR sharpening percentage (e.g. 50%) - - Configure Effects... - - - - + Off オフ - + VSync Off VSync オフ - + Recommended 推奨 - + On オン - + VSync On VSync オン @@ -4839,130 +4842,6 @@ Once deleted, these can NOT be recovered. Are you 100% sure you want to delete t - - ConfigurePostProcessing - - - Post-Processing Effects - - - - - Changes apply immediately while a game is running. - - - - - Enable post-processing - - - - - Preset: - - - - - Apply - - - - - Reset Values - - - - - Return every effect to the values the preset ships with. - - - - - Save As... - - - - - Save Preset - - - - - Preset name: - - - - - Clear - - - - - Remove every effect in use and deselect the preset. - - - - - Add Effect - - - - - None - - - - - No effects in use. Pick a preset and press Apply, or add effects one by one. - - - - - Custom chain. Pick a preset above and press Apply to replace it. - - - - - Active preset: %1 (modified). Press Reset Values to go back to how it ships. - - - - - Active preset: %1 - - - - - Enabled - - - - - Disabled - - - - - Reset to defaults - - - - - Effect '%1' was not found. - - - - - Effect failed to compile: -%1 - - - - - No usable ReShade FX effects were found. Place .fx files in the post_shaders folder. - - - ConfigureProfileManager @@ -6048,50 +5927,50 @@ Please go to Configure -> System -> Network and make a selection. GRenderWindow - - + + OpenGL not available! OpenGLは使用できません! - + OpenGL shared contexts are not supported. - + Eden has not been compiled with OpenGL support. - - - + + + Error while initializing OpenGL! OpenGL初期化エラー - + Your GPU may not support OpenGL, or you do not have the latest graphics driver. GPUがOpenGLをサポートしていないか、グラフィックスドライバーが最新ではありません。 - + Error while initializing OpenGL 4.6! OpenGL4.6初期化エラー! - + Your GPU may not support OpenGL 4.6, or you do not have the latest graphics driver.<br><br>GL Renderer:<br>%1 GPUがOpenGL4.6をサポートしていないか、グラフィックスドライバーが最新ではありません。<br><br>GL レンダラ:<br>%1 - + Your GPU may not support one or more required OpenGL extensions. Please ensure you have the latest graphics driver.<br><br>GL Renderer:<br>%1<br><br>Unsupported extensions:<br>%2 GPUが1つ以上の必要なOpenGL拡張機能をサポートしていない可能性があります。最新のグラフィックドライバを使用していることを確認してください。<br><br>GL レンダラ:<br>%1<br><br>サポートされていない拡張機能:<br>%2 - + This build doesn't have OpenGL support. @@ -6912,42 +6791,42 @@ Debug Message: ウィンドウサイズを1080Pにリセット - + &Multiplayer マルチプレイヤー (&M) - + &Tools ツール(&T) - + Am&iibo - + Launch &Applet - + &TAS &TAS - + &Create Home Menu Shortcut - + Install &Firmware - + &Help ヘルプ(&H) @@ -6973,7 +6852,7 @@ Debug Message: - + &Pause 中断(&P) @@ -7074,176 +6953,176 @@ Debug Message: - &User Handbook - + Open &Quickstart Guide + クイックスタートガイドを開く(&Q) - + + &FAQ + &FAQ + + + &Capture Screenshot スクリーンショットをキャプチャ(&C) - + &Album - + &Set Nickname and Owner オーナーとニックネームを設定 (&S) - + &Delete Game Data ゲームデータの消去 (&D) - + &Restore Amiibo Amiibo を復旧 (&R) - + &Format Amiibo Amiibo を初期化(&F) - + &Mii Editor - + &Configure TAS... TASを設定... (&C) - + Configure C&urrent Game... 現在のゲームを設定...(&U) - - + + &Start 実行(&S) - + &Reset リセット(&R) - - + + R&ecord 記録(&R) - + Open &Controller Menu コントローラーメニューを開く (&C) - + Install Decryption &Keys - + &Home Menu - + &Desktop - + &Application Menu - + &Root Data Folder - + &NAND Folder - + &SDMC Folder - + &Mod Folder - + &Log Folder - + From Folder - + From ZIP - + &Eden Dependencies - + &Data Manager - + &Tree View - + &Grid View - + Game Icon Size - - + + None - + Show Game &Name - - - Show &Performance Overlay - - - Post-Processing &Shaders... + Show &Performance Overlay @@ -7252,737 +7131,722 @@ Debug Message: - + Small (32x32) - + Standard (64x64) - + Large (128x128) - + Full Size (256x256) - + Broken Vulkan Installation Detected - + Vulkan initialization failed during boot. - + Running a game TRANSLATORS: This string is shown to the user to explain why yuzu needs to prevent the computer from sleeping - + Loading Web Applet... - - + + Disable Web Applet - + Disabling the web applet can lead to undefined behavior and should only be used with Super Mario 3D All-Stars. Are you sure you want to disable the web applet? (This can be re-enabled in the Debug settings.) - + The amount of shaders currently being built - + The current selected resolution scaling multiplier. - + Current emulation speed. Values higher or lower than 100% indicate emulation is running faster or slower than a Switch. - + How many frames per second the game is currently displaying. This will vary from game to game and scene to scene. - + Time taken to emulate a Switch frame, not counting framelimiting or v-sync. For full-speed emulation this should be at most 16.67 ms. - + Unmute - + Mute - + Reset Volume - - Configure Effects... - - - - + &Clear Recent Files - + &Continue - + Warning: Outdated Game Format - + You are using the deconstructed ROM directory format for this game, which is an outdated format that has been superseded by others such as NCA, NAX, XCI, or NSP. Deconstructed ROM directories lack icons, metadata, and update support.<br>For an explanation of the various Switch formats Eden supports, out our user handbook. This message will not be shown again. - - + + Error while loading ROM! - + The ROM format is not supported. - + An error occurred initializing the video core. - - This is usually caused by outdated GPU drivers. Please see the log for more details. See: <a href='https://git.eden-emu.dev/eden-emu/eden/src/branch/master/docs/user/HowToAccessLogs.md'>How to access log files</a>. + + Eden has encountered an error while running the video core. This is usually caused by outdated GPU drivers, including integrated ones. Please see the log for more details. For more information on accessing the log, please see the following page: <a href='https://yuzu-mirror.github.io/help/reference/log-files/'>How to Upload the Log File</a>. - + Error while loading ROM! %1 %1 signifies a numeric error code. - + %1<br>Please redump your files or ask on Discord/Stoat for help. %1 signifies an error string. - + An unknown error occurred. Please see the log for more details. - - + + (64-bit) - - + + (32-bit) - - + + %1 %2 %1 is the title name. %2 indicates if the title is 64-bit or 32-bit - + Closing software... - + Save Data - + Mod Data - + Error Opening %1 Folder - - + + Folder does not exist! - + Remove Installed Game Contents? - + Remove Installed Game Update? - + Remove Installed Game DLC? - + Remove Entry - + Delete OpenGL Transferable Shader Cache? - + Delete Vulkan Transferable Shader Cache? - + Delete All Transferable Shader Caches? - + Remove Custom Game Configuration? - + Remove Cache Storage? - + Remove File - + Remove Play Time Data - + Reset play time? - - + + RomFS Extraction Failed! - + There was an error copying the RomFS files or the user cancelled the operation. - + Full - + Skeleton - + Select RomFS Dump Mode - + Please select the how you would like the RomFS dumped.<br>Full will copy all of the files into the new directory while <br>skeleton will only create the directory structure. - + There is not enough free space at %1 to extract the RomFS. Please free up space or select a different dump directory at Emulation > Configure > System > Filesystem > Dump Root - + Extracting RomFS... - - + + Cancel - + RomFS Extraction Succeeded! - + The operation completed successfully. - + Error Opening %1 - + Select Directory - + Properties - + The game properties could not be loaded. - + Switch Executable (%1);;All Files (*.*) %1 is an identifier for the Switch executable file extensions. - + Load File - + Open Extracted ROM Directory - + Invalid Directory Selected - + The directory you have selected does not contain a 'main' file. - + Installable Switch File (*.nca *.nsp *.xci);;Nintendo Content Archive (*.nca);;Nintendo Submission Package (*.nsp);;NX Cartridge Image (*.xci) - + Install Files - + %n file(s) remaining - + Installing file "%1"... - - + + Install Results - + To avoid possible conflicts, we discourage users from installing base games to the NAND. Please, only use this feature to install updates and DLC. - + %n file(s) were newly installed - + %n file(s) were overwritten - + %n file(s) failed to install - + System Application - + System Archive - + System Application Update - + Firmware Package (Type A) - + Firmware Package (Type B) - + Game - + Game Update - + Game DLC - + Delta Title - + Select NCA Install Type... - + Please select the type of title you would like to install this NCA as: (In most instances, the default 'Game' is fine.) - + Failed to Install - + The title type you selected for the NCA is invalid. - + File not found - + File "%1" not found - + OK - + Function Disabled - + Compatibility list reporting is currently disabled. Check back later! - + Error opening URL - + Unable to open the URL "%1". - + TAS Recording - + Overwrite file of player 1? - + Invalid config detected - + Handheld controller can't be used on docked mode. Pro controller will be selected. - - + + Amiibo - - + + The current amiibo has been removed - + Error - - + + The current game is not looking for amiibos - + Amiibo File (%1);; All Files (*.*) - + Load Amiibo - + Error loading Amiibo data - + The selected file is not a valid amiibo - + The selected file is already on use - + An unknown error occurred - + No firmware available - + Firmware Corrupted - + Unknown applet - + Applet doesn't map to a known value. - + Record not found - + Applet not found. Please reinstall firmware. - + Capture Screenshot - + PNG Image (*.png) - + TAS state: Running %1/%2 - + TAS state: Recording %1 - + TAS state: Idle %1/%2 - + TAS State: Invalid - + &Stop Running - + Stop R&ecording - + Building: %n shader(s) - + Scale: %1x %1 is the resolution scaling factor - + Speed: %1% / %2% - + Speed: %1% - + Game: %1 FPS - + Frame: %1 ms - + NO AA - - NO FX - - - - - FX - - - - + VOLUME: MUTE - + VOLUME: %1% Volume percentage (e.g. 50%) - + Derivation Components Missing - + Decryption keys are missing. Install them now? - + Wayland Detected! - + Wayland is known to have significant performance issues and mysterious bugs. It's recommended to use X11 instead. @@ -7990,74 +7854,74 @@ Would you like to force it for future launches? - + Use X11 - + Continue with Wayland - + Don't show again - + Restart Required - + Restart Eden to apply the X11 backend. - + Slow - + Turbo - + Unlocked - + Select RomFS Dump Target - + Please select which RomFS you would like to dump. - + Are you sure you want to close Eden? - - - + + + Eden - + Are you sure you want to stop the emulation? Any unsaved progress will be lost. - + The currently running application has requested Eden to not exit. Would you like to bypass this and exit anyway? @@ -9244,275 +9108,275 @@ p, li { white-space: pre-wrap; } - This game may require firmware to function properly, and you don't have any installed. Please install firmware before launching, or press "OK" to launch anyways. + The game you are trying to launch requires firmware to boot or to get past the opening menu. Please <a href='https://yuzu-mirror.github.io/help/quickstart'>dump and install firmware</a>, or press "OK" to launch anyways. - + Installing Firmware... - - - - - + + + + + Cancel - + Firmware Install Failed - + Firmware Install Succeeded - + Firmware integrity verification failed! - - + + Verification failed for the following files: %1 - - + + Verifying integrity... - - - - Integrity verification succeeded! - - + Integrity verification succeeded! + + + + + The operation completed successfully. - - + + Integrity verification failed! - + File contents may be corrupt or missing. - + Integrity verification couldn't be performed - + Firmware installation cancelled, firmware may be in a bad state or corrupted. File contents could not be checked for validity. - + Select Dumped Keys Location - + Decryption Keys install succeeded - + Decryption Keys install failed - + Orphaned Profiles Detected! - + UNEXPECTED BAD THINGS MAY HAPPEN IF YOU DON'T READ THIS!<br>Eden has detected the following save directories with no attached profile:<br>%1<br><br>The following profiles are valid:<br>%2<br><br>Click "OK" to open your save folder and fix up your profiles.<br>Hint: copy the contents of the largest or last-modified folder elsewhere, delete all orphaned profiles, and move your copied contents to the good profile.<br><br>Still confused? See the <a href='https://git.eden-emu.dev/eden-emu/eden/src/branch/master/docs/user/Orphaned.md'>help page</a>.<br> - + Really clear data? - + Important data may be lost! - + Are you REALLY sure? - + Once deleted, your data will NOT come back! Only do this if you're 100% sure you want to delete this data. - + Clearing... - + Select Export Location - + %1.zip - - - + + + Zipped Archives (*.zip) - + Exporting data. This may take a while... - + Exporting - + Exported Successfully - + Data was exported successfully. - + Export Cancelled - + Export was cancelled by the user. - + Export Failed - + Ensure you have write permissions on the targeted directory and try again. - + Select Import Location - + Import Warning - + All previous data in this directory will be deleted. Are you sure you wish to proceed? - + Importing data. This may take a while... - + Importing - + Imported Successfully - + Data was imported successfully. - + Import Cancelled - + Import was cancelled by the user. - + Import Failed - + Ensure you have read permissions on the targeted directory and try again. - + Keys not installed - + Install decryption keys and restart Eden before attempting to install firmware. - + Select Dumped Firmware Source Location - + Select Dumped Firmware ZIP - + Firmware cleanup failed - + Failed to clean up extracted firmware cache. Check write permissions in the system temp directory and try again. OS reported error: %1 diff --git a/dist/languages/ko_KR.ts b/dist/languages/ko_KR.ts index c78a853a20..7844a5ac2f 100644 --- a/dist/languages/ko_KR.ts +++ b/dist/languages/ko_KR.ts @@ -594,22 +594,12 @@ SMAA는 최고의 화질을 제공합니다. FXAA는 저해상도에서 더 안정적인 화면을 구현할 수 있습니다. - - Enable post-processing effects - - - - - Applies post-processing effects to the final image. - - - - + Fullscreen Mode: 전체 화면 모드: - + The method used to render the window in fullscreen. Borderless offers the best compatibility with the on-screen keyboard that some games request for input. Exclusive fullscreen may offer better performance and better Freesync/Gsync support. @@ -618,12 +608,12 @@ Exclusive fullscreen may offer better performance and better Freesync/Gsync supp 전체 화면 전용 모드는 더 나은 성능과 FreeSync/GSync 지원을 제공할 수 있습니다. - + Aspect Ratio: 화면 비율: - + Stretches the renderer to fit the specified aspect ratio. Most games only support 16:9, so modifications are required to get other ratios. Also controls the aspect ratio of captured screenshots. @@ -632,36 +622,36 @@ Also controls the aspect ratio of captured screenshots. 또한 캡처된 스크린샷의 화면 비율도 제어합니다. - + Use persistent pipeline cache 지속적 파이프라인 캐시 사용 - + Allows saving shaders to storage for faster loading on following game boots. Disabling it is only intended for debugging. 셰이더를 저장소에 저장하여 다음 게임 실행 시 더 빠르게 불러올 수 있도록 합니다. 이 옵션을 비활성화하는 것은 디버깅 목적으로만 사용하세요. - + Use asynchronous GPU emulation 비동기 GPU 에뮬레이션 사용 - + Uses an extra CPU thread for rendering. This option should always remain enabled. 렌더링에 추가 CPU 스레드를 사용합니다. 이 옵션은 항상 활성화된 상태로 유지해야 합니다. - + NVDEC emulation: NVDEC 에뮬레이션: - + Specifies how videos should be decoded. It can either use the CPU or the GPU for decoding, or perform no decoding at all (black screen on videos). In most cases, GPU decoding provides the best performance. @@ -670,12 +660,12 @@ In most cases, GPU decoding provides the best performance. 대부분의 경우 GPU 디코딩이 가장 좋은 성능을 제공합니다. - + ASTC Decoding Method: ASTC 디코딩 방식: - + This option controls how ASTC textures should be decoded. CPU: Use the CPU for decoding. GPU: Use the GPU's compute shaders to decode ASTC textures (recommended). @@ -687,12 +677,12 @@ GPU: GPU의 컴퓨트 셰이더를 사용하여 ASTC 텍스처를 디코딩합 CPU 비동기: 필요에 따라 CPU를 사용하여 ASTC 텍스처를 디코딩합니다. ASTC 디코딩으로 인한 끊김 현상이 없어지지만, 아티팩트가 발생할 수 있습니다. - + ASTC Recompression Method: ASTC 재압축 방식: - + Most GPUs lack support for ASTC textures and must decompress to anintermediate format: RGBA8. BC1/BC3: The intermediate format will be recompressed to BC1 or BC3 format, saving VRAM but degrading image quality. @@ -701,64 +691,44 @@ BC1/BC3: 중간 형식은 BC1 또는 BC3 형식으로 재압축되어 VRAM을 절약하지만 이미지 품질이 저하됩니다. - + Frame Pacing Mode (Vulkan only) 프레임 페이싱 모드(Vulkan 전용) - + Controls how the emulator manages frame pacing to reduce stuttering and make the frame rate smoother and more consistent. 에뮬레이터가 프레임 페이싱을 관리하는 방식을 제어하여 끊김 현상을 줄이고 프레임 속도를 더욱 부드럽고 일관되게 만듭니다. - + VRAM Usage Mode: VRAM 사용 모드: - + Selects whether the emulator should prefer to conserve memory or make maximum usage of available video memory for performance. Aggressive mode may impact performance of other applications such as recording software. 에뮬레이터가 메모리를 절약할지, 아니면 사용 가능한 비디오 메모리를 최대한 활용하여 성능을 향상시킬지 선택합니다. 적극적 모드는 녹화 소프트웨어와 같은 다른 애플리케이션의 성능에 영향을 줄 수 있습니다. - + Skip CPU Inner Invalidation CPU 내부 무효화 건너뛰기 - + Skips certain cache invalidations during memory updates, reducing CPU usage and improving latency. This may cause soft-crashes. 메모리 업데이트 중 특정 캐시 무효화를 건너뛰어 CPU 사용량을 줄이고 지연 시간을 개선합니다. 하지만 이로 인해 소프트 크래시가 발생할 수 있습니다. - - GPU Readback Before NCE Invalidation - - - - - Flushes GPU buffer data back to guest memory before NCE invalidates the whole guest page, preserving it while the CPU store proceeds. - - - - - Patch Runtime NROs for NCE - - - - - Applies NCE code patches to runtime-loaded NRO modules.This is required for some games to run correctly. - - - - + VSync Mode: 수직 동기화 모드: - + FIFO (VSync) does not drop frames or exhibit tearing but is limited by the screen refresh rate. FIFO Relaxed allows tearing as it recovers from a slow down. Mailbox can have lower latency than FIFO and does not tear but may drop frames. @@ -769,12 +739,12 @@ Mailbox는 FIFO보다 지연 시간이 짧고 화면 찢김 현상이 없지만 즉각적(동기화 없음)는 사용 가능한 모든 화면을 표시하며 화면 찢김 현상이 발생할 수 있습니다. - + Sync Memory Operations 메모리 작업 동기화 - + Ensures data consistency between compute and memory operations. This option fixes issues in games, but may degrade performance. Unreal Engine 4 games often see the most significant changes thereof. @@ -783,44 +753,44 @@ Unreal Engine 4 games often see the most significant changes thereof. 대개 언리얼 엔진 4 게임에서 이러한 변경 사항이 가장 두드러지게 나타납니다. - + Enable asynchronous presentation (Vulkan only) 비동기 프레젠테이션 활성화(Vulkan 전용) - + Slightly improves performance by moving presentation to a separate CPU thread. 프레젠테이션을 별도의 CPU 스레드로 이동시켜 성능을 약간 향상시킵니다. - + Force maximum clocks (Vulkan only) 최대 클럭 강제 적용(Vulkan 전용) - + Runs work in the background while waiting for graphics commands to keep the GPU from lowering its clock speed. 그래픽 명령을 기다리는 동안 백그라운드에서 작업을 실행하여 GPU 클럭 속도가 저하되는 것을 방지합니다. - + Anisotropic Filtering: 비등방성 필터링: - + Controls the quality of texture rendering at oblique angles. Safe to set at 16x on most GPUs. 비스듬한 각도에서의 텍스처 렌더링 품질을 제어합니다. 대부분의 GPU에서 16x로 설정해도 안전합니다. - + GPU Mode: GPU 모드: - + Controls the GPU emulation mode. Most games render fine with Fast, but Accurate is still required for some. Particles tend to only render correctly with Accurate mode. @@ -829,12 +799,12 @@ Particles tend to only render correctly with Accurate mode. 특히 조각들은 정확 모드에서만 제대로 렌더링되는 경향이 있습니다. - + DMA Accuracy: DMA 정확도: - + Controls the DMA read mode. Unsafe is faster, while Safe is more stable and can fix issues in some games. Default follows the GPU Accuracy setting. @@ -843,58 +813,76 @@ Default follows the GPU Accuracy setting. 기본값은 GPU 정확도 설정을 따릅니다. - + GPU Fence Behavior: GPU 펜스 동작: - + Controls the GPU fence synchronization behavior. Immediate is the fastest option, but can introduce some issues. Balanced offers better compatibility and may fix issues in some games. Accurate further improves compatibility at the cost of some performance. -Default follows the GPU Mode setting. - +Strict is the slowest option, but can fix issues that require stricter synchronization. +Default follows the GPU Accuracy setting. + GPU 펜스 동기화 동작을 제어합니다. +즉시는 가장 빠른 옵션이지만 일부 문제가 발생할 수 있습니다. +균형은 호환성이 더 좋고 일부 게임에서 발생하는 문제를 해결할 수 있습니다. +정확은 성능 저하를 감수하고 호환성을 더욱 향상시킵니다. +엄격은 가장 느린 옵션이지만 더 엄격한 동기화가 필요한 문제를 해결할 수 있습니다. +기본값은 GPU 정확도 설정을 따릅니다. - + + Enable GPU buffer readback + GPU 버퍼 되읽기 활성화 + + + + Preserves GPU-modified data by reading it back before uploading. +Some games require this to render certain effects properly. + 수정된 GPU 데이터를 업로드하기 전에 다시 읽어들여 보존합니다. +일부 게임에서는 특정 효과를 제대로 렌더링하기 위해 이 기능이 필요합니다. + + + Enable asynchronous shader compilation 비동기 셰이더 컴파일 활성화 - + May reduce shader stutter. 셰이더 끊김 현상을 줄일 수 있습니다. - + GPU Clocks GPU 클럭 - + Makes the game believe GPU work finishes faster than it does, so it stops lowering resolution and render distance to fit the Switch's clocks. 게임이 GPU 작업이 실제보다 더 빨리 완료된다고 착각하게 만들어, 스위치의 클럭 속도에 맞추기 위해 해상도와 렌더 거리를 낮추는 작업을 중단하게 합니다. - + GPU Unswizzle GPU 언스위즐 - + Accelerates BCn 3D texture decoding using GPU compute. Disable if experiencing crashes or graphical glitches. GPU 컴퓨팅을 사용하여 BCn 3D 텍스처 디코딩을 가속화합니다. 충돌이나 그래픽 결함이 발생하는 경우 이 기능을 비활성화하세요. - + GPU Unswizzle Max Texture Size GPU 언스위즐 최대 텍스처 크기 - + Sets the maximum size (MiB) for GPU-based texture unswizzling. While the GPU is faster for medium and large textures, the CPU may be more efficient for very small ones. Adjust this to find the balance between GPU acceleration and CPU overhead. @@ -903,48 +891,48 @@ GPU는 중간 및 큰 크기의 텍스처에서 더 빠르지만, 매우 작은 이 값을 조정하여 GPU 가속과 CPU 오버헤드 간의 균형을 찾으세요. - + GPU Unswizzle Stream Size GPU 언스위즐 스트림 크기 - + Sets the maximum amount of texture data (in MiB) processed per frame. Higher values can reduce stutter during texture loading but may impact frame consistency. 프레임당 처리할 최대 텍스처 데이터 양(MiB 단위)을 설정합니다. 값이 높을수록 텍스처 로딩 중 끊김 현상을 줄일 수 있지만 프레임 일관성에 영향을 미칠 수 있습니다. - + GPU Unswizzle Chunk Size GPU 언스위즐 청크 크기 - + Determines the number of depth slices processed in a single dispatch. Increasing this can improve throughput on high-end GPUs but may cause TDR or driver timeouts on weaker hardware. 단일 디스패치에서 처리할 깊이 슬라이스 수를 결정합니다. 이 값을 높이면 고성능 GPU에서 처리량이 향상될 수 있지만, 성능이 낮은 하드웨어에서는 TDR 오류나 드라이버 시간 초과가 발생할 수 있습니다. - + Use Vulkan pipeline cache Vulkan 파이프라인 캐시 사용 - + Enables GPU vendor-specific pipeline cache. This option can improve shader loading time significantly in cases where the Vulkan driver does not store pipeline cache files internally. GPU 제조사별 파이프라인 캐시를 활성화합니다. 이 옵션은 Vulkan 드라이버가 파이프라인 캐시 파일을 내부에 저장하지 않는 경우 셰이더 로딩 시간을 크게 향상시킬 수 있습니다. - + Enable Compute Pipelines (Intel Vulkan Only) 컴퓨트 파이프라인 활성화(인텔 Vulkan 전용) - + Required by some games. This setting only exists for Intel proprietary drivers and may crash if enabled. Compute pipelines are always enabled on all other drivers. @@ -953,182 +941,194 @@ Compute pipelines are always enabled on all other drivers. 다른 모든 드라이버에서는 컴퓨트 파이프라인이 항상 활성화됩니다. - + Enable Reactive Flushing 반응형 플러싱 활성화 - + Uses reactive flushing instead of predictive flushing, allowing more accurate memory syncing. 예측형 플러싱 대신 반응형 플러싱을 사용하여 보다 정확한 메모리 동기화를 가능하게 합니다. - + Sync to framerate of video playback 비디오 재생 프레임 속도에 동기화 - + Run the game at normal speed during video playback, even when the framerate is unlocked. 프레임률 제한이 해제된 경우에도 비디오 재생 중에는 게임을 정상 속도로 실행합니다. - + Barrier feedback loops 피드백 루프 차단 - + Improves rendering of transparency effects in specific games. 특정 게임에서 투명 효과 렌더링을 개선합니다. - + Enable buffer history 버퍼 기록 활성화 - + Enables access to previous buffer states. This option may improve rendering quality and performance consistency in some games. 이전 버퍼 상태에 접근할 수 있도록 합니다. 이 옵션은 일부 게임에서 렌더링 품질과 성능 일관성을 향상시킬 수 있습니다. - + Fix bloom effects 블룸 효과 수정 - + Removes bloom in Burnout. Burnout에서의 블룸 현상을 제거합니다. - + + Enable Legacy Rescale Pass + 기존 크기 조정 무시 활성화 + + + + May fix rescale issues in some games by relying on behavior from the previous implementation. +Legacy behavior workaround that fixes line artifacts on AMD and Intel GPUs, and grey texture flicker on Nvidia GPUs in Luigis Mansion 3. + 이전 구현의 동작을 활용하여 일부 게임에서 발생하는 크기 조정 문제를 해결할 수 있습니다. +루이지 맨션 3에서 발생했던 AMD 및 인텔 GPU의 선 아티팩트 현상과 Nvidia GPU의 회색 텍스처 깜빡임 현상을 해결하는 기존 반응에 대한 예비 해결책입니다. + + + Extended Dynamic State 확장된 동적 상태 - + Controls the number of features that can be used in Extended Dynamic State. Higher states allow for more features and can increase performance, but may cause additional graphical issues. 확장된 동적 상태에서 사용할 수 있는 기능의 수를 제어합니다. 상태 수가 많을수록 더 많은 기능을 사용할 수 있고 성능이 향상될 수 있지만, 추가적인 그래픽 문제가 발생할 수 있습니다. - + Vertex Input Dynamic State 정점 입력 동적 상태 - + Enables vertex input dynamic state feature for better quality and performance. 정점 입력의 동적 상태 기능을 활성화하여 품질과 성능을 향상시킵니다. - + Sample Shading 샘플 셰이딩 - + Allows the fragment shader to execute per sample in a multi-sampled fragment instead of once per fragment. Improves graphics quality at the cost of performance. Higher values improve quality but degrade performance. 조각 셰이더가 다중샘플 조각에서 한 번당 한 조각이 아닌 샘플별로 실행될 수 있도록 합니다. 성능 저하를 감수하고 그래픽 품질을 향상시킵니다. 값이 높을수록 품질은 향상되지만 성능은 저하됩니다. - + RNG Seed RNG 시드 - + Controls the seed of the random number generator. Mainly used for speedrunning. 난수 생성기의 시드 값을 제어합니다. 주로 스피드런에 사용됩니다. - + Device Name 장치 이름 - + The name of the console. 콘솔의 이름 - + Homebrew Args 홈브루 인수 - + Command-line arguments passed to homebrew at launch (e.g. -noglsl). 홈브루 실행 시 전달되는 명령줄 인수(예: -noglsl). - + Custom RTC Date: 사용자 지정 RTC 날짜: - + This option allows to change the clock of the console. Can be used to manipulate time in games. 이 옵션을 사용하면 콘솔의 시간을 변경할 수 있습니다. 게임 내 시간을 조작하는 데 사용할 수 있습니다. - + The number of seconds from the current unix time 현재 unix 시간으로부터 경과한 초 수 - + Language: 언어: - + This option can be overridden when region setting is auto-select 이 옵션은 지역 설정이 자동 선택으로 되어 있을 경우 번복될 수 있습니다. - + Region: 지역: - + The region of the console. 콘솔의 지역 - + Time Zone: 시간대: - + The time zone of the console. 콘솔의 시간대 - + Sound Output Mode: 소리 출력 모드: - + Console Mode: 콘솔 모드: - + Selects if the console is in Docked or Handheld mode. Games will change their resolution, details and supported controllers and depending on this setting. Setting to Handheld can help improve performance for low end systems. @@ -1137,1026 +1137,1042 @@ Setting to Handheld can help improve performance for low end systems. 휴대 모드로 설정하면 저사양 시스템의 성능을 향상시키는 데 도움이 될 수 있습니다. - + Prompt for user profile on boot 부팅 시 유저 프로필 입력 요청 - + Useful if multiple people use the same PC. 여러 사람이 같은 PC를 사용할 때 유용합니다. - + Pause when not in focus 초점이 맞지 않을 때 일시 중지 - + Pauses emulation when focusing on other windows. 다른 창에 초점을 맞출 때 에뮬레이션을 일시 중지합니다. - + Confirm before stopping emulation 에뮬레이션을 중지하기 전에 확인 - + Overrides prompts asking to confirm stopping the emulation. Enabling it bypasses such prompts and directly exits the emulation. 에뮬레이션 중지를 확인하는 메시지를 무시합니다. 이 옵션을 활성화하면 이러한 메시지를 건너뛰고 에뮬레이션을 바로 종료합니다. - + Hide mouse on inactivity 마우스 커서가 비활동 상태일 때 숨기기 - + Hides the mouse after 2.5s of inactivity. 마우스 커서가 2.5초 동안 활동이 없으면 숨깁니다. - + + Disable controller applet + 컨트롤러 애플릿 비활성화 + + + + Forcibly disables the use of the controller applet in emulated programs. +When a program attempts to open the controller applet, it is immediately closed. + 에뮬레이트된 프로그램에서 컨트롤러 애플릿 사용을 강제적으로 비활성화합니다. +프로그램이 컨트롤러 애플릿을 열려고 하면 즉시 닫힙니다. + + + Check for updates 업데이트 확인 - + Whether or not to check for updates upon startup. 시작 시 업데이트를 확인할지 여부. - + Enable Gamemode 게임 모드 활성화 - + Force X11 as Graphics Backend X11을 그래픽 백엔드로 강제 설정 - + Custom frontend 사용자 정의 프론트엔드 - + Real applet 실제 애플릿 - - - Disabled - 비활성화됨 - - - + Never 안 함 - + On Load 로드 시 - + Always 항상 - + CPU CPU - + GPU GPU - + CPU Asynchronous 비동기 CPU - + Uncompressed (Best quality) 비압축(최고 품질) - + BC1 (Low quality) BC1(저품질) - + BC3 (Medium quality) BC3(중간 품질) - - + + Auto 자동 - + 30 FPS 30 FPS - + 60 FPS 60 FPS - + 90 FPS 90 FPS - + 120 FPS 120 FPS - + Conservative 소극적 - + Aggressive 적극적 - + Vulkan Vulkan - + OpenGL GLSL OpenGL GLSL - + OpenGL GLASM (Assembly Shaders, NVIDIA Only) OpenGL GLASM(어셈블리 셰이더, NVIDIA 전용) - + OpenGL SPIR-V (Experimental, AMD/Mesa Only) OpenGL SPIR-V(실험적, AMD/Mesa 전용) - + Null Null - + Fast 고속 - - - + + + Accurate 정확 - - - + + + Default 기본값 - + Unsafe (fast) 불안전(빠름) - + Safe (stable) 안전(안정적) - + Immediate 즉시 - + Balanced 균형 - + + Strict + 염격 + + + Unsafe 불안전 - + Paranoid (disables most optimizations) 편집증적(대부분의 최적화를 비활성화함) - + Debugging 디버깅 - + Dynarmic 동적 - + NCE NCE - + Borderless Windowed 테두리 없는 창 - + Exclusive Fullscreen 독점 전체 화면 - + No Video Output 비디오 출력 없음 - + CPU Video Decoding CPU 비디오 디코딩 - + GPU Video Decoding (Default) GPU 비디오 디코딩(기본값) - + 0.25X (180p/270p) [EXPERIMENTAL] 0.25X (180p/270p) [실험적] - + 0.5X (360p/540p) [EXPERIMENTAL] 0.5X (360p/540p) [실험적] - + 0.75X (540p/810p) [EXPERIMENTAL] 0.75X (540p/810p) [실험적] - + 1X (720p/1080p) 1X (720p/1080p) - + 1.25X (900p/1350p) [EXPERIMENTAL] 1.25X (900p/1350p) [실험적] - + 1.5X (1080p/1620p) [EXPERIMENTAL] 1.5X (1080p/1620p) [실험적] - + 2X (1440p/2160p) 2X (1440p/2160p) - + 3X (2160p/3240p) 3X (2160p/3240p) - + 4X (2880p/4320p) 4X (2880p/4320p) - + 5X (3600p/5400p) 5X (3600p/5400p) - + 6X (4320p/6480p) 6X (4320p/6480p) - + 7X (5040p/7560p) 7X (5040p/7560p) - + 8X (5760p/8640p) 8X (5760p/8640p) - + Nearest Neighbor 최단입점 - + Bilinear 쌍선형 - + Bicubic 쌍입방 - + Gaussian 가우시안 - + Lanczos 란초스 - + ScaleForce ScaleForce - + AMD FidelityFX Super Resolution AMD FidelityFX Super Resolution - + Area 영역 - + MMPX MMPX - + Zero-Tangent 제로탄젠트 - + B-Spline B-스플라인 - + Mitchell 미첼 - + Spline-1 스플라인-1 - + Snapdragon Game Super Resolution Snapdragon Game Super Resolution - + Snapdragon Game Super Resolution EdgeDir Snapdragon Game Super Resolution EdgeDir - + None 없음 - + FXAA FXAA - + SMAA SMAA - + Default (16:9) 기본(16:9) - + Force 4:3 강제 4:3 - + Force 21:9 강제 21:9 - + Force 16:10 강제 16:10 - + Stretch to Window 화면 늘리기 - + Automatic 자동 - + 2x 2x - + 4x 4x - + 8x 8x - + 16x 16x - + Japanese (日本語) 일본어(日本語) - + American English 미국식 영어 - + French (français) 프랑스어(français) - + German (Deutsch) 독일어(Deutsch) - + Italian (italiano) 이탈리아어(italiano) - + Spanish (español) 스페인어(español) - + Chinese 중국어 - + Korean (한국어) 한국어(Korean) - + Dutch (Nederlands) 네덜란드어(Nederlands) - + Portuguese (português) 포르투갈어(português) - + Russian (Русский) 러시아어(Русский) - + Taiwanese 대만어 - + British English 영국식 영어 - + Canadian French 캐나다 프랑스어 - + Latin American Spanish 라틴아메리카 스페인어 - + Simplified Chinese 중국어 간체 - + Traditional Chinese (正體中文) 중국어 번체(正體中文) - + Brazilian Portuguese (português do Brasil) 브라질 포르투갈어(português do Brasil) - + Polish (polska) 폴란드어(polska) - + Thai (แบบไทย) 태국어(แบบไทย) - - + + Japan 일본 - + USA 미국 - + Europe 유럽 - + Australia 호주 - + China 중국 - + Korea 대한민국 - + Taiwan 대만 - + Auto (%1) Auto select time zone 자동(%1) - + Default (%1) Default time zone 기본(%1) - + CET CET - + CST6CDT CST6CDT - + Cuba 쿠바 - + EET EET - + Egypt 이집트 - + Eire 아일랜드 - + EST EST - + EST5EDT EST5EDT - + GB 영국 - + GB-Eire 영국-아일랜드 - + GMT GMT - + GMT+0 GMT+0 - + GMT-0 GMT-0 - + GMT0 GMT0 - + Greenwich 그리니치 - + Hongkong 홍콩 - + HST HST - + Iceland 아이슬란드 - + Iran 이란 - + Israel 이스라엘 - + Jamaica 자메이카 - + Kwajalein 콰잘레인 - + Libya 리비아 - + MET MET - + MST MST - + MST7MDT MST7MDT - + Navajo 나바호 - + NZ 뉴질랜드 - + NZ-CHAT 뉴질랜드-채텀 - + Poland 폴란드 - + Portugal 포르투갈 - + PRC 중국 - + PST8PDT PST8PDT - + ROC 대만 - + ROK 대한민국 - + Singapore 싱가포르 - + Turkey 터키 - + UCT UCT - + Universal 세계 - + UTC UTC - + W-SU 모스크바 - + WET WET - + Zulu Zulu - + Mono 모노 - + Stereo 스테레오 - + Surround 서라운드 - + 4GB DRAM (Default) 4GB DRAM(기본값) - + 6GB DRAM (Unsafe) 6GB DRAM(불안전) - + 8GB DRAM 8GB DRAM - + 10GB DRAM (Unsafe) 10GB DRAM(불안전) - + 12GB DRAM (Unsafe) 12GB DRAM(불안전) - + Docked 독 모드 - + Handheld 휴대 모드 - - + + Normal 보통 - - + + Boost 부스트 - - + + Overclock 오버클럭 - + Always ask (Default) 항상 묻기(기본값) - + Only if game specifies not to stop 게임에서 멈추지 말라고 명시한 경우에만 - + Never ask 절대 묻지 않음 - + Very Small (16 MB) 아주 작은 크기(16 MB) - + Small (32 MB) 작은 크기(32 MB) - + Normal (128 MB) 보통 크기(128 MB) - + Large (256 MB) 큰 크기(256 MB) - + Very Large (512 MB) 아주 큰 크기(512 MB) - + Very Low (4 MB) 매우 낮은 크기(4 MB) - + Low (8 MB) 낮은 크기(8 MB) - + Normal (16 MB) 보통 크기(16 MB) - + Medium (32 MB) 중간 크기(32 MB) - + High (64 MB) 높은 크기(64 MB) - + Very Low (32) 매우 낮은 크기(32) - + Low (64) 낮은 크기(64) - + Normal (128) 보통 크기(128) - + Medium (256) 보통(256) - + High (512) 빠름(512) - + + Disabled + 비활성화됨 + + + ExtendedDynamicState 1 확장된 동적 상태 1 - + ExtendedDynamicState 2 확장된 동적 상태 2 - + ExtendedDynamicState 3 확장된 동적 상태 3 - + Tree View 트리 보기 - + Grid View 격자 보기 @@ -3268,38 +3284,33 @@ Would you like to delete the old save data? 배경색: - + % FSR/SGSR sharpening percentage (e.g. 50%) % - - Configure Effects... - - - - + Off 끔 - + VSync Off 수직 동기화 끔 - + Recommended 권장 - + On 켬 - + VSync On 수직 동기화 켬 @@ -4916,130 +4927,6 @@ Once deleted, these can NOT be recovered. Are you 100% sure you want to delete t 파일 관리자에서 열기(&O) - - ConfigurePostProcessing - - - Post-Processing Effects - - - - - Changes apply immediately while a game is running. - - - - - Enable post-processing - - - - - Preset: - - - - - Apply - - - - - Reset Values - - - - - Return every effect to the values the preset ships with. - - - - - Save As... - - - - - Save Preset - - - - - Preset name: - - - - - Clear - - - - - Remove every effect in use and deselect the preset. - - - - - Add Effect - - - - - None - - - - - No effects in use. Pick a preset and press Apply, or add effects one by one. - - - - - Custom chain. Pick a preset above and press Apply to replace it. - - - - - Active preset: %1 (modified). Press Reset Values to go back to how it ships. - - - - - Active preset: %1 - - - - - Enabled - - - - - Disabled - - - - - Reset to defaults - - - - - Effect '%1' was not found. - - - - - Effect failed to compile: -%1 - - - - - No usable ReShade FX effects were found. Place .fx files in the post_shaders folder. - - - ConfigureProfileManager @@ -6127,50 +6014,50 @@ Please go to Configure -> System -> Network and make a selection. GRenderWindow - - + + OpenGL not available! OpenGL을 사용할 수 없습니다! - + OpenGL shared contexts are not supported. OpenGL 공유 콘텍스트는 지원되지 않습니다. - + Eden has not been compiled with OpenGL support. Eden은 OpenGL 지원 기능을 포함하여 컴파일되지 않았습니다. - - - + + + Error while initializing OpenGL! OpenGL을 초기화하는 동안 오류가 발생했습니다! - + Your GPU may not support OpenGL, or you do not have the latest graphics driver. 사용하시는 GPU가 OpenGL을 지원하지 않거나, 최신 그래픽 드라이버가 설치되어 있지 않습니다. - + Error while initializing OpenGL 4.6! OpenGL 4.6 초기화 중 오류 발생! - + Your GPU may not support OpenGL 4.6, or you do not have the latest graphics driver.<br><br>GL Renderer:<br>%1 사용 중인 GPU가 OpenGL 4.6을 지원하지 않거나 최신 그래픽 드라이버가 설치되어 있지 않습니다.<br><br>GL 렌더러:<br>%1 - + Your GPU may not support one or more required OpenGL extensions. Please ensure you have the latest graphics driver.<br><br>GL Renderer:<br>%1<br><br>Unsupported extensions:<br>%2 사용 중인 GPU가 하나 이상의 필수 OpenGL 확장 기능을 지원하지 않을 수 있습니다. 최신 그래픽 드라이버가 설치되어 있는지 확인해 주세요.<br><br>GL 렌더러:<br>%1<br><br>지원되지 않는 확장 기능:<br>%2 - + This build doesn't have OpenGL support. 이 빌드는 OpenGL을 지원하지 않습니다. @@ -6992,42 +6879,42 @@ Debug Message: 창 크기를 1080p로 재설정 - + &Multiplayer 멀티플레이어(&M) - + &Tools 도구(&T) - + Am&iibo Amiibo(&i) - + Launch &Applet 애플릿 실행(&A) - + &TAS TAS(&T) - + &Create Home Menu Shortcut HOME 메뉴 바로가기 만들기(&C) - + Install &Firmware 펌웨어 설치(&F) - + &Help 도움말(&H) @@ -7053,7 +6940,7 @@ Debug Message: - + &Pause 일시중지(&P) @@ -7154,921 +7041,906 @@ Debug Message: - &User Handbook - + Open &Quickstart Guide + 빠른 시작 가이드 열기(&Q) - + + &FAQ + FAQ(&F) + + + &Capture Screenshot 스크린샷 캡처(&C) - + &Album 앨범(&A) - + &Set Nickname and Owner 닉네임과 오너 설정(&S) - + &Delete Game Data 게임 데이터 삭제(&D) - + &Restore Amiibo Amiibo 복원(&R) - + &Format Amiibo Amiibo 포맷(&F) - + &Mii Editor Mii 편집기(&M) - + &Configure TAS... TAS 구성...(&C) - + Configure C&urrent Game... 현재 게임 구성...(&u) - - + + &Start 시작(&S) - + &Reset 재설정(&R) - - + + R&ecord 기록(&e) - + Open &Controller Menu 컨트롤러 메뉴 열기(&C) - + Install Decryption &Keys 복호화 키 설치(&K) - + &Home Menu HOME 메뉴(&H) - + &Desktop 데스크톱(&D) - + &Application Menu 애플리케이션 메뉴(&A) - + &Root Data Folder 데이터 폴더 경로(&R) - + &NAND Folder NAND 폴더(&N) - + &SDMC Folder SDMC 폴더(&S) - + &Mod Folder 모드 폴더(&M) - + &Log Folder 로그 폴더(&L) - + From Folder 폴더에서 - + From ZIP ZIP에서 - + &Eden Dependencies Eden 의존물(&E) - + &Data Manager 데이터 관리자(&D) - + &Tree View 트리 보기(&T) - + &Grid View 격자 보기(&G) - + Game Icon Size 게임 아이콘 크기 - - + + None 없음 - + Show Game &Name 게임 이름 표시(&N) - + Show &Performance Overlay 성능 오버레이 표시(&P) - - - Post-Processing &Shaders... - - &Carousel View 캐러셀 보기(&C) - + Small (32x32) 작은 크기(32x32) - + Standard (64x64) 기본 크기(64x64) - + Large (128x128) 큰 크기(128x128) - + Full Size (256x256) 전체 크기(256x256) - + Broken Vulkan Installation Detected 손상된 Vulkan 설치가 발견됨 - + Vulkan initialization failed during boot. 부팅 중 Vulkan 초기화에 실패했습니다. - + Running a game TRANSLATORS: This string is shown to the user to explain why yuzu needs to prevent the computer from sleeping 게임 실행 중 - + Loading Web Applet... 웹 애플릿을 불러오는 중... - - + + Disable Web Applet 웹 애플릿 비활성화 - + Disabling the web applet can lead to undefined behavior and should only be used with Super Mario 3D All-Stars. Are you sure you want to disable the web applet? (This can be re-enabled in the Debug settings.) 웹 애플릿을 비활성화하면 예기치 않은 동작이 발생할 수 있으며 슈퍼 마리오 3D 컬렉션에서만 사용해야 합니다. 웹 애플릿을 비활성화하겠습니까? (디버그 설정에서 다시 활성화할 수 있습니다.) - + The amount of shaders currently being built 현재 구축 중인 셰이더 수 - + The current selected resolution scaling multiplier. 현재 선택된 해상도 조정 배율입니다. - + Current emulation speed. Values higher or lower than 100% indicate emulation is running faster or slower than a Switch. 현재 에뮬레이션 속도입니다. 100%보다 높거나 낮은 값은 에뮬레이션이 스위치보다 빠르거나 느리게 실행되고 있음을 나타냅니다. - + How many frames per second the game is currently displaying. This will vary from game to game and scene to scene. 현재 게임이 표시하는 초당 프레임 수입니다. 이 값은 게임 및 장면에 따라 다릅니다. - + Time taken to emulate a Switch frame, not counting framelimiting or v-sync. For full-speed emulation this should be at most 16.67 ms. 프레임 제한이나 수직 동기화를 제외하고 스위치 프레임을 에뮬레이션하는 데 걸리는 시간입니다. 최고 속도 에뮬레이션의 경우 최대 16.67 밀리초입니다. - + Unmute 음소거 해제 - + Mute 음소거 - + Reset Volume 볼륨 재설정 - - Configure Effects... - - - - + &Clear Recent Files 최근 파일 지우기(&C) - + &Continue 재개(&C) - + Warning: Outdated Game Format 경고: 구식 게임 형식입니다 - + You are using the deconstructed ROM directory format for this game, which is an outdated format that has been superseded by others such as NCA, NAX, XCI, or NSP. Deconstructed ROM directories lack icons, metadata, and update support.<br>For an explanation of the various Switch formats Eden supports, out our user handbook. This message will not be shown again. 현재 이 게임에 대해 구형 형식인 분해된 ROM 디렉터리 형식을 사용하고 있습니다. 이 형식은 NCA, NAX, XCI 또는 NSP와 같은 다른 형식으로 대체되었습니다. 분해된 ROM 디렉터리에는 아이콘, 메타데이터 및 업데이트 지원 기능이 없습니다.<br>Eden에서 지원하는 다양한 스위치 형식에 대한 자세한 내용은 사용자 설명서를 참조해 주세요. 이 메시지는 다시 표시되지 않습니다. - - + + Error while loading ROM! ROM 불러오는 중 오류 발생! - + The ROM format is not supported. 해당 ROM 형식은 지원되지 않습니다. - + An error occurred initializing the video core. 비디오 코어 초기화 중 오류가 발생했습니다. - - This is usually caused by outdated GPU drivers. Please see the log for more details. See: <a href='https://git.eden-emu.dev/eden-emu/eden/src/branch/master/docs/user/HowToAccessLogs.md'>How to access log files</a>. - + + Eden has encountered an error while running the video core. This is usually caused by outdated GPU drivers, including integrated ones. Please see the log for more details. For more information on accessing the log, please see the following page: <a href='https://yuzu-mirror.github.io/help/reference/log-files/'>How to Upload the Log File</a>. + Eden에서 비디오 코어 실행 중 오류가 발생했습니다. 이는 일반적으로 내장 그래픽 드라이버를 포함한 GPU 드라이버가 최신 버전이 아니기 때문에 발생합니다. 자세한 내용은 로그 파일을 참조해 주세요. 로그 파일 접근 방법에 대한 자세한 내용은 <a href='https://yuzu-mirror.github.io/help/reference/log-files/'>로그 파일 업로드 방법</a> 페이지를 참조해 주세요. - + Error while loading ROM! %1 %1 signifies a numeric error code. ROM 불러오는 중 오류 발생! %1 - + %1<br>Please redump your files or ask on Discord/Stoat for help. %1 signifies an error string. %1<br>파일을 다시 덤프하거나 디스코드/Stoat에서 도움을 요청해 주세요. - + An unknown error occurred. Please see the log for more details. 알 수 없는 오류가 발생했습니다. 자세한 내용은 로그를 참조해 주세요. - - + + (64-bit) (64비트) - - + + (32-bit) (32비트) - - + + %1 %2 %1 is the title name. %2 indicates if the title is 64-bit or 32-bit %1 %2 - + Closing software... 소프트웨어 닫는 중... - + Save Data 저장 데이터 - + Mod Data 모드 데이터 - + Error Opening %1 Folder %1 폴더 여는 중 오류 발생 - - + + Folder does not exist! 폴더가 존재하지 않습니다! - + Remove Installed Game Contents? 설치된 게임 콘텐츠를 제거하겠습니까? - + Remove Installed Game Update? 설치된 게임 업데이트를 제거하겠습니까? - + Remove Installed Game DLC? 설치된 게임 DLC를 제거하겠습니까? - + Remove Entry 항목 제거 - + Delete OpenGL Transferable Shader Cache? OpenGL 이동 가능한 셰이더 캐시를 삭제하겠습니까? - + Delete Vulkan Transferable Shader Cache? Vulkan 이동 가능한 셰이더 캐시를 삭제하겠습니까? - + Delete All Transferable Shader Caches? 이동 가능한 셰이더 캐시를 모두 삭제하겠습니까? - + Remove Custom Game Configuration? 사용자 지정 게임 구성을 제거하겠습니까? - + Remove Cache Storage? 캐시 저장소를 제거하겠습니까? - + Remove File 파일 제거 - + Remove Play Time Data 플레이 시간 데이터 제거 - + Reset play time? 플레이 시간을 재설정하겠습니까? - - + + RomFS Extraction Failed! RomFS 추출 실패! - + There was an error copying the RomFS files or the user cancelled the operation. RomFS 파일을 복사하는 중에 오류가 발생했거나 사용자가 작업을 취소했습니다. - + Full 전체 - + Skeleton 뼈대 - + Select RomFS Dump Mode RomFS 덤프 모드 선택 - + Please select the how you would like the RomFS dumped.<br>Full will copy all of the files into the new directory while <br>skeleton will only create the directory structure. RomFS 덤프 방식을 선택해 주세요. 전체를 선택하면 모든 파일이 새 디렉터리로 복사되고, 뼈대를 선택하면 디렉터리 구조만 생성됩니다. - + There is not enough free space at %1 to extract the RomFS. Please free up space or select a different dump directory at Emulation > Configure > System > Filesystem > Dump Root %1 위치에 RomFS를 추출할 수 있는 여유 공간이 부족합니다. 공간을 확보하거나 에뮬레이션 > 구성 > 시스템 > 파일 시스템 > 덤프 경로에서 다른 덤프 디렉터리를 선택해 주세요. - + Extracting RomFS... RomFS 추출 중... - - + + Cancel 취소 - + RomFS Extraction Succeeded! RomFS 추출 성공! - + The operation completed successfully. 작업이 성공적으로 완료되었습니다. - + Error Opening %1 %1을(를) 여는 중 오류 발생 - + Select Directory 디렉터리 선택 - + Properties 속성 - + The game properties could not be loaded. 게임 속성을 불러올 수 없습니다. - + Switch Executable (%1);;All Files (*.*) %1 is an identifier for the Switch executable file extensions. 스위치 실행 파일(%1);;모든 파일(*.*) - + Load File 파일 불러오기 - + Open Extracted ROM Directory 추출된 ROM 디렉터리 열기 - + Invalid Directory Selected 유효하지 않은 디렉터리 선택됨 - + The directory you have selected does not contain a 'main' file. 선택한 디렉터리에는 'main' 파일이 없습니다. - + Installable Switch File (*.nca *.nsp *.xci);;Nintendo Content Archive (*.nca);;Nintendo Submission Package (*.nsp);;NX Cartridge Image (*.xci) 설치 가능한 스위치 파일(*.nca, *.nsp, *.xci);;닌텐도 콘텐츠 아카이브(*.nca);;닌텐도 제출 패키지(*.nsp);;NX 카트리지 이미지(*.xci) - + Install Files 파일 설치 - + %n file(s) remaining %n개 파일 남음 - + Installing file "%1"... "%1" 파일 설치 중... - - + + Install Results 설치 결과 - + To avoid possible conflicts, we discourage users from installing base games to the NAND. Please, only use this feature to install updates and DLC. 잠재적인 충돌을 방지하기 위해 저희는 사용자가 기본 게임을 NAND에 설치하는 것은 권장하지 않습니다. 이 기능은 업데이트 및 DLC 설치에만 사용해 주세요. - + %n file(s) were newly installed %n개 파일이 새로 설치됨 - + %n file(s) were overwritten %n개 파일이 덮어쓰기됨 - + %n file(s) failed to install %n개 파일 설치 실패 - + System Application 시스템 애플리케이션 - + System Archive 시스템 아카이브 - + System Application Update 시스템 애플리케이션 업데이트 - + Firmware Package (Type A) 펌웨어 패키지(A타입) - + Firmware Package (Type B) 펌웨어 패키지(B타입) - + Game 게임 - + Game Update 게임 업데이트 - + Game DLC 게임 DLC - + Delta Title 델타 타이틀 - + Select NCA Install Type... NCA 설치 유형 선택... - + Please select the type of title you would like to install this NCA as: (In most instances, the default 'Game' is fine.) 이 NCA를 설치할 타이틀 유형을 선택해 주세요: (대부분의 경우 기본값인 '게임'을 선택하면 됩니다.) - + Failed to Install 설치 실패 - + The title type you selected for the NCA is invalid. NCA에 대해 선택한 타이틀 유형이 유효하지 않습니다. - + File not found 파일을 찾을 수 없음 - + File "%1" not found "%1" 파일을 찾을 수 없음 - + OK 확인 - + Function Disabled 기능 비활성화됨 - + Compatibility list reporting is currently disabled. Check back later! 호환성 목록 보고 옵션이 현재 비활성화되어 있습니다. 나중에 다시 확인해 주세요! - + Error opening URL URL 여는 중 오류 발생 - + Unable to open the URL "%1". "%1" URL을 열 수 없습니다. - + TAS Recording TAS 녹화 - + Overwrite file of player 1? 플레이어 1의 파일을 덮어쓰겠습니까? - + Invalid config detected 무효한 구성이 발견됨 - + Handheld controller can't be used on docked mode. Pro controller will be selected. 휴대 모드 컨트롤러는 독 모드에서 사용할 수 없습니다. Pro 컨트롤러로 선택됩니다. - - + + Amiibo Amiibo - - + + The current amiibo has been removed 현재 amiibo가 제거됨 - + Error 오류 - - + + The current game is not looking for amiibos 현재 게임은 amiibo를 찾고 있지 않습니다 - + Amiibo File (%1);; All Files (*.*) Amiibo 파일(%1);; 모든 파일(*.*) - + Load Amiibo Amiibo 불러오기 - + Error loading Amiibo data Amiibo 데이터 불러오는 중 오류 발생 - + The selected file is not a valid amiibo 선택한 파일은 유효한 amiibo가 아닙니다 - + The selected file is already on use 선택한 파일은 이미 사용 중입니다 - + An unknown error occurred 알 수 없는 오류 발생 - + No firmware available 사용 가능한 펌웨어 없음 - + Firmware Corrupted 펌웨어 손상됨 - + Unknown applet 알 수 없는 애플릿 - + Applet doesn't map to a known value. 애플릿이 알려진 값에 매핑되지 않습니다. - + Record not found 기록을 찾을 수 없음 - + Applet not found. Please reinstall firmware. 애플릿을 찾을 수 없습니다. 펌웨어를 다시 설치해 주세요. - + Capture Screenshot 스크린샷 캡처 - + PNG Image (*.png) PNG 이미지(*.png) - + TAS state: Running %1/%2 TAS 상태: %1/%2 실행 중 - + TAS state: Recording %1 TAS 상태: %1 녹화 중 - + TAS state: Idle %1/%2 TAS 상태: %1/%2 유휴 - + TAS State: Invalid TAS 상태: 무효 - + &Stop Running 실행 중지(&S) - + Stop R&ecording 녹화 중지(&e) - + Building: %n shader(s) 구축 중: %n개 셰이더 - + Scale: %1x %1 is the resolution scaling factor 크기: %1x - + Speed: %1% / %2% 속도: %1% / %2% - + Speed: %1% 속도: %1% - + Game: %1 FPS 게임: %1 FPS - + Frame: %1 ms 프레임: %1 밀리초 - + NO AA AA 없음 - - NO FX - - - - - FX - - - - + VOLUME: MUTE 볼륨: 음소거 - + VOLUME: %1% Volume percentage (e.g. 50%) 볼륨: %1% - + Derivation Components Missing 파생 구성 요소 누락 - + Decryption keys are missing. Install them now? 복호화 키가 없습니다. 지금 설치하겠습니까? - + Wayland Detected! Wayland 발견됨! - + Wayland is known to have significant performance issues and mysterious bugs. It's recommended to use X11 instead. @@ -8079,74 +7951,74 @@ Would you like to force it for future launches? 향후 출시를 위해 Wayland 사용을 강제하겠습니까? - + Use X11 X11 사용 - + Continue with Wayland Wayland와 계속 - + Don't show again 다시 보지 않기 - + Restart Required 재시작이 필요함 - + Restart Eden to apply the X11 backend. X11 백엔드를 적용하려면 Eden을 다시 시작하세요. - + Slow 저속 - + Turbo 터보 - + Unlocked 제한 해제 - + Select RomFS Dump Target RomFS 덤프 대상 선택 - + Please select which RomFS you would like to dump. 덤프할 RomFS를 선택하세요. - + Are you sure you want to close Eden? 정말 Eden을 닫겠습니까? - - - + + + Eden Eden - + Are you sure you want to stop the emulation? Any unsaved progress will be lost. 정말 에뮬레이션을 중지하겠습니까? 저장되지 않은 진행 상황은 모두 손실됩니다. - + The currently running application has requested Eden to not exit. Would you like to bypass this and exit anyway? @@ -9348,41 +9220,41 @@ p, li { white-space: pre-wrap; } - This game may require firmware to function properly, and you don't have any installed. Please install firmware before launching, or press "OK" to launch anyways. - + The game you are trying to launch requires firmware to boot or to get past the opening menu. Please <a href='https://yuzu-mirror.github.io/help/quickstart'>dump and install firmware</a>, or press "OK" to launch anyways. + 실행하려는 게임을 실행하거나 시작 메뉴를 넘어가려면 펌웨어가 필요합니다. <a href='https://yuzu-mirror.github.io/help/quickstart'>펌웨어를 덤프하여 설치하거나</a>, 그냥 ​​"확인"을 눌러 게임을 실행해 주세요. - + Installing Firmware... 펌웨어 설치 중... - - - - - + + + + + Cancel 취소 - + Firmware Install Failed 펌웨어 설치 실패 - + Firmware Install Succeeded 펌웨어 설치 성공 - + Firmware integrity verification failed! 펌웨어 무결성 인증에 실패했습니다! - - + + Verification failed for the following files: %1 @@ -9391,235 +9263,235 @@ p, li { white-space: pre-wrap; } %1 - - + + Verifying integrity... 무결성 인증 중... - - + + Integrity verification succeeded! 무결성 인증에 성공했습니다! - - + + The operation completed successfully. 작업이 성공적으로 완료되었습니다. - - + + Integrity verification failed! 무결성 인증에 실패했습니다! - + File contents may be corrupt or missing. 파일 내용이 손상되었거나 누락되었을 수 있습니다. - + Integrity verification couldn't be performed 무결성 인증을 진행할 수 없습니다 - + Firmware installation cancelled, firmware may be in a bad state or corrupted. File contents could not be checked for validity. 펌웨어 설치가 취소되었습니다. 펌웨어 상태가 좋지 않거나 손상되었을 수 있습니다. 파일 내용의 유효성을 확인할 수 없습니다. - + Select Dumped Keys Location 덤프된 키 위치 ​​선택 - + Decryption Keys install succeeded 복호화 키 설치 성공 - + Decryption Keys install failed 복호화 키 설치 실패 - + Orphaned Profiles Detected! 사용되지 않는 프로필이 발견됨! - + UNEXPECTED BAD THINGS MAY HAPPEN IF YOU DON'T READ THIS!<br>Eden has detected the following save directories with no attached profile:<br>%1<br><br>The following profiles are valid:<br>%2<br><br>Click "OK" to open your save folder and fix up your profiles.<br>Hint: copy the contents of the largest or last-modified folder elsewhere, delete all orphaned profiles, and move your copied contents to the good profile.<br><br>Still confused? See the <a href='https://git.eden-emu.dev/eden-emu/eden/src/branch/master/docs/user/Orphaned.md'>help page</a>.<br> 이 내용을 읽지 않으면 예상치 못한 문제가 발생할 수 있습니다!<br>Eden이 프로필에 연결되지 않은 다음 저장 디렉터리를 발견했습니다:<br>%1<br><br>다음 프로필이 유효합니다:<br>%2<br><br>"확인"을 클릭하여 저장 폴더를 열고 프로필을 수정하세요.<br>힌트: 가장 크거나 마지막으로 수정된 폴더의 내용을 다른 곳에 복사하고, 연결되지 않은 프로필을 모두 삭제한 다음, 복사한 내용을 유효한 프로필로 이동하세요.<br><br>여전히 이해가 안 되나요? <a href='https://git.eden-emu.dev/eden-emu/eden/src/branch/master/docs/user/Orphaned.md'>도움말 페이지</a>를 참조하세요.<br> - + Really clear data? 정말로 데이터를 지우겠습니까? - + Important data may be lost! 중요 데이터가 손실될 수 있습니다! - + Are you REALLY sure? 정말 확실해요? - + Once deleted, your data will NOT come back! Only do this if you're 100% sure you want to delete this data. 한 번 삭제된 데이터는 절대 복구할 수 없습니다! 이 데이터를 100% 삭제하고 싶을 때만 이 작업을 수행하세요. - + Clearing... 지우는 중... - + Select Export Location 내보내기 위치 선택 - + %1.zip %1.zip - - - + + + Zipped Archives (*.zip) 압축된 아카이브(*.zip) - + Exporting data. This may take a while... 데이터를 내보내는 중입니다. 시간이 다소 걸릴 수 있습니다... - + Exporting 내보내는 중 - + Exported Successfully 성공적으로 내보냄 - + Data was exported successfully. 데이터를 성공적으로 내보냈습니다. - + Export Cancelled 내보내기 취소됨 - + Export was cancelled by the user. 사용자가 내보내기를 취소했습니다. - + Export Failed 내보내기 실패 - + Ensure you have write permissions on the targeted directory and try again. 대상 디렉터리에 쓰기 권한이 있는지 확인하고 다시 시도하세요. - + Select Import Location 가져오기 위치 선택 - + Import Warning 가져오기 경고 - + All previous data in this directory will be deleted. Are you sure you wish to proceed? 이 디렉터리의 이전 데이터가 모두 삭제됩니다. 계속하겠습니까? - + Importing data. This may take a while... 데이터를 가져오는 중입니다. 시간이 다소 걸릴 수 있습니다... - + Importing 가져오는 중 - + Imported Successfully 성공적으로 가져옴 - + Data was imported successfully. 데이터를 성공적으로 가져왔습니다. - + Import Cancelled 가져오기 취소됨 - + Import was cancelled by the user. 사용자가 가져오기를 취소했습니다. - + Import Failed 가져오기 실패 - + Ensure you have read permissions on the targeted directory and try again. 대상 디렉터리에 읽기 권한이 있는지 확인하고 다시 시도하세요. - + Keys not installed 키가 설치되지 않음 - + Install decryption keys and restart Eden before attempting to install firmware. 펌웨어를 설치하기 전에 복호화 키를 설치하고 Eden을 재시작하세요. - + Select Dumped Firmware Source Location 덤프된 펌웨어 소스 위치 선택 - + Select Dumped Firmware ZIP 덤프된 펌웨어 ZIP 선택 - + Firmware cleanup failed 펌웨어 정리 실패 - + Failed to clean up extracted firmware cache. Check write permissions in the system temp directory and try again. OS reported error: %1 diff --git a/dist/languages/nb.ts b/dist/languages/nb.ts index 191099c395..deaec1bb7e 100644 --- a/dist/languages/nb.ts +++ b/dist/languages/nb.ts @@ -571,80 +571,70 @@ FXAA can produce a more stable picture in lower resolutions. - - Enable post-processing effects - - - - - Applies post-processing effects to the final image. - - - - + Fullscreen Mode: Fullskjermmodus: - + The method used to render the window in fullscreen. Borderless offers the best compatibility with the on-screen keyboard that some games request for input. Exclusive fullscreen may offer better performance and better Freesync/Gsync support. - + Aspect Ratio: Bildeforhold: - + Stretches the renderer to fit the specified aspect ratio. Most games only support 16:9, so modifications are required to get other ratios. Also controls the aspect ratio of captured screenshots. - + Use persistent pipeline cache - + Allows saving shaders to storage for faster loading on following game boots. Disabling it is only intended for debugging. - + Use asynchronous GPU emulation - + Uses an extra CPU thread for rendering. This option should always remain enabled. - + NVDEC emulation: NVDEC-emulering: - + Specifies how videos should be decoded. It can either use the CPU or the GPU for decoding, or perform no decoding at all (black screen on videos). In most cases, GPU decoding provides the best performance. - + ASTC Decoding Method: - + This option controls how ASTC textures should be decoded. CPU: Use the CPU for decoding. GPU: Use the GPU's compute shaders to decode ASTC textures (recommended). @@ -653,75 +643,55 @@ stuttering but may present artifacts. - + ASTC Recompression Method: - + Most GPUs lack support for ASTC textures and must decompress to anintermediate format: RGBA8. BC1/BC3: The intermediate format will be recompressed to BC1 or BC3 format, saving VRAM but degrading image quality. - + Frame Pacing Mode (Vulkan only) - + Controls how the emulator manages frame pacing to reduce stuttering and make the frame rate smoother and more consistent. - + VRAM Usage Mode: - + Selects whether the emulator should prefer to conserve memory or make maximum usage of available video memory for performance. Aggressive mode may impact performance of other applications such as recording software. - + Skip CPU Inner Invalidation - + Skips certain cache invalidations during memory updates, reducing CPU usage and improving latency. This may cause soft-crashes. - - GPU Readback Before NCE Invalidation - - - - - Flushes GPU buffer data back to guest memory before NCE invalidates the whole guest page, preserving it while the CPU store proceeds. - - - - - Patch Runtime NROs for NCE - - - - - Applies NCE code patches to runtime-loaded NRO modules.This is required for some games to run correctly. - - - - + VSync Mode: VSync-modus: - + FIFO (VSync) does not drop frames or exhibit tearing but is limited by the screen refresh rate. FIFO Relaxed allows tearing as it recovers from a slow down. Mailbox can have lower latency than FIFO and does not tear but may drop frames. @@ -729,1371 +699,1409 @@ Immediate (no synchronization) presents whatever is available and can exhibit te - + Sync Memory Operations - + Ensures data consistency between compute and memory operations. This option fixes issues in games, but may degrade performance. Unreal Engine 4 games often see the most significant changes thereof. - + Enable asynchronous presentation (Vulkan only) Aktiver asynkron presentasjon (kun Vulkan) - + Slightly improves performance by moving presentation to a separate CPU thread. - + Force maximum clocks (Vulkan only) Tving maksikal klokkehastighet (kun Vulkan) - + Runs work in the background while waiting for graphics commands to keep the GPU from lowering its clock speed. Kjører arbeid i bakgrunnen mens den venter på grafikkommandoer for å forhindre at GPU-en senker klokkehastigheten. - + Anisotropic Filtering: Anisotropisk filtrering: - + Controls the quality of texture rendering at oblique angles. Safe to set at 16x on most GPUs. - + GPU Mode: GPU-modus: - + Controls the GPU emulation mode. Most games render fine with Fast, but Accurate is still required for some. Particles tend to only render correctly with Accurate mode. - + DMA Accuracy: DMA-nøyaktighet: - + Controls the DMA read mode. Unsafe is faster, while Safe is more stable and can fix issues in some games. Default follows the GPU Accuracy setting. - + GPU Fence Behavior: - + Controls the GPU fence synchronization behavior. Immediate is the fastest option, but can introduce some issues. Balanced offers better compatibility and may fix issues in some games. Accurate further improves compatibility at the cost of some performance. -Default follows the GPU Mode setting. +Strict is the slowest option, but can fix issues that require stricter synchronization. +Default follows the GPU Accuracy setting. - + + Enable GPU buffer readback + + + + + Preserves GPU-modified data by reading it back before uploading. +Some games require this to render certain effects properly. + + + + Enable asynchronous shader compilation - + May reduce shader stutter. - + GPU Clocks - + Makes the game believe GPU work finishes faster than it does, so it stops lowering resolution and render distance to fit the Switch's clocks. - + GPU Unswizzle - + Accelerates BCn 3D texture decoding using GPU compute. Disable if experiencing crashes or graphical glitches. - + GPU Unswizzle Max Texture Size - + Sets the maximum size (MiB) for GPU-based texture unswizzling. While the GPU is faster for medium and large textures, the CPU may be more efficient for very small ones. Adjust this to find the balance between GPU acceleration and CPU overhead. - + GPU Unswizzle Stream Size - + Sets the maximum amount of texture data (in MiB) processed per frame. Higher values can reduce stutter during texture loading but may impact frame consistency. - + GPU Unswizzle Chunk Size - + Determines the number of depth slices processed in a single dispatch. Increasing this can improve throughput on high-end GPUs but may cause TDR or driver timeouts on weaker hardware. - + Use Vulkan pipeline cache Bruk Vulkan-rørledningsbuffer - + Enables GPU vendor-specific pipeline cache. This option can improve shader loading time significantly in cases where the Vulkan driver does not store pipeline cache files internally. - + Enable Compute Pipelines (Intel Vulkan Only) - + Required by some games. This setting only exists for Intel proprietary drivers and may crash if enabled. Compute pipelines are always enabled on all other drivers. - + Enable Reactive Flushing Aktiver Reaktiv Tømming - + Uses reactive flushing instead of predictive flushing, allowing more accurate memory syncing. - + Sync to framerate of video playback Synkroniser med bildefrekvensen for videoavspilling - + Run the game at normal speed during video playback, even when the framerate is unlocked. Kjør spillet i normal hastighet under videoavspilling, selv når bildefrekvensen er låst opp. - + Barrier feedback loops Tilbakekoblingssløyfer for barrierer - + Improves rendering of transparency effects in specific games. Forbedrer gjengivelsen av transparenseffekter i spesifikke spill. - + Enable buffer history - + Enables access to previous buffer states. This option may improve rendering quality and performance consistency in some games. - + Fix bloom effects - + Removes bloom in Burnout. - + + Enable Legacy Rescale Pass + + + + + May fix rescale issues in some games by relying on behavior from the previous implementation. +Legacy behavior workaround that fixes line artifacts on AMD and Intel GPUs, and grey texture flicker on Nvidia GPUs in Luigis Mansion 3. + + + + Extended Dynamic State - + Controls the number of features that can be used in Extended Dynamic State. Higher states allow for more features and can increase performance, but may cause additional graphical issues. - + Vertex Input Dynamic State - + Enables vertex input dynamic state feature for better quality and performance. - + Sample Shading - + Allows the fragment shader to execute per sample in a multi-sampled fragment instead of once per fragment. Improves graphics quality at the cost of performance. Higher values improve quality but degrade performance. - + RNG Seed RNG-frø - + Controls the seed of the random number generator. Mainly used for speedrunning. - + Device Name Enhetsnavn - + The name of the console. Konsollens navn. - + Homebrew Args - + Command-line arguments passed to homebrew at launch (e.g. -noglsl). - + Custom RTC Date: Selvvalgt RTC-dato: - + This option allows to change the clock of the console. Can be used to manipulate time in games. - + The number of seconds from the current unix time - + Language: Språk: - + This option can be overridden when region setting is auto-select - + Region: Region: - + The region of the console. Konsollens region. - + Time Zone: Tidssone: - + The time zone of the console. Konsollens tidssone. - + Sound Output Mode: Lydutdatamodus: - + Console Mode: Konsollmodus: - + Selects if the console is in Docked or Handheld mode. Games will change their resolution, details and supported controllers and depending on this setting. Setting to Handheld can help improve performance for low end systems. - + Prompt for user profile on boot - + Useful if multiple people use the same PC. - + Pause when not in focus - + Pauses emulation when focusing on other windows. - + Confirm before stopping emulation Bekreft før stopping av emulering - + Overrides prompts asking to confirm stopping the emulation. Enabling it bypasses such prompts and directly exits the emulation. - + Hide mouse on inactivity Gjem mus under inaktivitet - + Hides the mouse after 2.5s of inactivity. - + + Disable controller applet + Deaktiver kontroller-appleten + + + + Forcibly disables the use of the controller applet in emulated programs. +When a program attempts to open the controller applet, it is immediately closed. + + + + Check for updates Se etter oppdateringer - + Whether or not to check for updates upon startup. - + Enable Gamemode - + Force X11 as Graphics Backend - + Custom frontend - + Real applet - - - Disabled - Skrudd av - - - + Never Aldri - + On Load - + Always Alltid - + CPU CPU - + GPU Skjermkort - + CPU Asynchronous - + Uncompressed (Best quality) Ukomprimert (Best kvalitet) - + BC1 (Low quality) BC1 (Lav kvalitet) - + BC3 (Medium quality) BC3 (Middels kvalitet) - - + + Auto Auto - + 30 FPS 30 FPS - + 60 FPS 60 FPS - + 90 FPS 90 FPS - + 120 FPS 120 FPS - + Conservative - + Aggressive Aggressiv - + Vulkan Vulkan - + OpenGL GLSL OpenGL GLSL - + OpenGL GLASM (Assembly Shaders, NVIDIA Only) - + OpenGL SPIR-V (Experimental, AMD/Mesa Only) OpenGL SPIR-V (eksperimentelt, kun AMD/Mesa) - + Null Null - + Fast Rask - - - + + + Accurate Nøyaktig - - - + + + Default Standard - + Unsafe (fast) Utrygg (raskt) - + Safe (stable) Trygg (stabil) - + Immediate - + Balanced Balansert - + + Strict + + + + Unsafe Utrygt - + Paranoid (disables most optimizations) Paranoid (deaktiverer de fleste optimaliseringer) - + Debugging - + Dynarmic - + NCE NCE - + Borderless Windowed Rammeløst vindu - + Exclusive Fullscreen Eksklusiv fullskjerm - + No Video Output Ingen videoutdata - + CPU Video Decoding CPU-videodekoding - + GPU Video Decoding (Default) GPU-videodekoding (Standard) - + 0.25X (180p/270p) [EXPERIMENTAL] 0,25× (180p/270p) [EKSPERIMENTELL] - + 0.5X (360p/540p) [EXPERIMENTAL] 0,5× (360p/540p) [EKSPERIMENTELL] - + 0.75X (540p/810p) [EXPERIMENTAL] 0,75× (540p/810p) [EKSPERIMENTELL] - + 1X (720p/1080p) 1× (720p/1080p) - + 1.25X (900p/1350p) [EXPERIMENTAL] 1,25× (900p/1350p) [EKSPERIMENTELL] - + 1.5X (1080p/1620p) [EXPERIMENTAL] 1,5× (1080p/1620p) [EKSPERIMENTELL] - + 2X (1440p/2160p) 2× (1440p/2160p) - + 3X (2160p/3240p) 3× (2160p/3240p) - + 4X (2880p/4320p) 4× (2880p/4320p) - + 5X (3600p/5400p) 5× (3600p/5400p) - + 6X (4320p/6480p) 6× (4320p/6480p) - + 7X (5040p/7560p) 7× (5040p/7560p) - + 8X (5760p/8640p) 8× (5760p/8640p) - + Nearest Neighbor Nærmeste nabo - + Bilinear Bilineær - + Bicubic Bikubisk - + Gaussian Gaussisk - + Lanczos Lanczos - + ScaleForce ScaleForce - + AMD FidelityFX Super Resolution AMD FidelityFX Super Resolution - + Area Område - + MMPX MMPX - + Zero-Tangent - + B-Spline B-Spline - + Mitchell Mitchell - + Spline-1 Spline-1 - + Snapdragon Game Super Resolution - + Snapdragon Game Super Resolution EdgeDir - + None Ingen - + FXAA FXAA - + SMAA SMAA - + Default (16:9) Standard (16:9) - + Force 4:3 Tving 4:3 - + Force 21:9 Tving 21:9 - + Force 16:10 Tving 16:10 - + Stretch to Window Strekk til vinduet - + Automatic Automatisk - + 2x 2x - + 4x 4x - + 8x 8x - + 16x 16x - + Japanese (日本語) Japansk (日本語) - + American English Amerikansk engelsk - + French (français) Fransk (français) - + German (Deutsch) Tysk (Deutsch) - + Italian (italiano) Italiensk (italiano) - + Spanish (español) Spansk (español) - + Chinese Kinesisk - + Korean (한국어) Koreansk (한국어) - + Dutch (Nederlands) Nederlandsk (Nederlands) - + Portuguese (português) Portugisisk (português) - + Russian (Русский) Russisk (Русский) - + Taiwanese Taiwansk - + British English Britisk engelsk - + Canadian French Kanadisk fransk - + Latin American Spanish Latinamerikansk spansk - + Simplified Chinese Forenklet kinesisk - + Traditional Chinese (正體中文) Tradisjonell kinesisk (正體中文) - + Brazilian Portuguese (português do Brasil) Brasiliansk portugisisk (português do Brasil) - + Polish (polska) Polsk (polska) - + Thai (แบบไทย) Thai (แบบไทย) - - + + Japan Japan - + USA USA - + Europe Europa - + Australia Australia - + China Folkerepublikken Kina - + Korea Korea - + Taiwan Taiwan (Republikken Kina) - + Auto (%1) Auto select time zone Auto (%1) - + Default (%1) Default time zone Standard (%1) - + CET Sentraleuropeisk tid - + CST6CDT CST6CDT - + Cuba Cuba - + EET Østeuropeisk tid - + Egypt Egypt - + Eire Republikken Irland - + EST EST - + EST5EDT EST5EDT - + GB Storbritannia - + GB-Eire GB-Eire - + GMT GMT - + GMT+0 GMT+0 - + GMT-0 GMT-0 - + GMT0 GMT0 - + Greenwich Greenwich - + Hongkong Hongkong - + HST HST - + Iceland Island - + Iran Iran - + Israel Israel - + Jamaica Jamaica - + Kwajalein Kwajalein - + Libya Libya - + MET MET - + MST MST - + MST7MDT MST7MDT - + Navajo Navajo - + NZ NZ - + NZ-CHAT NZ-CHAT - + Poland Polen - + Portugal Portugal - + PRC Folkerepublikken Kina - + PST8PDT PST8PDT - + ROC Taiwan (Republikken Kina) - + ROK Sør-Korea - + Singapore Singapore - + Turkey Tyrkia - + UCT UCT - + Universal Universalt - + UTC UTC - + W-SU W-SU - + WET WET - + Zulu Zulu - + Mono Mono - + Stereo Stereo - + Surround Surround - + 4GB DRAM (Default) 4 GB DRAM (Standard) - + 6GB DRAM (Unsafe) 6 GB DRAM (Utrygt) - + 8GB DRAM 8 GB DRAM - + 10GB DRAM (Unsafe) 10 GB DRAM (Utrygt) - + 12GB DRAM (Unsafe) 12 GB DRAM (Utrygt) - + Docked I dokking - + Handheld Håndholdt + + + + Normal + + - Normal + Boost - Boost - - - - - Overclock - + Always ask (Default) Spør alltid (Standard) - + Only if game specifies not to stop - + Never ask Aldri spør - + Very Small (16 MB) Veldig liten (16 MB) - + Small (32 MB) Liten (32 MB) - + Normal (128 MB) Normal (128 MB) - + Large (256 MB) Stor (256 MB) - + Very Large (512 MB) Veldig stor (512 MB) - + Very Low (4 MB) Veldig lav (4 MB) - + Low (8 MB) Lav (8 MB) - + Normal (16 MB) Normal (16 MB) - + Medium (32 MB) Middels (32 MB) - + High (64 MB) Høy (64 MB) - + Very Low (32) Svært lav (32) - + Low (64) Lav (64) - + Normal (128) Normal (128) - + Medium (256) Middels (256) - + High (512) Høy (512) - + + Disabled + Skrudd av + + + ExtendedDynamicState 1 - + ExtendedDynamicState 2 - + ExtendedDynamicState 3 - + Tree View - + Grid View @@ -3193,38 +3201,33 @@ Would you like to delete the old save data? Bakgrunnsfarge: - + % FSR/SGSR sharpening percentage (e.g. 50%) - - Configure Effects... - - - - + Off Av - + VSync Off VSync Av - + Recommended Anbefalt - + On På - + VSync On VSync På @@ -4837,130 +4840,6 @@ Once deleted, these can NOT be recovered. Are you 100% sure you want to delete t - - ConfigurePostProcessing - - - Post-Processing Effects - - - - - Changes apply immediately while a game is running. - - - - - Enable post-processing - - - - - Preset: - - - - - Apply - - - - - Reset Values - - - - - Return every effect to the values the preset ships with. - - - - - Save As... - - - - - Save Preset - - - - - Preset name: - - - - - Clear - - - - - Remove every effect in use and deselect the preset. - - - - - Add Effect - - - - - None - - - - - No effects in use. Pick a preset and press Apply, or add effects one by one. - - - - - Custom chain. Pick a preset above and press Apply to replace it. - - - - - Active preset: %1 (modified). Press Reset Values to go back to how it ships. - - - - - Active preset: %1 - - - - - Enabled - - - - - Disabled - - - - - Reset to defaults - - - - - Effect '%1' was not found. - - - - - Effect failed to compile: -%1 - - - - - No usable ReShade FX effects were found. Place .fx files in the post_shaders folder. - - - ConfigureProfileManager @@ -6045,50 +5924,50 @@ Please go to Configure -> System -> Network and make a selection. GRenderWindow - - + + OpenGL not available! OpenGL ikke tilgjengelig! - + OpenGL shared contexts are not supported. Delte OpenGL-kontekster støttes ikke. - + Eden has not been compiled with OpenGL support. - - - + + + Error while initializing OpenGL! Feil under initialisering av OpenGL! - + Your GPU may not support OpenGL, or you do not have the latest graphics driver. Det kan hende at GPU-en din ikke støtter OpenGL, eller at du ikke har den nyeste grafikkdriveren. - + Error while initializing OpenGL 4.6! Feil under initialisering av OpenGL 4.6! - + Your GPU may not support OpenGL 4.6, or you do not have the latest graphics driver.<br><br>GL Renderer:<br>%1 Det kan hende at GPU-en din ikke støtter OpenGL 4.6, eller at du ikke har den nyeste grafikkdriveren.<br><br>GL-renderer:<br>%1 - + Your GPU may not support one or more required OpenGL extensions. Please ensure you have the latest graphics driver.<br><br>GL Renderer:<br>%1<br><br>Unsupported extensions:<br>%2 Det kan hende at GPU-en din ikke støtter én eller flere nødvendige OpenGL-utvidelser. Vennligst sørg for at du har den nyeste grafikkdriveren.<br><br>GL-renderer: <br>%1<br><br>Ikke-støttede utvidelser:<br>%2 - + This build doesn't have OpenGL support. @@ -6909,42 +6788,42 @@ Debug Message: Tilbakestill vindusstørrelsen til 1080p - + &Multiplayer &Flerspiller - + &Tools Verk&tøy - + Am&iibo am&iibo - + Launch &Applet - + &TAS &TAS - + &Create Home Menu Shortcut - + Install &Firmware Installér &fastvare - + &Help &Hjelp @@ -6970,7 +6849,7 @@ Debug Message: - + &Pause &Pause @@ -7071,915 +6950,900 @@ Debug Message: - &User Handbook - + Open &Quickstart Guide + Åpne Hurtigstartsguiden (&Q) - + + &FAQ + &FAQ + + + &Capture Screenshot &Ta skjermklipp - + &Album &Album - + &Set Nickname and Owner - + &Delete Game Data &Slett spilldata - + &Restore Amiibo &Gjenopprett amiibo - + &Format Amiibo - + &Mii Editor - + &Configure TAS... &Konfigurer TAS ... - + Configure C&urrent Game... Konfigurer nåværende spill ... - - + + &Start &Start - + &Reset &Omstart - - + + R&ecord T&a opp - + Open &Controller Menu Åpne &kontrollermeny - + Install Decryption &Keys - + &Home Menu &Hjem-meny - + &Desktop &Skrivebord - + &Application Menu &Appmeny - + &Root Data Folder &Rotdatamappe - + &NAND Folder &NAND-mappe - + &SDMC Folder &SDMC-mappe - + &Mod Folder &Mod-mappe - + &Log Folder &Loggmappe - + From Folder Fra mappe - + From ZIP Fra ZIP - + &Eden Dependencies &Eden-avhengigheter - + &Data Manager &Databehandler - + &Tree View &Trevisning - + &Grid View &Rutenettvisning - + Game Icon Size Spillikonstørrelse - - + + None Ingen - + Show Game &Name Vis spill&navn - + Show &Performance Overlay Vis &ytelsesoverlegg - - - Post-Processing &Shaders... - - &Carousel View - + Small (32x32) Liten (32x32) - + Standard (64x64) Standard (64x64) - + Large (128x128) Stor (128x128) - + Full Size (256x256) Full størrelse (256x256) - + Broken Vulkan Installation Detected - + Vulkan initialization failed during boot. - + Running a game TRANSLATORS: This string is shown to the user to explain why yuzu needs to prevent the computer from sleeping Kjører et spill - + Loading Web Applet... - - + + Disable Web Applet - + Disabling the web applet can lead to undefined behavior and should only be used with Super Mario 3D All-Stars. Are you sure you want to disable the web applet? (This can be re-enabled in the Debug settings.) - + The amount of shaders currently being built - + The current selected resolution scaling multiplier. - + Current emulation speed. Values higher or lower than 100% indicate emulation is running faster or slower than a Switch. - + How many frames per second the game is currently displaying. This will vary from game to game and scene to scene. - + Time taken to emulate a Switch frame, not counting framelimiting or v-sync. For full-speed emulation this should be at most 16.67 ms. - + Unmute Slå på lyd - + Mute Demp - + Reset Volume Tilbakestill volum - - Configure Effects... - - - - + &Clear Recent Files &Tøm nylige filer - + &Continue &Fortsett - + Warning: Outdated Game Format - + You are using the deconstructed ROM directory format for this game, which is an outdated format that has been superseded by others such as NCA, NAX, XCI, or NSP. Deconstructed ROM directories lack icons, metadata, and update support.<br>For an explanation of the various Switch formats Eden supports, out our user handbook. This message will not be shown again. - - + + Error while loading ROM! - + The ROM format is not supported. - + An error occurred initializing the video core. - - This is usually caused by outdated GPU drivers. Please see the log for more details. See: <a href='https://git.eden-emu.dev/eden-emu/eden/src/branch/master/docs/user/HowToAccessLogs.md'>How to access log files</a>. + + Eden has encountered an error while running the video core. This is usually caused by outdated GPU drivers, including integrated ones. Please see the log for more details. For more information on accessing the log, please see the following page: <a href='https://yuzu-mirror.github.io/help/reference/log-files/'>How to Upload the Log File</a>. - + Error while loading ROM! %1 %1 signifies a numeric error code. - + %1<br>Please redump your files or ask on Discord/Stoat for help. %1 signifies an error string. - + An unknown error occurred. Please see the log for more details. - - + + (64-bit) (64-bit) - - + + (32-bit) (32-bit) - - + + %1 %2 %1 is the title name. %2 indicates if the title is 64-bit or 32-bit - + Closing software... Lukker programvare ... - + Save Data - + Mod Data - + Error Opening %1 Folder - - + + Folder does not exist! Mappen finnes ikke! - + Remove Installed Game Contents? - + Remove Installed Game Update? - + Remove Installed Game DLC? - + Remove Entry - + Delete OpenGL Transferable Shader Cache? - + Delete Vulkan Transferable Shader Cache? - + Delete All Transferable Shader Caches? - + Remove Custom Game Configuration? - + Remove Cache Storage? - + Remove File Fjern fil - + Remove Play Time Data - + Reset play time? - - + + RomFS Extraction Failed! - + There was an error copying the RomFS files or the user cancelled the operation. - + Full Full - + Skeleton Skjelett - + Select RomFS Dump Mode - + Please select the how you would like the RomFS dumped.<br>Full will copy all of the files into the new directory while <br>skeleton will only create the directory structure. - + There is not enough free space at %1 to extract the RomFS. Please free up space or select a different dump directory at Emulation > Configure > System > Filesystem > Dump Root - + Extracting RomFS... Utvinner RomFS... - - + + Cancel Avbryt - + RomFS Extraction Succeeded! - + The operation completed successfully. - + Error Opening %1 - + Select Directory Velg mappe - + Properties Egenskaper - + The game properties could not be loaded. - + Switch Executable (%1);;All Files (*.*) %1 is an identifier for the Switch executable file extensions. - + Load File - + Open Extracted ROM Directory - + Invalid Directory Selected - + The directory you have selected does not contain a 'main' file. - + Installable Switch File (*.nca *.nsp *.xci);;Nintendo Content Archive (*.nca);;Nintendo Submission Package (*.nsp);;NX Cartridge Image (*.xci) - + Install Files - + %n file(s) remaining - + Installing file "%1"... Installerer filen «%1» ... - - + + Install Results - + To avoid possible conflicts, we discourage users from installing base games to the NAND. Please, only use this feature to install updates and DLC. - + %n file(s) were newly installed - + %n file(s) were overwritten - + %n file(s) failed to install - + System Application Systemapp - + System Archive Systemarkiv - + System Application Update - + Firmware Package (Type A) Fastvarepakke (Type A) - + Firmware Package (Type B) Fastvarepakke (Type B) - + Game Spill - + Game Update Spilloppdatering - + Game DLC Spill-DLC - + Delta Title - + Select NCA Install Type... - + Please select the type of title you would like to install this NCA as: (In most instances, the default 'Game' is fine.) - + Failed to Install - + The title type you selected for the NCA is invalid. - + File not found Filen ble ikke funnet - + File "%1" not found - + OK OK - + Function Disabled - + Compatibility list reporting is currently disabled. Check back later! - + Error opening URL Feil under åpning av URL - + Unable to open the URL "%1". - + TAS Recording TAS-opptak - + Overwrite file of player 1? - + Invalid config detected - + Handheld controller can't be used on docked mode. Pro controller will be selected. - - + + Amiibo amiibo - - + + The current amiibo has been removed - + Error Feil - - + + The current game is not looking for amiibos Det nåværende spillet ser ikke etter amiiboer - + Amiibo File (%1);; All Files (*.*) amiibo-fil (%1);; Alle filer (*.*) - + Load Amiibo Last inn amiibo - + Error loading Amiibo data - + The selected file is not a valid amiibo - + The selected file is already on use - + An unknown error occurred - + No firmware available Ingen fastvare tilgjengelig - + Firmware Corrupted - + Unknown applet - + Applet doesn't map to a known value. - + Record not found - + Applet not found. Please reinstall firmware. - + Capture Screenshot Ta skjermklipp - + PNG Image (*.png) PNG-bilde (*.png) - + TAS state: Running %1/%2 - + TAS state: Recording %1 - + TAS state: Idle %1/%2 - + TAS State: Invalid - + &Stop Running - + Stop R&ecording - + Building: %n shader(s) - + Scale: %1x %1 is the resolution scaling factor Skala: %1x - + Speed: %1% / %2% Hastighet: %1% / %2% - + Speed: %1% Hastighet: %1% - + Game: %1 FPS Spill: %1 FPS - + Frame: %1 ms Ramme: %1 ms - + NO AA INGEN AA - - NO FX - - - - - FX - - - - + VOLUME: MUTE VOLUM: DEMP - + VOLUME: %1% Volume percentage (e.g. 50%) VOLUM: %1% - + Derivation Components Missing - + Decryption keys are missing. Install them now? - + Wayland Detected! - + Wayland is known to have significant performance issues and mysterious bugs. It's recommended to use X11 instead. @@ -7987,74 +7851,74 @@ Would you like to force it for future launches? - + Use X11 Bruk X11 - + Continue with Wayland - + Don't show again Ikke vis igjen - + Restart Required - + Restart Eden to apply the X11 backend. - + Slow Treg - + Turbo Turbo - + Unlocked Ubegrenset - + Select RomFS Dump Target - + Please select which RomFS you would like to dump. - + Are you sure you want to close Eden? - - - + + + Eden Eden - + Are you sure you want to stop the emulation? Any unsaved progress will be lost. - + The currently running application has requested Eden to not exit. Would you like to bypass this and exit anyway? @@ -9243,275 +9107,275 @@ p, li { white-space: pre-wrap; } - This game may require firmware to function properly, and you don't have any installed. Please install firmware before launching, or press "OK" to launch anyways. + The game you are trying to launch requires firmware to boot or to get past the opening menu. Please <a href='https://yuzu-mirror.github.io/help/quickstart'>dump and install firmware</a>, or press "OK" to launch anyways. - + Installing Firmware... Installerer fastvare ... - - - - - + + + + + Cancel Avbryt - + Firmware Install Failed - + Firmware Install Succeeded - + Firmware integrity verification failed! - - + + Verification failed for the following files: %1 - - + + Verifying integrity... - - - - Integrity verification succeeded! - - + Integrity verification succeeded! + + + + + The operation completed successfully. - - + + Integrity verification failed! - + File contents may be corrupt or missing. - + Integrity verification couldn't be performed - + Firmware installation cancelled, firmware may be in a bad state or corrupted. File contents could not be checked for validity. - + Select Dumped Keys Location - + Decryption Keys install succeeded - + Decryption Keys install failed - + Orphaned Profiles Detected! - + UNEXPECTED BAD THINGS MAY HAPPEN IF YOU DON'T READ THIS!<br>Eden has detected the following save directories with no attached profile:<br>%1<br><br>The following profiles are valid:<br>%2<br><br>Click "OK" to open your save folder and fix up your profiles.<br>Hint: copy the contents of the largest or last-modified folder elsewhere, delete all orphaned profiles, and move your copied contents to the good profile.<br><br>Still confused? See the <a href='https://git.eden-emu.dev/eden-emu/eden/src/branch/master/docs/user/Orphaned.md'>help page</a>.<br> - + Really clear data? - + Important data may be lost! - + Are you REALLY sure? Er du HELT sikker? - + Once deleted, your data will NOT come back! Only do this if you're 100% sure you want to delete this data. - + Clearing... - + Select Export Location - + %1.zip %1.zip - - - + + + Zipped Archives (*.zip) Zippede arkiver (*.zip) - + Exporting data. This may take a while... - + Exporting Eksporterer - + Exported Successfully - + Data was exported successfully. - + Export Cancelled - + Export was cancelled by the user. - + Export Failed Eksportering mislyktes - + Ensure you have write permissions on the targeted directory and try again. - + Select Import Location - + Import Warning - + All previous data in this directory will be deleted. Are you sure you wish to proceed? - + Importing data. This may take a while... - + Importing Importerer - + Imported Successfully Importeringen var vellykket - + Data was imported successfully. - + Import Cancelled - + Import was cancelled by the user. - + Import Failed Importering mislyktes - + Ensure you have read permissions on the targeted directory and try again. - + Keys not installed - + Install decryption keys and restart Eden before attempting to install firmware. - + Select Dumped Firmware Source Location - + Select Dumped Firmware ZIP - + Firmware cleanup failed - + Failed to clean up extracted firmware cache. Check write permissions in the system temp directory and try again. OS reported error: %1 diff --git a/dist/languages/nl.ts b/dist/languages/nl.ts index 8e99ce56d4..28d6649a8f 100644 --- a/dist/languages/nl.ts +++ b/dist/languages/nl.ts @@ -578,80 +578,70 @@ FXAA can produce a more stable picture in lower resolutions. - - Enable post-processing effects - - - - - Applies post-processing effects to the final image. - - - - + Fullscreen Mode: Volledig scherm modus: - + The method used to render the window in fullscreen. Borderless offers the best compatibility with the on-screen keyboard that some games request for input. Exclusive fullscreen may offer better performance and better Freesync/Gsync support. - + Aspect Ratio: Aspect Ratio: - + Stretches the renderer to fit the specified aspect ratio. Most games only support 16:9, so modifications are required to get other ratios. Also controls the aspect ratio of captured screenshots. - + Use persistent pipeline cache - + Allows saving shaders to storage for faster loading on following game boots. Disabling it is only intended for debugging. - + Use asynchronous GPU emulation - + Uses an extra CPU thread for rendering. This option should always remain enabled. - + NVDEC emulation: NVDEC-emulatie: - + Specifies how videos should be decoded. It can either use the CPU or the GPU for decoding, or perform no decoding at all (black screen on videos). In most cases, GPU decoding provides the best performance. - + ASTC Decoding Method: ASTC Decodeer Methode: - + This option controls how ASTC textures should be decoded. CPU: Use the CPU for decoding. GPU: Use the GPU's compute shaders to decode ASTC textures (recommended). @@ -660,75 +650,55 @@ stuttering but may present artifacts. - + ASTC Recompression Method: - + Most GPUs lack support for ASTC textures and must decompress to anintermediate format: RGBA8. BC1/BC3: The intermediate format will be recompressed to BC1 or BC3 format, saving VRAM but degrading image quality. - + Frame Pacing Mode (Vulkan only) - + Controls how the emulator manages frame pacing to reduce stuttering and make the frame rate smoother and more consistent. - + VRAM Usage Mode: - + Selects whether the emulator should prefer to conserve memory or make maximum usage of available video memory for performance. Aggressive mode may impact performance of other applications such as recording software. - + Skip CPU Inner Invalidation - + Skips certain cache invalidations during memory updates, reducing CPU usage and improving latency. This may cause soft-crashes. - - GPU Readback Before NCE Invalidation - - - - - Flushes GPU buffer data back to guest memory before NCE invalidates the whole guest page, preserving it while the CPU store proceeds. - - - - - Patch Runtime NROs for NCE - - - - - Applies NCE code patches to runtime-loaded NRO modules.This is required for some games to run correctly. - - - - + VSync Mode: VSync-modus: - + FIFO (VSync) does not drop frames or exhibit tearing but is limited by the screen refresh rate. FIFO Relaxed allows tearing as it recovers from a slow down. Mailbox can have lower latency than FIFO and does not tear but may drop frames. @@ -736,1371 +706,1409 @@ Immediate (no synchronization) presents whatever is available and can exhibit te - + Sync Memory Operations - + Ensures data consistency between compute and memory operations. This option fixes issues in games, but may degrade performance. Unreal Engine 4 games often see the most significant changes thereof. - + Enable asynchronous presentation (Vulkan only) Schakel asynchrone presentatie in (alleen Vulkan) - + Slightly improves performance by moving presentation to a separate CPU thread. - + Force maximum clocks (Vulkan only) Forceer maximale klokken (alleen Vulkan) - + Runs work in the background while waiting for graphics commands to keep the GPU from lowering its clock speed. Werkt op de achtergrond terwijl er wordt gewacht op grafische opdrachten om te voorkomen dat de GPU zijn kloksnelheid verlaagt. - + Anisotropic Filtering: Anisotrope Filtering: - + Controls the quality of texture rendering at oblique angles. Safe to set at 16x on most GPUs. - + GPU Mode: - + Controls the GPU emulation mode. Most games render fine with Fast, but Accurate is still required for some. Particles tend to only render correctly with Accurate mode. - + DMA Accuracy: - + Controls the DMA read mode. Unsafe is faster, while Safe is more stable and can fix issues in some games. Default follows the GPU Accuracy setting. - + GPU Fence Behavior: - + Controls the GPU fence synchronization behavior. Immediate is the fastest option, but can introduce some issues. Balanced offers better compatibility and may fix issues in some games. Accurate further improves compatibility at the cost of some performance. -Default follows the GPU Mode setting. +Strict is the slowest option, but can fix issues that require stricter synchronization. +Default follows the GPU Accuracy setting. - + + Enable GPU buffer readback + + + + + Preserves GPU-modified data by reading it back before uploading. +Some games require this to render certain effects properly. + + + + Enable asynchronous shader compilation - + May reduce shader stutter. - + GPU Clocks - + Makes the game believe GPU work finishes faster than it does, so it stops lowering resolution and render distance to fit the Switch's clocks. - + GPU Unswizzle - + Accelerates BCn 3D texture decoding using GPU compute. Disable if experiencing crashes or graphical glitches. - + GPU Unswizzle Max Texture Size - + Sets the maximum size (MiB) for GPU-based texture unswizzling. While the GPU is faster for medium and large textures, the CPU may be more efficient for very small ones. Adjust this to find the balance between GPU acceleration and CPU overhead. - + GPU Unswizzle Stream Size - + Sets the maximum amount of texture data (in MiB) processed per frame. Higher values can reduce stutter during texture loading but may impact frame consistency. - + GPU Unswizzle Chunk Size - + Determines the number of depth slices processed in a single dispatch. Increasing this can improve throughput on high-end GPUs but may cause TDR or driver timeouts on weaker hardware. - + Use Vulkan pipeline cache Gebruik Vulkan-pijplijn-cache - + Enables GPU vendor-specific pipeline cache. This option can improve shader loading time significantly in cases where the Vulkan driver does not store pipeline cache files internally. - + Enable Compute Pipelines (Intel Vulkan Only) - + Required by some games. This setting only exists for Intel proprietary drivers and may crash if enabled. Compute pipelines are always enabled on all other drivers. - + Enable Reactive Flushing Schakel Reactive Flushing In - + Uses reactive flushing instead of predictive flushing, allowing more accurate memory syncing. - + Sync to framerate of video playback - + Run the game at normal speed during video playback, even when the framerate is unlocked. - + Barrier feedback loops - + Improves rendering of transparency effects in specific games. - + Enable buffer history - + Enables access to previous buffer states. This option may improve rendering quality and performance consistency in some games. - + Fix bloom effects - + Removes bloom in Burnout. - + + Enable Legacy Rescale Pass + + + + + May fix rescale issues in some games by relying on behavior from the previous implementation. +Legacy behavior workaround that fixes line artifacts on AMD and Intel GPUs, and grey texture flicker on Nvidia GPUs in Luigis Mansion 3. + + + + Extended Dynamic State - + Controls the number of features that can be used in Extended Dynamic State. Higher states allow for more features and can increase performance, but may cause additional graphical issues. - + Vertex Input Dynamic State - + Enables vertex input dynamic state feature for better quality and performance. - + Sample Shading - + Allows the fragment shader to execute per sample in a multi-sampled fragment instead of once per fragment. Improves graphics quality at the cost of performance. Higher values improve quality but degrade performance. - + RNG Seed RNG Seed - + Controls the seed of the random number generator. Mainly used for speedrunning. - + Device Name Apparaatnaam - + The name of the console. - + Homebrew Args - + Command-line arguments passed to homebrew at launch (e.g. -noglsl). - + Custom RTC Date: Aangepaste RTC Datum: - + This option allows to change the clock of the console. Can be used to manipulate time in games. - + The number of seconds from the current unix time - + Language: Taal: - + This option can be overridden when region setting is auto-select - + Region: Regio: - + The region of the console. - + Time Zone: Tijdzone: - + The time zone of the console. - + Sound Output Mode: Geluidsuitvoermodus: - + Console Mode: Console Modus: - + Selects if the console is in Docked or Handheld mode. Games will change their resolution, details and supported controllers and depending on this setting. Setting to Handheld can help improve performance for low end systems. - + Prompt for user profile on boot - + Useful if multiple people use the same PC. - + Pause when not in focus - + Pauses emulation when focusing on other windows. - + Confirm before stopping emulation Bevestig voordat u de emulatie stopt - + Overrides prompts asking to confirm stopping the emulation. Enabling it bypasses such prompts and directly exits the emulation. - + Hide mouse on inactivity Verberg muis wanneer inactief - + Hides the mouse after 2.5s of inactivity. - + + Disable controller applet + Controller-applet uitschakelen + + + + Forcibly disables the use of the controller applet in emulated programs. +When a program attempts to open the controller applet, it is immediately closed. + + + + Check for updates - + Whether or not to check for updates upon startup. - + Enable Gamemode - + Force X11 as Graphics Backend - + Custom frontend - + Real applet - - - Disabled - - - - + Never - + On Load - + Always - + CPU CPU - + GPU - + CPU Asynchronous - + Uncompressed (Best quality) - + BC1 (Low quality) BC1 (Lage Kwaliteit) - + BC3 (Medium quality) BC3 (Gemiddelde kwaliteit) - - + + Auto Auto - + 30 FPS - + 60 FPS - + 90 FPS - + 120 FPS - + Conservative - + Aggressive - + Vulkan Vulkan - + OpenGL GLSL - + OpenGL GLASM (Assembly Shaders, NVIDIA Only) - + OpenGL SPIR-V (Experimental, AMD/Mesa Only) - + Null Null - + Fast - - - + + + Accurate Accuraat - - - + + + Default Standaard - + Unsafe (fast) - + Safe (stable) - + Immediate - + Balanced - + + Strict + + + + Unsafe Onveilig - + Paranoid (disables most optimizations) Paranoid (schakelt de meeste optimalisaties uit) - + Debugging - + Dynarmic - + NCE - + Borderless Windowed Randloos Venster - + Exclusive Fullscreen Exclusief Volledig Scherm - + No Video Output Geen Video-uitvoer - + CPU Video Decoding CPU Videodecodering - + GPU Video Decoding (Default) GPU Videodecodering (Standaard) - + 0.25X (180p/270p) [EXPERIMENTAL] - + 0.5X (360p/540p) [EXPERIMENTAL] - + 0.75X (540p/810p) [EXPERIMENTAL] 0.75X (540p/810p) [EXPERIMENTEEL] - + 1X (720p/1080p) 1X (720p/1080p) - + 1.25X (900p/1350p) [EXPERIMENTAL] - + 1.5X (1080p/1620p) [EXPERIMENTAL] 1.5X (1080p/1620p) [EXPERIMENTEEL] - + 2X (1440p/2160p) 2X (1440p/2160p) - + 3X (2160p/3240p) 3X (2160p/3240p) - + 4X (2880p/4320p) 4X (2880p/4320p) - + 5X (3600p/5400p) 5X (3600p/5400p) - + 6X (4320p/6480p) 6X (4320p/6480p) - + 7X (5040p/7560p) 7X (5040p/7560p) - + 8X (5760p/8640p) 8X (5760p/8640p) - + Nearest Neighbor Nearest Neighbor - + Bilinear Bilinear - + Bicubic Bicubic - + Gaussian Gaussian - + Lanczos - + ScaleForce ScaleForce - + AMD FidelityFX Super Resolution - + Area - + MMPX - + Zero-Tangent - + B-Spline - + Mitchell - + Spline-1 - + Snapdragon Game Super Resolution - + Snapdragon Game Super Resolution EdgeDir - + None Geen - + FXAA FXAA - + SMAA SMAA - + Default (16:9) Standaart (16:9) - + Force 4:3 Forceer 4:3 - + Force 21:9 Forceer 21:9 - + Force 16:10 Forceer 16:10 - + Stretch to Window Uitrekken naar Venster - + Automatic Automatisch - + 2x 2x - + 4x 4x - + 8x 8x - + 16x 16x - + Japanese (日本語) Japans (日本語) - + American English Amerikaans-Engels - + French (français) Frans (Français) - + German (Deutsch) Duits (Deutsch) - + Italian (italiano) Italiaans (italiano) - + Spanish (español) Spaans (Español) - + Chinese Chinees - + Korean (한국어) Koreaans (한국어) - + Dutch (Nederlands) Nederlands (Nederlands) - + Portuguese (português) Portugees (português) - + Russian (Русский) Russisch (Русский) - + Taiwanese Taiwanese - + British English Brits-Engels - + Canadian French Canadees-Frans - + Latin American Spanish Latijns-Amerikaans Spaans - + Simplified Chinese Vereenvoudigd Chinees - + Traditional Chinese (正體中文) Traditioneel Chinees (正體中文) - + Brazilian Portuguese (português do Brasil) Braziliaans-Portugees (português do Brasil) - + Polish (polska) - + Thai (แบบไทย) - - + + Japan Japan - + USA USA - + Europe Europa - + Australia Australië - + China China - + Korea Korea - + Taiwan Taiwan - + Auto (%1) Auto select time zone Auto (%1) - + Default (%1) Default time zone Standaard (%1) - + CET CET - + CST6CDT CST6CDT - + Cuba Cuba - + EET EET - + Egypt Egypte - + Eire Eire - + EST EST - + EST5EDT EST5EDT - + GB GB - + GB-Eire GB-Eire - + GMT GMT - + GMT+0 GMT+0 - + GMT-0 GMT-0 - + GMT0 GMT0 - + Greenwich Greenwich - + Hongkong Hongkong - + HST HST - + Iceland Ijsland - + Iran Iran - + Israel Israel - + Jamaica Jamaica - + Kwajalein Kwajalein - + Libya Libië - + MET MET - + MST MST - + MST7MDT MST7MDT - + Navajo Navajo - + NZ NZ - + NZ-CHAT NZ-CHAT - + Poland Polen - + Portugal Portugal - + PRC PRC - + PST8PDT PST8PDT - + ROC ROC - + ROK ROK - + Singapore Singapore - + Turkey Turkije - + UCT UCT - + Universal Universeel - + UTC UTC - + W-SU W-SU - + WET WET - + Zulu Zulu - + Mono Mono - + Stereo Stereo - + Surround Surround - + 4GB DRAM (Default) - + 6GB DRAM (Unsafe) - + 8GB DRAM - + 10GB DRAM (Unsafe) - + 12GB DRAM (Unsafe) - + Docked Docked - + Handheld Handheld + + + + Normal + + - Normal + Boost - Boost - - - - - Overclock - + Always ask (Default) - + Only if game specifies not to stop - + Never ask - + Very Small (16 MB) - + Small (32 MB) - + Normal (128 MB) - + Large (256 MB) - + Very Large (512 MB) - + Very Low (4 MB) - + Low (8 MB) - + Normal (16 MB) - + Medium (32 MB) - + High (64 MB) - + Very Low (32) - + Low (64) - + Normal (128) - + Medium (256) - + High (512) - + + Disabled + + + + ExtendedDynamicState 1 - + ExtendedDynamicState 2 - + ExtendedDynamicState 3 - + Tree View - + Grid View @@ -3188,38 +3196,33 @@ Would you like to delete the old save data? Achtergrondkleur: - + % FSR/SGSR sharpening percentage (e.g. 50%) - - Configure Effects... - - - - + Off Uit - + VSync Off VSync Uit - + Recommended Aanbevolen - + On Aan - + VSync On VSync Aan @@ -4832,130 +4835,6 @@ Once deleted, these can NOT be recovered. Are you 100% sure you want to delete t - - ConfigurePostProcessing - - - Post-Processing Effects - - - - - Changes apply immediately while a game is running. - - - - - Enable post-processing - - - - - Preset: - - - - - Apply - - - - - Reset Values - - - - - Return every effect to the values the preset ships with. - - - - - Save As... - - - - - Save Preset - - - - - Preset name: - - - - - Clear - - - - - Remove every effect in use and deselect the preset. - - - - - Add Effect - - - - - None - - - - - No effects in use. Pick a preset and press Apply, or add effects one by one. - - - - - Custom chain. Pick a preset above and press Apply to replace it. - - - - - Active preset: %1 (modified). Press Reset Values to go back to how it ships. - - - - - Active preset: %1 - - - - - Enabled - - - - - Disabled - - - - - Reset to defaults - - - - - Effect '%1' was not found. - - - - - Effect failed to compile: -%1 - - - - - No usable ReShade FX effects were found. Place .fx files in the post_shaders folder. - - - ConfigureProfileManager @@ -6041,50 +5920,50 @@ Please go to Configure -> System -> Network and make a selection. GRenderWindow - - + + OpenGL not available! OpenGL niet beschikbaar! - + OpenGL shared contexts are not supported. OpenGL gedeelde contexten worden niet ondersteund. - + Eden has not been compiled with OpenGL support. - - - + + + Error while initializing OpenGL! Fout tijdens het initialiseren van OpenGL! - + Your GPU may not support OpenGL, or you do not have the latest graphics driver. Je GPU ondersteunt mogelijk geen OpenGL, of je hebt niet de laatste grafische stuurprogramma. - + Error while initializing OpenGL 4.6! Fout tijdens het initialiseren van OpenGL 4.6! - + Your GPU may not support OpenGL 4.6, or you do not have the latest graphics driver.<br><br>GL Renderer:<br>%1 Je GPU ondersteunt mogelijk OpenGL 4.6 niet, of je hebt niet het laatste grafische stuurprogramma.<br><br>GL Renderer:<br>%1 - + Your GPU may not support one or more required OpenGL extensions. Please ensure you have the latest graphics driver.<br><br>GL Renderer:<br>%1<br><br>Unsupported extensions:<br>%2 Je GPU ondersteunt mogelijk een of meer vereiste OpenGL-extensies niet. Zorg ervoor dat je het laatste grafische stuurprogramma hebt.<br><br>GL Renderer:<br>%1<br><br>Ondersteunde extensies:<br>%2 - + This build doesn't have OpenGL support. @@ -6905,42 +6784,42 @@ Debug Message: Herstel Venstergrootte naar 1080p - + &Multiplayer &Multiplayer - + &Tools &Tools - + Am&iibo - + Launch &Applet - + &TAS &TAS - + &Create Home Menu Shortcut - + Install &Firmware - + &Help &Help @@ -6966,7 +6845,7 @@ Debug Message: - + &Pause &Onderbreken @@ -7067,176 +6946,176 @@ Debug Message: - &User Handbook - + Open &Quickstart Guide + Open &Snelstartgids - + + &FAQ + &FAQ + + + &Capture Screenshot &Leg Schermafbeelding Vast - + &Album - + &Set Nickname and Owner - + &Delete Game Data - + &Restore Amiibo - + &Format Amiibo - + &Mii Editor - + &Configure TAS... &Configureer TAS... - + Configure C&urrent Game... Configureer Huidig Spel... - - + + &Start &Start - + &Reset &Herstel - - + + R&ecord Opnemen - + Open &Controller Menu - + Install Decryption &Keys - + &Home Menu - + &Desktop - + &Application Menu - + &Root Data Folder - + &NAND Folder - + &SDMC Folder - + &Mod Folder - + &Log Folder - + From Folder - + From ZIP - + &Eden Dependencies - + &Data Manager - + &Tree View - + &Grid View - + Game Icon Size - - + + None - + Show Game &Name - - - Show &Performance Overlay - - - Post-Processing &Shaders... + Show &Performance Overlay @@ -7245,737 +7124,722 @@ Debug Message: - + Small (32x32) - + Standard (64x64) - + Large (128x128) - + Full Size (256x256) - + Broken Vulkan Installation Detected - + Vulkan initialization failed during boot. - + Running a game TRANSLATORS: This string is shown to the user to explain why yuzu needs to prevent the computer from sleeping - + Loading Web Applet... - - + + Disable Web Applet - + Disabling the web applet can lead to undefined behavior and should only be used with Super Mario 3D All-Stars. Are you sure you want to disable the web applet? (This can be re-enabled in the Debug settings.) - + The amount of shaders currently being built - + The current selected resolution scaling multiplier. - + Current emulation speed. Values higher or lower than 100% indicate emulation is running faster or slower than a Switch. - + How many frames per second the game is currently displaying. This will vary from game to game and scene to scene. - + Time taken to emulate a Switch frame, not counting framelimiting or v-sync. For full-speed emulation this should be at most 16.67 ms. - + Unmute - + Mute - + Reset Volume - - Configure Effects... - - - - + &Clear Recent Files - + &Continue - + Warning: Outdated Game Format - + You are using the deconstructed ROM directory format for this game, which is an outdated format that has been superseded by others such as NCA, NAX, XCI, or NSP. Deconstructed ROM directories lack icons, metadata, and update support.<br>For an explanation of the various Switch formats Eden supports, out our user handbook. This message will not be shown again. - - + + Error while loading ROM! - + The ROM format is not supported. - + An error occurred initializing the video core. - - This is usually caused by outdated GPU drivers. Please see the log for more details. See: <a href='https://git.eden-emu.dev/eden-emu/eden/src/branch/master/docs/user/HowToAccessLogs.md'>How to access log files</a>. + + Eden has encountered an error while running the video core. This is usually caused by outdated GPU drivers, including integrated ones. Please see the log for more details. For more information on accessing the log, please see the following page: <a href='https://yuzu-mirror.github.io/help/reference/log-files/'>How to Upload the Log File</a>. - + Error while loading ROM! %1 %1 signifies a numeric error code. - + %1<br>Please redump your files or ask on Discord/Stoat for help. %1 signifies an error string. - + An unknown error occurred. Please see the log for more details. - - + + (64-bit) - - + + (32-bit) - - + + %1 %2 %1 is the title name. %2 indicates if the title is 64-bit or 32-bit - + Closing software... - + Save Data - + Mod Data - + Error Opening %1 Folder - - + + Folder does not exist! - + Remove Installed Game Contents? - + Remove Installed Game Update? - + Remove Installed Game DLC? - + Remove Entry - + Delete OpenGL Transferable Shader Cache? - + Delete Vulkan Transferable Shader Cache? - + Delete All Transferable Shader Caches? - + Remove Custom Game Configuration? - + Remove Cache Storage? - + Remove File - + Remove Play Time Data - + Reset play time? - - + + RomFS Extraction Failed! - + There was an error copying the RomFS files or the user cancelled the operation. - + Full - + Skeleton - + Select RomFS Dump Mode - + Please select the how you would like the RomFS dumped.<br>Full will copy all of the files into the new directory while <br>skeleton will only create the directory structure. - + There is not enough free space at %1 to extract the RomFS. Please free up space or select a different dump directory at Emulation > Configure > System > Filesystem > Dump Root - + Extracting RomFS... - - + + Cancel - + RomFS Extraction Succeeded! - + The operation completed successfully. - + Error Opening %1 - + Select Directory - + Properties - + The game properties could not be loaded. - + Switch Executable (%1);;All Files (*.*) %1 is an identifier for the Switch executable file extensions. - + Load File - + Open Extracted ROM Directory - + Invalid Directory Selected - + The directory you have selected does not contain a 'main' file. - + Installable Switch File (*.nca *.nsp *.xci);;Nintendo Content Archive (*.nca);;Nintendo Submission Package (*.nsp);;NX Cartridge Image (*.xci) - + Install Files - + %n file(s) remaining - + Installing file "%1"... - - + + Install Results - + To avoid possible conflicts, we discourage users from installing base games to the NAND. Please, only use this feature to install updates and DLC. - + %n file(s) were newly installed - + %n file(s) were overwritten - + %n file(s) failed to install - + System Application - + System Archive - + System Application Update - + Firmware Package (Type A) - + Firmware Package (Type B) - + Game - + Game Update - + Game DLC - + Delta Title - + Select NCA Install Type... - + Please select the type of title you would like to install this NCA as: (In most instances, the default 'Game' is fine.) - + Failed to Install - + The title type you selected for the NCA is invalid. - + File not found - + File "%1" not found - + OK - + Function Disabled - + Compatibility list reporting is currently disabled. Check back later! - + Error opening URL - + Unable to open the URL "%1". - + TAS Recording - + Overwrite file of player 1? - + Invalid config detected - + Handheld controller can't be used on docked mode. Pro controller will be selected. - - + + Amiibo - - + + The current amiibo has been removed - + Error - - + + The current game is not looking for amiibos - + Amiibo File (%1);; All Files (*.*) - + Load Amiibo - + Error loading Amiibo data - + The selected file is not a valid amiibo - + The selected file is already on use - + An unknown error occurred - + No firmware available - + Firmware Corrupted - + Unknown applet - + Applet doesn't map to a known value. - + Record not found - + Applet not found. Please reinstall firmware. - + Capture Screenshot - + PNG Image (*.png) - + TAS state: Running %1/%2 - + TAS state: Recording %1 - + TAS state: Idle %1/%2 - + TAS State: Invalid - + &Stop Running - + Stop R&ecording - + Building: %n shader(s) - + Scale: %1x %1 is the resolution scaling factor - + Speed: %1% / %2% - + Speed: %1% - + Game: %1 FPS - + Frame: %1 ms - + NO AA - - NO FX - - - - - FX - - - - + VOLUME: MUTE - + VOLUME: %1% Volume percentage (e.g. 50%) - + Derivation Components Missing - + Decryption keys are missing. Install them now? - + Wayland Detected! - + Wayland is known to have significant performance issues and mysterious bugs. It's recommended to use X11 instead. @@ -7983,74 +7847,74 @@ Would you like to force it for future launches? - + Use X11 - + Continue with Wayland - + Don't show again - + Restart Required - + Restart Eden to apply the X11 backend. - + Slow - + Turbo - + Unlocked - + Select RomFS Dump Target - + Please select which RomFS you would like to dump. - + Are you sure you want to close Eden? - - - + + + Eden - + Are you sure you want to stop the emulation? Any unsaved progress will be lost. - + The currently running application has requested Eden to not exit. Would you like to bypass this and exit anyway? @@ -9237,275 +9101,275 @@ p, li { white-space: pre-wrap; } - This game may require firmware to function properly, and you don't have any installed. Please install firmware before launching, or press "OK" to launch anyways. + The game you are trying to launch requires firmware to boot or to get past the opening menu. Please <a href='https://yuzu-mirror.github.io/help/quickstart'>dump and install firmware</a>, or press "OK" to launch anyways. - + Installing Firmware... - - - - - + + + + + Cancel - + Firmware Install Failed - + Firmware Install Succeeded - + Firmware integrity verification failed! - - + + Verification failed for the following files: %1 - - + + Verifying integrity... - - - - Integrity verification succeeded! - - + Integrity verification succeeded! + + + + + The operation completed successfully. - - + + Integrity verification failed! - + File contents may be corrupt or missing. - + Integrity verification couldn't be performed - + Firmware installation cancelled, firmware may be in a bad state or corrupted. File contents could not be checked for validity. - + Select Dumped Keys Location - + Decryption Keys install succeeded - + Decryption Keys install failed - + Orphaned Profiles Detected! - + UNEXPECTED BAD THINGS MAY HAPPEN IF YOU DON'T READ THIS!<br>Eden has detected the following save directories with no attached profile:<br>%1<br><br>The following profiles are valid:<br>%2<br><br>Click "OK" to open your save folder and fix up your profiles.<br>Hint: copy the contents of the largest or last-modified folder elsewhere, delete all orphaned profiles, and move your copied contents to the good profile.<br><br>Still confused? See the <a href='https://git.eden-emu.dev/eden-emu/eden/src/branch/master/docs/user/Orphaned.md'>help page</a>.<br> - + Really clear data? - + Important data may be lost! - + Are you REALLY sure? - + Once deleted, your data will NOT come back! Only do this if you're 100% sure you want to delete this data. - + Clearing... - + Select Export Location - + %1.zip - - - + + + Zipped Archives (*.zip) - + Exporting data. This may take a while... - + Exporting - + Exported Successfully - + Data was exported successfully. - + Export Cancelled - + Export was cancelled by the user. - + Export Failed - + Ensure you have write permissions on the targeted directory and try again. - + Select Import Location - + Import Warning - + All previous data in this directory will be deleted. Are you sure you wish to proceed? - + Importing data. This may take a while... - + Importing - + Imported Successfully - + Data was imported successfully. - + Import Cancelled - + Import was cancelled by the user. - + Import Failed - + Ensure you have read permissions on the targeted directory and try again. - + Keys not installed - + Install decryption keys and restart Eden before attempting to install firmware. - + Select Dumped Firmware Source Location - + Select Dumped Firmware ZIP - + Firmware cleanup failed - + Failed to clean up extracted firmware cache. Check write permissions in the system temp directory and try again. OS reported error: %1 diff --git a/dist/languages/pl.ts b/dist/languages/pl.ts index 28a51ae4f8..1de0411aea 100644 --- a/dist/languages/pl.ts +++ b/dist/languages/pl.ts @@ -592,22 +592,12 @@ SMAA oferuje najlepszą jakość. FXAA może zapewnić stabilniejszy obraz w niższych rozdzielczościach. - - Enable post-processing effects - - - - - Applies post-processing effects to the final image. - - - - + Fullscreen Mode: Tryb Pełnoekranowy: - + The method used to render the window in fullscreen. Borderless offers the best compatibility with the on-screen keyboard that some games request for input. Exclusive fullscreen may offer better performance and better Freesync/Gsync support. @@ -616,12 +606,12 @@ Tryb bez ramek zapewnia najlepszą zgodność z klawiaturą ekranową wymaganą Pełny ekran wyłączny może oferować lepszą wydajność i lepsze wsparcie FreeSync/G-Sync. - + Aspect Ratio: Format obrazu: - + Stretches the renderer to fit the specified aspect ratio. Most games only support 16:9, so modifications are required to get other ratios. Also controls the aspect ratio of captured screenshots. @@ -630,35 +620,35 @@ Większość gier obsługuje wyłącznie 16:9, więc inne proporcje wymagają mo Kontroluje także proporcje przechwytywanych zrzutów ekranu. - + Use persistent pipeline cache Używaj trwałej pamięci podręcznej (cache) potoków - + Allows saving shaders to storage for faster loading on following game boots. Disabling it is only intended for debugging. Pozwala zapisywać shadery w pamięci masowej, aby przyspieszyć ładowanie przy kolejnych uruchomieniach gry. Wyłączanie tej opcji jest przeznaczone do debugowania. - + Use asynchronous GPU emulation - + Uses an extra CPU thread for rendering. This option should always remain enabled. - + NVDEC emulation: Emulacja NVDEC: - + Specifies how videos should be decoded. It can either use the CPU or the GPU for decoding, or perform no decoding at all (black screen on videos). In most cases, GPU decoding provides the best performance. @@ -667,12 +657,12 @@ Dekodowanie może być wykonywane przez CPU albo GPU, albo może być całkowici W większości przypadków najlepszą wydajność zapewnia dekodowanie na GPU. - + ASTC Decoding Method: Metoda dekodowania ASTC: - + This option controls how ASTC textures should be decoded. CPU: Use the CPU for decoding. GPU: Use the GPU's compute shaders to decode ASTC textures (recommended). @@ -684,12 +674,12 @@ GPU: użyj shaderów obliczeniowych GPU do dekodowania tekstur ASTC (zalecane). CPU asynchronicznie: użyj CPU do dekodowania na żądanie. Eliminuje zacięcia podczas dekodowania ASTC, ale może powodować artefakty. - + ASTC Recompression Method: Metoda rekompresji ASTC: - + Most GPUs lack support for ASTC textures and must decompress to anintermediate format: RGBA8. BC1/BC3: The intermediate format will be recompressed to BC1 or BC3 format, saving VRAM but degrading image quality. @@ -697,64 +687,44 @@ BC1/BC3: The intermediate format will be recompressed to BC1 or BC3 format, BC1/BC3: format pośredni zostanie ponownie skompresowany do BC1 lub BC3 — oszczędza VRAM kosztem jakości obrazu. - + Frame Pacing Mode (Vulkan only) - + Controls how the emulator manages frame pacing to reduce stuttering and make the frame rate smoother and more consistent. - + VRAM Usage Mode: Tryb wykorzystania VRAM: - + Selects whether the emulator should prefer to conserve memory or make maximum usage of available video memory for performance. Aggressive mode may impact performance of other applications such as recording software. Określa, czy emulator ma oszczędzać pamięć, czy maksymalnie wykorzystywać dostępną pamięć wideo dla wydajności. Tryb agresywny może pogorszyć działanie innych aplikacji, np. oprogramowania do nagrywania. - + Skip CPU Inner Invalidation Pomiń wewnętrzne unieważnienie procesora CPU - + Skips certain cache invalidations during memory updates, reducing CPU usage and improving latency. This may cause soft-crashes. Pomija niektóre unieważnienia pamięci podręcznej po stronie CPU podczas aktualizacji pamięci, zmniejszając użycie CPU i poprawiając jego wydajność. Może powodować błędy lub awarie w niektórych grach. - - GPU Readback Before NCE Invalidation - - - - - Flushes GPU buffer data back to guest memory before NCE invalidates the whole guest page, preserving it while the CPU store proceeds. - - - - - Patch Runtime NROs for NCE - - - - - Applies NCE code patches to runtime-loaded NRO modules.This is required for some games to run correctly. - - - - + VSync Mode: Tryb synchronizacji pionowej: - + FIFO (VSync) does not drop frames or exhibit tearing but is limited by the screen refresh rate. FIFO Relaxed allows tearing as it recovers from a slow down. Mailbox can have lower latency than FIFO and does not tear but may drop frames. @@ -765,12 +735,12 @@ Mailbox może mieć niższe opóźnienia niż FIFO i nie powoduje tearingu, ale Immediate (bez synchronizacji) wyświetla wszystko, co jest dostępne, i może powodować tearing. - + Sync Memory Operations Synchronizuj operacje pamięci - + Ensures data consistency between compute and memory operations. This option fixes issues in games, but may degrade performance. Unreal Engine 4 games often see the most significant changes thereof. @@ -778,159 +748,171 @@ Unreal Engine 4 games often see the most significant changes thereof. Gry z Unreal Engine 4 mogą być najbardziej dotknięte. - + Enable asynchronous presentation (Vulkan only) Włącz asynchroniczną prezentację (tylko Vulkan) - + Slightly improves performance by moving presentation to a separate CPU thread. Nieznacznie poprawia wydajność, przenosząc prezentację na oddzielny wątek CPU. - + Force maximum clocks (Vulkan only) Wymuś maksymalne zegary (Tylko Vulkan) - + Runs work in the background while waiting for graphics commands to keep the GPU from lowering its clock speed. Uruchamia pracę w tle podczas oczekiwania na komendy graficzne aby GPU nie obniżało taktowania. - + Anisotropic Filtering: Filtrowanie anizotropowe: - + Controls the quality of texture rendering at oblique angles. Safe to set at 16x on most GPUs. Steruje jakością renderowania tekstur pod ostrymi kątami. Na większości GPU bezpieczną wartością jest 16x. - + GPU Mode: Tryb GPU: - + Controls the GPU emulation mode. Most games render fine with Fast, but Accurate is still required for some. Particles tend to only render correctly with Accurate mode. - + DMA Accuracy: Dokładność DMA: - + Controls the DMA read mode. Unsafe is faster, while Safe is more stable and can fix issues in some games. Default follows the GPU Accuracy setting. - + GPU Fence Behavior: - + Controls the GPU fence synchronization behavior. Immediate is the fastest option, but can introduce some issues. Balanced offers better compatibility and may fix issues in some games. Accurate further improves compatibility at the cost of some performance. -Default follows the GPU Mode setting. +Strict is the slowest option, but can fix issues that require stricter synchronization. +Default follows the GPU Accuracy setting. - + + Enable GPU buffer readback + + + + + Preserves GPU-modified data by reading it back before uploading. +Some games require this to render certain effects properly. + + + + Enable asynchronous shader compilation Włącz asynchroniczną kompilację shaderów - + May reduce shader stutter. Może zmniejszyć zacięcia spowodowane kompilacją shaderów. - + GPU Clocks - + Makes the game believe GPU work finishes faster than it does, so it stops lowering resolution and render distance to fit the Switch's clocks. - + GPU Unswizzle - + Accelerates BCn 3D texture decoding using GPU compute. Disable if experiencing crashes or graphical glitches. - + GPU Unswizzle Max Texture Size - + Sets the maximum size (MiB) for GPU-based texture unswizzling. While the GPU is faster for medium and large textures, the CPU may be more efficient for very small ones. Adjust this to find the balance between GPU acceleration and CPU overhead. - + GPU Unswizzle Stream Size - + Sets the maximum amount of texture data (in MiB) processed per frame. Higher values can reduce stutter during texture loading but may impact frame consistency. - + GPU Unswizzle Chunk Size - + Determines the number of depth slices processed in a single dispatch. Increasing this can improve throughput on high-end GPUs but may cause TDR or driver timeouts on weaker hardware. - + Use Vulkan pipeline cache Użyj pamięci podręcznej strumienia dla Vulkana - + Enables GPU vendor-specific pipeline cache. This option can improve shader loading time significantly in cases where the Vulkan driver does not store pipeline cache files internally. Włącza specyficzną dla producenta GPU pamięć podręczną potoków. Ta opcja może znacząco skrócić czas ładowania shaderów w przypadkach, gdy sterownik Vulkan nie przechowuje wewnętrznie plików pamięci podręcznej potoków. - + Enable Compute Pipelines (Intel Vulkan Only) Włącz potoki obliczeniowe (tylko Intel Vulkan) - + Required by some games. This setting only exists for Intel proprietary drivers and may crash if enabled. Compute pipelines are always enabled on all other drivers. @@ -939,181 +921,192 @@ To ustawienie istnieje wyłącznie dla sterowników Intela i może spowodować b Na wszystkich pozostałych sterownikach potoki obliczeniowe są zawsze włączone. - + Enable Reactive Flushing Włącz reaktywne opróżnianie buforów - + Uses reactive flushing instead of predictive flushing, allowing more accurate memory syncing. Używa opróżniania reaktywnego zamiast predykcyjnego, co umożliwia dokładniejsze synchronizowanie pamięci. - + Sync to framerate of video playback Synchronizuj do liczby klatek odtwarzanego wideo - + Run the game at normal speed during video playback, even when the framerate is unlocked. Uruchamiaj grę z normalną prędkością podczas odtwarzania wideo, nawet przy odblokowanej liczbie klatek na sekundę. - + Barrier feedback loops Pętle sprzężenia zwrotnego barier - + Improves rendering of transparency effects in specific games. Poprawia renderowanie efektów przezroczystości w niektórych grach. - + Enable buffer history - + Enables access to previous buffer states. This option may improve rendering quality and performance consistency in some games. - + Fix bloom effects - + Removes bloom in Burnout. - + + Enable Legacy Rescale Pass + + + + + May fix rescale issues in some games by relying on behavior from the previous implementation. +Legacy behavior workaround that fixes line artifacts on AMD and Intel GPUs, and grey texture flicker on Nvidia GPUs in Luigis Mansion 3. + + + + Extended Dynamic State Rozszerzony stan dynamiczny - + Controls the number of features that can be used in Extended Dynamic State. Higher states allow for more features and can increase performance, but may cause additional graphical issues. Kontroluje liczbę funkcji, które mogą być używane w Extended Dynamic State. Wyższe poziomy pozwalają na użycie większej liczby funkcji i mogą zwiększyć wydajność, ale mogą powodować dodatkowe problemy z grafiką. - + Vertex Input Dynamic State Dynamiczny stan wejścia wierzchołków - + Enables vertex input dynamic state feature for better quality and performance. Włącza funkcję dynamicznego stanu wejścia wierzchołków, poprawiając jakość i wydajność. - + Sample Shading Cieniowanie próbkowe - + Allows the fragment shader to execute per sample in a multi-sampled fragment instead of once per fragment. Improves graphics quality at the cost of performance. Higher values improve quality but degrade performance. Pozwala wykonywać shader fragmentów dla każdej próbki we fragmencie wielokrotnie próbkowanym zamiast raz dla każdego fragmentu. Poprawia jakość grafiki kosztem wydajności. Wyższe wartości poprawiają jakość, ale obniżają wydajność. - + RNG Seed Ziarno RNG - + Controls the seed of the random number generator. Mainly used for speedrunning. Ustala ziarno generatora liczb losowych. Głównie używane do speedrunów. - + Device Name Nazwa urządzenia - + The name of the console. The name of the console. - + Homebrew Args - + Command-line arguments passed to homebrew at launch (e.g. -noglsl). - + Custom RTC Date: Własna data RTC - + This option allows to change the clock of the console. Can be used to manipulate time in games. Ta opcja pozwala zmienić zegar konsoli. Może służyć do manipulowania czasem w grach. - + The number of seconds from the current unix time Liczba sekund od bieżącego czasu Unix - + Language: Język: - + This option can be overridden when region setting is auto-select Ta opcja może zostać nadpisana, gdy ustawienie regionu to automatyczny wybór. - + Region: Region: - + The region of the console. Region konsoli. - + Time Zone: Strefa czasowa: - + The time zone of the console. Strefa czasowa konsoli. - + Sound Output Mode: Tryb wyjścia dźwięku: - + Console Mode: Tryb konsoli - + Selects if the console is in Docked or Handheld mode. Games will change their resolution, details and supported controllers and depending on this setting. Setting to Handheld can help improve performance for low end systems. @@ -1122,1026 +1115,1042 @@ W zależności od tego ustawienia gry zmienią swoją rozdzielczość, szczegó Ustawienie na Handheld może poprawić wydajność na słabszych komputerach. - + Prompt for user profile on boot Pytaj o profil użytkownika przy uruchomieniu. - + Useful if multiple people use the same PC. Przydatne, gdy z tego samego PC korzysta wiele osób. - + Pause when not in focus Wstrzymuj, gdy okno nie jest aktywne - + Pauses emulation when focusing on other windows. Wstrzymuje emulację po przełączeniu na inne okna. - + Confirm before stopping emulation Potwierdzaj przed zatrzymaniem emulacji - + Overrides prompts asking to confirm stopping the emulation. Enabling it bypasses such prompts and directly exits the emulation. Nadpisuje monity z prośbą o potwierdzenie zatrzymania emulacji. Włączenie powoduje pominięcie takich monitów i bezpośrednie wyjście z emulacji. - + Hide mouse on inactivity Ukryj mysz przy braku aktywności - + Hides the mouse after 2.5s of inactivity. Ukrywa kursor po 2,5 s bezczynności. - + + Disable controller applet + Wyłącz aplet kontrolera + + + + Forcibly disables the use of the controller applet in emulated programs. +When a program attempts to open the controller applet, it is immediately closed. + Wymusza wyłączenie użycia apletu kontrolera w oprogramowaniu uruchamianym w emulacji. +Jeśli emulowane oprogramowanie próbuje otworzyć aplet kontrolera, jest on natychmiast zamykany. + + + Check for updates Sprawdź aktualizacje - + Whether or not to check for updates upon startup. Czy sprawdzać aktualizacje przy uruchomieniu. - + Enable Gamemode Włącz Tryb gry - + Force X11 as Graphics Backend Wymuś X11 jako backend grafiki - + Custom frontend Niestandardowy frontend - + Real applet Prawdziwy aplet - - - Disabled - Wyłączone - - - + Never Nigdy - + On Load Przy wczytywaniu - + Always Zawsze - + CPU CPU - + GPU GPU - + CPU Asynchronous Asynchroniczne CPU - + Uncompressed (Best quality) Brak (najlepsza jakość) - + BC1 (Low quality) BC1 (niska jakość) - + BC3 (Medium quality) BC3 (średnia jakość) - - + + Auto Automatyczny - + 30 FPS - + 60 FPS - + 90 FPS - + 120 FPS - + Conservative Konserwatywny - + Aggressive Agresywny - + Vulkan Vulkan - + OpenGL GLSL - + OpenGL GLASM (Assembly Shaders, NVIDIA Only) - + OpenGL SPIR-V (Experimental, AMD/Mesa Only) - + Null Null - + Fast Szybkie - - - + + + Accurate Dokładny - - - + + + Default Domyślny - + Unsafe (fast) Niezalecane (szybkie) - + Safe (stable) Bezpieczne (stabilne) - + Immediate - + Balanced Zrównoważony - + + Strict + + + + Unsafe Niebezpieczny - + Paranoid (disables most optimizations) Paranoiczne (wyłącza większość optymalizacji) - + Debugging Debugowanie - + Dynarmic Dynamiczny - + NCE NCE - + Borderless Windowed W oknie (Bezramkowy) - + Exclusive Fullscreen Exclusive Fullscreen - + No Video Output Brak wyjścia wideo - + CPU Video Decoding Dekodowanie Wideo przez CPU - + GPU Video Decoding (Default) Dekodowanie Wideo przez GPU (Domyślne) - + 0.25X (180p/270p) [EXPERIMENTAL] 0,25x (180p/270p) [EKSPERYMENTALNE] - + 0.5X (360p/540p) [EXPERIMENTAL] 0,5x (360p/540p) [EKSPERYMENTALNE] - + 0.75X (540p/810p) [EXPERIMENTAL] 0.75X (540p/810p) [EKSPERYMENTALNE] - + 1X (720p/1080p) 1X (720p/1080p) - + 1.25X (900p/1350p) [EXPERIMENTAL] 1.25X (900p/1350p) [EKSPERYMENTALNE] - + 1.5X (1080p/1620p) [EXPERIMENTAL] 1.5X (1080p/1620p) [Ekperymentalnie] - + 2X (1440p/2160p) 2X (1440p/2160p) - + 3X (2160p/3240p) 3X (2160p/3240p) - + 4X (2880p/4320p) 4X (2880p/4320p) - + 5X (3600p/5400p) 5X (3600p/5400p) - + 6X (4320p/6480p) 6X (4320p/6480p) - + 7X (5040p/7560p) 7X (5040p/7560p) - + 8X (5760p/8640p) 8X (5760p/8640p) - + Nearest Neighbor Najbliższy sąsiadujący - + Bilinear Bilinearny - + Bicubic Bikubiczny - + Gaussian Kulisty - + Lanczos Lanczos - + ScaleForce ScaleForce - + AMD FidelityFX Super Resolution AMD FidelityFX Super Resolution - + Area Obszar - + MMPX MMPX - + Zero-Tangent Zero-Tangent - + B-Spline B-Spline - + Mitchell Mitchell - + Spline-1 Spline-1 - + Snapdragon Game Super Resolution - + Snapdragon Game Super Resolution EdgeDir - + None Żadna (wyłączony) - + FXAA FXAA - + SMAA SMAA - + Default (16:9) Domyślne (16:9) - + Force 4:3 Wymuś 4:3 - + Force 21:9 Wymuś 21:9 - + Force 16:10 Wymuś 16:10 - + Stretch to Window Rozciągnij do Okna - + Automatic Automatyczne - + 2x 2x - + 4x 4x - + 8x 8x - + 16x 16x - + Japanese (日本語) Japoński (日本語) - + American English Angielski Amerykański - + French (français) Francuski (français) - + German (Deutsch) Niemiecki (Niemcy) - + Italian (italiano) Włoski (italiano) - + Spanish (español) Hiszpański (español) - + Chinese Chiński - + Korean (한국어) Koreański (한국어) - + Dutch (Nederlands) Duński (Holandia) - + Portuguese (português) Portugalski (português) - + Russian (Русский) Rosyjski (Русский) - + Taiwanese Tajwański - + British English Angielski Brytyjski - + Canadian French Fancuski (Kanada) - + Latin American Spanish Hiszpański (Latin American) - + Simplified Chinese Chiński (Uproszczony) - + Traditional Chinese (正體中文) Chiński tradycyjny (正體中文) - + Brazilian Portuguese (português do Brasil) Portugalski (português do Brasil) - + Polish (polska) - + Thai (แบบไทย) - - + + Japan Japonia - + USA USA - + Europe Europa - + Australia Australia - + China Chiny - + Korea Korea - + Taiwan Tajwan - + Auto (%1) Auto select time zone Auto (%1) - + Default (%1) Default time zone Domyślne (%1) - + CET CET - + CST6CDT CST6CDT - + Cuba Cuba - + EET EET - + Egypt Egipt - + Eire Irlandia - + EST EST - + EST5EDT EST5EDT - + GB GB - + GB-Eire GB-Eire - + GMT GMT - + GMT+0 GMT+0 - + GMT-0 GMT-0 - + GMT0 GMT0 - + Greenwich Greenwich - + Hongkong Hongkong - + HST HST - + Iceland Islandia - + Iran Iran - + Israel Izrael - + Jamaica Jamajka - + Kwajalein Kwajalein - + Libya Libia - + MET MET - + MST MST - + MST7MDT MST7MDT - + Navajo Navajo - + NZ NZ - + NZ-CHAT NZ-CHAT - + Poland Polska - + Portugal Portugalia - + PRC PRC - + PST8PDT PST8PDT - + ROC ROC - + ROK ROK - + Singapore Singapur - + Turkey Turcja - + UCT UCT - + Universal Uniwersalny - + UTC UTC - + W-SU W-SU - + WET WET - + Zulu Zulu - + Mono Mono - + Stereo Stereo - + Surround Surround - + 4GB DRAM (Default) 4GB DRAM (Domyślne) - + 6GB DRAM (Unsafe) 6GB DRAM (NIebezpieczne) - + 8GB DRAM 8GB DRAM - + 10GB DRAM (Unsafe) 10GB DRAM (NIebezpieczne) - + 12GB DRAM (Unsafe) 12GB DRAM (NIebezpieczne) - + Docked Zadokowany - + Handheld Przenośnie + + + + Normal + + - Normal + Boost - Boost - - - - - Overclock - + Always ask (Default) Zawsze pytaj (Domyślne) - + Only if game specifies not to stop Tylko jeśli gra określa, aby nie zatrzymywać - + Never ask Nie pytaj więcej - + Very Small (16 MB) - + Small (32 MB) - + Normal (128 MB) - + Large (256 MB) - + Very Large (512 MB) - + Very Low (4 MB) - + Low (8 MB) - + Normal (16 MB) - + Medium (32 MB) - + High (64 MB) - + Very Low (32) - + Low (64) - + Normal (128) - + Medium (256) Średnie (256) - + High (512) Wysokie (512) - + + Disabled + Wyłączone + + + ExtendedDynamicState 1 ExtendedDynamicState 1 - + ExtendedDynamicState 2 ExtendedDynamicState 2 - + ExtendedDynamicState 3 ExtendedDynamicState 3 - + Tree View - + Grid View @@ -3251,38 +3260,33 @@ Czy chcesz usunąć stare dane zapisu? Kolor tła - + % FSR/SGSR sharpening percentage (e.g. 50%) - - Configure Effects... - - - - + Off Wyłączone - + VSync Off VSync wyłączony - + Recommended Zalecane - + On Włączone - + VSync On VSync aktywny @@ -4895,130 +4899,6 @@ Once deleted, these can NOT be recovered. Are you 100% sure you want to delete t - - ConfigurePostProcessing - - - Post-Processing Effects - - - - - Changes apply immediately while a game is running. - - - - - Enable post-processing - - - - - Preset: - - - - - Apply - - - - - Reset Values - - - - - Return every effect to the values the preset ships with. - - - - - Save As... - - - - - Save Preset - - - - - Preset name: - - - - - Clear - - - - - Remove every effect in use and deselect the preset. - - - - - Add Effect - - - - - None - - - - - No effects in use. Pick a preset and press Apply, or add effects one by one. - - - - - Custom chain. Pick a preset above and press Apply to replace it. - - - - - Active preset: %1 (modified). Press Reset Values to go back to how it ships. - - - - - Active preset: %1 - - - - - Enabled - - - - - Disabled - - - - - Reset to defaults - - - - - Effect '%1' was not found. - - - - - Effect failed to compile: -%1 - - - - - No usable ReShade FX effects were found. Place .fx files in the post_shaders folder. - - - ConfigureProfileManager @@ -6106,50 +5986,50 @@ Przejdź do sekcji Konfiguracja -> System -> Sieć i dokonaj wyboru. GRenderWindow - - + + OpenGL not available! OpenGL niedostępny! - + OpenGL shared contexts are not supported. Współdzielone konteksty OpenGL nie są obsługiwane. - + Eden has not been compiled with OpenGL support. Eden nie został skompilowany z obsługą OpenGL. - - - + + + Error while initializing OpenGL! Błąd podczas inicjowania OpenGL! - + Your GPU may not support OpenGL, or you do not have the latest graphics driver. Twoja karta graficzna może nie obsługiwać OpenGL lub nie masz najnowszych sterowników karty graficznej. - + Error while initializing OpenGL 4.6! Błąd podczas inicjowania OpenGL 4.6! - + Your GPU may not support OpenGL 4.6, or you do not have the latest graphics driver.<br><br>GL Renderer:<br>%1 Twoja karta graficzna może nie obsługiwać OpenGL 4.6 lub nie masz najnowszych sterowników karty graficznej.<br><br>GL Renderer:<br>%1 - + Your GPU may not support one or more required OpenGL extensions. Please ensure you have the latest graphics driver.<br><br>GL Renderer:<br>%1<br><br>Unsupported extensions:<br>%2 Twoja karta graficzna może nie obsługiwać co najmniej jednego wymaganego rozszerzenia OpenGL. Upewnij się, że masz najnowsze sterowniki karty graficznej<br><br>GL Renderer:<br>%1<br><br>Nieobsługiwane rozszerzenia:<br>%2 - + This build doesn't have OpenGL support. @@ -6971,42 +6851,42 @@ Komunikat debugowania: Zresetuj rozmiar okna do 1080p - + &Multiplayer &Multiplayer - + &Tools &Narzędzia - + Am&iibo Am&iibo - + Launch &Applet - + &TAS &TAS - + &Create Home Menu Shortcut &Utwórz skrót w Menu głównym - + Install &Firmware Zainstaluj &Firmware - + &Help &Pomoc @@ -7032,7 +6912,7 @@ Komunikat debugowania: - + &Pause &Pauza @@ -7133,176 +7013,176 @@ Komunikat debugowania: - &User Handbook - + Open &Quickstart Guide + Otwórz &Poradnik szybkiego startu - + + &FAQ + &FAQ + + + &Capture Screenshot &Zrób zdjęcie - + &Album - + &Set Nickname and Owner &Ustaw nick oraz właściciela - + &Delete Game Data &Usuń dane gry - + &Restore Amiibo &Przywróć Amiibo - + &Format Amiibo &Sformatuj Amiibo - + &Mii Editor - + &Configure TAS... &Skonfiguruj TAS - + Configure C&urrent Game... Skonfiguruj &obecną grę... - - + + &Start &Start - + &Reset &Zresetuj - - + + R&ecord &Nagraj - + Open &Controller Menu Otwórz Menu &kontrolera - + Install Decryption &Keys Zainstaluj &klucze deszyfrujące - + &Home Menu - + &Desktop &Pulpit - + &Application Menu Menu &Aplikacji - + &Root Data Folder Folder &Root (danych głównych) - + &NAND Folder Folder &NAND - + &SDMC Folder Folder &SDMC - + &Mod Folder Folder &modów - + &Log Folder Folder &logów - + From Folder Z Folderu - + From ZIP Z pliku ZIP - + &Eden Dependencies Zależności &Eden - + &Data Manager Manager &Danych - + &Tree View - + &Grid View - + Game Icon Size - - + + None Żadna (wyłączony) - + Show Game &Name - - - Show &Performance Overlay - - - Post-Processing &Shaders... + Show &Performance Overlay @@ -7311,406 +7191,401 @@ Komunikat debugowania: - + Small (32x32) - + Standard (64x64) - + Large (128x128) - + Full Size (256x256) - + Broken Vulkan Installation Detected Wykryto uszkodzoną instalację Vulkan - + Vulkan initialization failed during boot. Inicjalizacja Vulkana nie powiodła się podczas uruchamiania. - + Running a game TRANSLATORS: This string is shown to the user to explain why yuzu needs to prevent the computer from sleeping Gra uruchomiona - + Loading Web Applet... Ładowanie apletu internetowego... - - + + Disable Web Applet Wyłącz Aplet sieciowy - + Disabling the web applet can lead to undefined behavior and should only be used with Super Mario 3D All-Stars. Are you sure you want to disable the web applet? (This can be re-enabled in the Debug settings.) Wyłączenie apletu sieciowego może prowadzić do nieprzewidywalnego działania i powinno być używane wyłącznie z Super Mario 3D All-Stars. Na pewno chcesz wyłączyć aplet sieciowy? (Tę opcję można ponownie włączyć w ustawieniach debugowania). - + The amount of shaders currently being built Liczba shaderów aktualnie budowanych - + The current selected resolution scaling multiplier. Aktualnie wybrany mnożnik skalowania rozdzielczości. - + Current emulation speed. Values higher or lower than 100% indicate emulation is running faster or slower than a Switch. Bieżąca prędkość emulacji. Wartości wyższe lub niższe niż 100% oznaczają, że emulacja działa odpowiednio szybciej lub wolniej niż na Switchu. - + How many frames per second the game is currently displaying. This will vary from game to game and scene to scene. Liczba klatek na sekundę aktualnie wyświetlanych przez grę. Wartość ta zależy od gry oraz od konkretnej sceny. - + Time taken to emulate a Switch frame, not counting framelimiting or v-sync. For full-speed emulation this should be at most 16.67 ms. Czas potrzebny na emulację jednej klatki Switcha, bez uwzględniania ogranicznika klatek i synchronizacji pionowej. Dla emulacji z pełną prędkością powinno to być maksymalnie 16,67 ms. - + Unmute Wyłącz wyciszenie - + Mute Wycisz - + Reset Volume Zresetuj głośność - - Configure Effects... - - - - + &Clear Recent Files &Usuń Ostatnie pliki - + &Continue &Kontynuuj - + Warning: Outdated Game Format Ostrzeżenie: Nieaktualny format gry - + You are using the deconstructed ROM directory format for this game, which is an outdated format that has been superseded by others such as NCA, NAX, XCI, or NSP. Deconstructed ROM directories lack icons, metadata, and update support.<br>For an explanation of the various Switch formats Eden supports, out our user handbook. This message will not be shown again. Używasz dla tej gry formatu katalogu zdekonstruowanego ROM-u, który jest przestarzały i został zastąpiony innymi formatami, takimi jak NCA, NAX, XCI czy NSP. Katalogi takich ROM-ów nie zawierają ikon, metadanych ani nie obsługują aktualizacji.<br>Aby uzyskać wyjaśnienie dotyczące różnych formatów Switcha obsługiwanych przez Eden, zajrzyj do naszego podręcznika użytkownika. Ten komunikat nie zostanie wyświetlony ponownie. - - + + Error while loading ROM! Błąd podczas wczytywania ROMu! - + The ROM format is not supported. Ten format ROMu nie jest wspierany. - + An error occurred initializing the video core. Wystąpił błąd podczas inicjowania rdzenia wideo. - - This is usually caused by outdated GPU drivers. Please see the log for more details. See: <a href='https://git.eden-emu.dev/eden-emu/eden/src/branch/master/docs/user/HowToAccessLogs.md'>How to access log files</a>. - + + Eden has encountered an error while running the video core. This is usually caused by outdated GPU drivers, including integrated ones. Please see the log for more details. For more information on accessing the log, please see the following page: <a href='https://yuzu-mirror.github.io/help/reference/log-files/'>How to Upload the Log File</a>. + Podczas uruchamiania rdzenia wideo wystąpił błąd. Zazwyczaj jest to spowodowane nieaktualnymi sterownikami GPU, w tym sterownikami zintegrowanymi. Więcej szczegółów można znaleźć w logu. Więcej informacji na temat dostępu do logu można znaleźć na następującej stronie: <a href='https://yuzu-mirror.github.io/help/reference/log-files/'>Jak przesłać Log</a>. - + Error while loading ROM! %1 %1 signifies a numeric error code. Błąd podczas wczytywania ROMu! %1 - + %1<br>Please redump your files or ask on Discord/Stoat for help. %1 signifies an error string. %1<br>Proszę ponownie zrzucić pliki lub poprosić o pomoc na Discordzie/Stoat. - + An unknown error occurred. Please see the log for more details. Wystąpił nieznany błąd. Więcej informacji można znaleźć w pliku log. - - + + (64-bit) (64-bit) - - + + (32-bit) (32-bit) - - + + %1 %2 %1 is the title name. %2 indicates if the title is 64-bit or 32-bit %1 %2 - + Closing software... Zamykanie aplikacji... - + Save Data Zapis danych - + Mod Data Dane modów - + Error Opening %1 Folder Błąd podczas otwierania folderu %1 - - + + Folder does not exist! Folder nie istnieje! - + Remove Installed Game Contents? Usunąć zainstalowaną zawartość gry? - + Remove Installed Game Update? Usunąć zainstalowaną aktualizację gry? - + Remove Installed Game DLC? Usunąć zainstalowane DLC gry? - + Remove Entry Usuń wpis - + Delete OpenGL Transferable Shader Cache? Usunąć przenośną pamięć podręczną shaderów OpenGL? - + Delete Vulkan Transferable Shader Cache? Usunąć przenośną pamięć podręczną shaderów Vulkan? - + Delete All Transferable Shader Caches? Usunąć wszystkie przenośne pamięci podręczne shaderów? - + Remove Custom Game Configuration? Usunąć niestandardową konfigurację gry? - + Remove Cache Storage? Usunąć pamięć podręczną? - + Remove File Usuń plik - + Remove Play Time Data Usuń dane czasu gry - + Reset play time? Zresetować czas gry? - - + + RomFS Extraction Failed! Wyodrębnianie RomFS nie powiodło się! - + There was an error copying the RomFS files or the user cancelled the operation. Wystąpił błąd podczas kopiowania plików RomFS lub użytkownik przerwał operację. - + Full Pełny - + Skeleton Szkielet - + Select RomFS Dump Mode Wybierz tryb zrzutu RomFS - + Please select the how you would like the RomFS dumped.<br>Full will copy all of the files into the new directory while <br>skeleton will only create the directory structure. Wybierz sposób wykonania zrzutu RomFS. <br>Tryb „Pełny” skopiuje wszystkie pliki do nowego katalogu, <br>natomiast „Szkielet” utworzy jedynie strukturę katalogów. - + There is not enough free space at %1 to extract the RomFS. Please free up space or select a different dump directory at Emulation > Configure > System > Filesystem > Dump Root Nie ma wystarczająco miejsca w %1 aby wyodrębnić RomFS. Zwolnij trochę miejsca, albo zmień ścieżkę zrzutu RomFs w Emulacja > Konfiguruj > System > System Plików > Źródło Zrzutu - + Extracting RomFS... Wypakowywanie RomFS... - - + + Cancel Anuluj - + RomFS Extraction Succeeded! Wypakowanie RomFS zakończone pomyślnie! - + The operation completed successfully. Operacja zakończona pomyślnie. - + Error Opening %1 Błąd podczas otwierania %1 - + Select Directory Wybierz folder - + Properties Właściwości - + The game properties could not be loaded. Właściwości tej gry nie mogły zostać załadowane. - + Switch Executable (%1);;All Files (*.*) %1 is an identifier for the Switch executable file extensions. Plik wykonywalny Switcha (%1);;Wszystkie pliki (*.*) - + Load File Załaduj plik - + Open Extracted ROM Directory Otwórz folder wypakowanego ROMu - + Invalid Directory Selected Wybrano niewłaściwy folder - + The directory you have selected does not contain a 'main' file. Wybrany folder nie zawiera 'głównego' pliku. - + Installable Switch File (*.nca *.nsp *.xci);;Nintendo Content Archive (*.nca);;Nintendo Submission Package (*.nsp);;NX Cartridge Image (*.xci) Instalacyjne pliki Switch'a (*.nca *.nsp *.xci);;Archiwum zawartości Nintendo (*.nca);;Pakiet poddany Nintendo (*.nsp);;Obraz z kartridża NX (*.xci) - + Install Files Zainstaluj pliki - + %n file(s) remaining Pozostał %n plikPozostały %n plikiPozostało %n plikówPozostało %n plików - + Installing file "%1"... Instalowanie pliku "%1"... - - + + Install Results Wynik instalacji - + To avoid possible conflicts, we discourage users from installing base games to the NAND. Please, only use this feature to install updates and DLC. Aby uniknąć ewentualnych konfliktów, odradzamy użytkownikom instalowanie gier na NAND. Proszę, używaj tej funkcji tylko do instalowania łatek i DLC. - + %n file(s) were newly installed %n plik został nowo zainstalowany @@ -7720,7 +7595,7 @@ Proszę, używaj tej funkcji tylko do instalowania łatek i DLC. - + %n file(s) were overwritten %n plik został nadpisany @@ -7730,7 +7605,7 @@ Proszę, używaj tej funkcji tylko do instalowania łatek i DLC. - + %n file(s) failed to install Nie udało się zainstalować %n pliku @@ -7740,324 +7615,314 @@ Proszę, używaj tej funkcji tylko do instalowania łatek i DLC. - + System Application Aplikacja systemowa - + System Archive Archiwum systemu - + System Application Update Aktualizacja aplikacji systemowej - + Firmware Package (Type A) Paczka systemowa (Typ A) - + Firmware Package (Type B) Paczka systemowa (Typ B) - + Game Gra - + Game Update Aktualizacja gry - + Game DLC Dodatek do gry - + Delta Title Tytuł Delta - + Select NCA Install Type... Wybierz typ instalacji NCA... - + Please select the type of title you would like to install this NCA as: (In most instances, the default 'Game' is fine.) Wybierz typ tytułu, do którego chcesz zainstalować ten NCA, jako: (W większości przypadków domyślna "gra" jest w porządku.) - + Failed to Install Instalacja nieudana - + The title type you selected for the NCA is invalid. Typ tytułu wybrany dla NCA jest nieprawidłowy. - + File not found Nie znaleziono pliku - + File "%1" not found Nie znaleziono pliku "%1" - + OK OK - + Function Disabled Funkcja wyłączona - + Compatibility list reporting is currently disabled. Check back later! Zgłaszanie do listy kompatybilności jest obecnie wyłączone. Spróbuj ponownie później! - + Error opening URL Błąd otwierania adresu URL - + Unable to open the URL "%1". Nie można otworzyć adresu URL "%1". - + TAS Recording Nagrywanie TAS - + Overwrite file of player 1? Nadpisać plik gracza 1? - + Invalid config detected Wykryto nieprawidłową konfigurację - + Handheld controller can't be used on docked mode. Pro controller will be selected. Nie można używać kontrolera handheld w trybie zadokowanym. Zostanie wybrany kontroler Pro. - - + + Amiibo Amiibo - - + + The current amiibo has been removed Amiibo zostało "zdjęte" - + Error Błąd - - + + The current game is not looking for amiibos Ta gra nie szuka amiibo - + Amiibo File (%1);; All Files (*.*) Plik Amiibo (%1);;Wszyskie pliki (*.*) - + Load Amiibo Zamontuj Amiibo - + Error loading Amiibo data Błąd podczas ładowania danych Amiibo - + The selected file is not a valid amiibo Wybrany plik nie jest poprawnym amiibo - + The selected file is already on use Wybrany plik jest już w użyciu - + An unknown error occurred Wystąpił nieznany błąd - + No firmware available Brak dostępnego firmware'u - + Firmware Corrupted Uszkodzony Firmware - + Unknown applet - + Applet doesn't map to a known value. - + Record not found - + Applet not found. Please reinstall firmware. - + Capture Screenshot Zrób zrzut ekranu - + PNG Image (*.png) Obrazek PNG (*.png) - + TAS state: Running %1/%2 Status TAS: Działa %1%2 - + TAS state: Recording %1 Status TAS: Nagrywa %1 - + TAS state: Idle %1/%2 Status TAS: Bezczynny %1%2 - + TAS State: Invalid Status TAS: Niepoprawny - + &Stop Running &Wyłącz - + Stop R&ecording Przestań &Nagrywać - + Building: %n shader(s) Budowanie: %n shaderBudowanie: %n shaderyBudowanie: %n shaderówBudowanie: %n shaderów - + Scale: %1x %1 is the resolution scaling factor Skala: %1x - + Speed: %1% / %2% Prędkość: %1% / %2% - + Speed: %1% Prędkość: %1% - + Game: %1 FPS Gra: %1 FPS - + Frame: %1 ms Klatka: %1 ms - + NO AA BEZ AA - - NO FX - - - - - FX - - - - + VOLUME: MUTE Głośność: Wyciszony - + VOLUME: %1% Volume percentage (e.g. 50%) Głośność: %1% - + Derivation Components Missing Brak komponentów wyprowadzania - + Decryption keys are missing. Install them now? - + Wayland Detected! Wykryto Waylanda! - + Wayland is known to have significant performance issues and mysterious bugs. It's recommended to use X11 instead. @@ -8067,74 +7932,74 @@ Zaleca się zamiast tego używać X11. Czy chcesz wymusić jego użycie przy przyszłych uruchomieniach? - + Use X11 Używaj X11 - + Continue with Wayland Kontynuuj z Waylandem - + Don't show again Nie pokazuj ponownie - + Restart Required Wymagane ponowne uruchomienie - + Restart Eden to apply the X11 backend. Uruchom ponownie Edena, aby zastosować backend X11. - + Slow - + Turbo - + Unlocked - + Select RomFS Dump Target Wybierz cel zrzutu RomFS - + Please select which RomFS you would like to dump. Proszę wybrać RomFS, jakie chcesz zrzucić. - + Are you sure you want to close Eden? Czy na pewno chcesz zamknąć Edena? - - - + + + Eden Eden - + Are you sure you want to stop the emulation? Any unsaved progress will be lost. Czy na pewno chcesz zatrzymać emulację? Wszystkie niezapisane postępy zostaną utracone. - + The currently running application has requested Eden to not exit. Would you like to bypass this and exit anyway? @@ -9335,41 +9200,41 @@ p, li { white-space: pre-wrap; } - This game may require firmware to function properly, and you don't have any installed. Please install firmware before launching, or press "OK" to launch anyways. - + The game you are trying to launch requires firmware to boot or to get past the opening menu. Please <a href='https://yuzu-mirror.github.io/help/quickstart'>dump and install firmware</a>, or press "OK" to launch anyways. + Gra, którą próbujesz uruchomić, wymaga firmware’u do startu lub do przejścia ekranu początkowego. Please <a href='https://yuzu-mirror.github.io/help/quickstart'>Zrzuć i zainstaluj firmware</a> albo naciśnij „OK”, aby mimo to uruchomić. - + Installing Firmware... Instalacja Firmware... - - - - - + + + + + Cancel Anuluj - + Firmware Install Failed Instalacja firmware’u nie powiodła się - + Firmware Install Succeeded Instalacja firmware’u powiodła się - + Firmware integrity verification failed! Weryfikacja integralności firmware’u nie powiodła się! - - + + Verification failed for the following files: %1 @@ -9377,235 +9242,235 @@ p, li { white-space: pre-wrap; } %1 - - + + Verifying integrity... Weryfikacja integralności... - - + + Integrity verification succeeded! Weryfikacja integralności zakończona sukcesem! - - + + The operation completed successfully. Operacja zakończona pomyślnie. - - + + Integrity verification failed! Weryfikacja integralności nie powiodła się! - + File contents may be corrupt or missing. Zawartość pliku może być uszkodzona lub brakująca. - + Integrity verification couldn't be performed Nie można było przeprowadzić weryfikacji integralności - + Firmware installation cancelled, firmware may be in a bad state or corrupted. File contents could not be checked for validity. Instalacja firmware’u została anulowana — firmware może być w złym stanie lub uszkodzony. Nie udało się sprawdzić poprawności zawartości plików. - + Select Dumped Keys Location Wybierz lokalizację zrzutu kluczy - + Decryption Keys install succeeded Instalacja kluczy deszyfrujących powiodła się - + Decryption Keys install failed Instalacja kluczy deszyfrujących nie powiodła się - + Orphaned Profiles Detected! Wykryto osierocone profile! - + UNEXPECTED BAD THINGS MAY HAPPEN IF YOU DON'T READ THIS!<br>Eden has detected the following save directories with no attached profile:<br>%1<br><br>The following profiles are valid:<br>%2<br><br>Click "OK" to open your save folder and fix up your profiles.<br>Hint: copy the contents of the largest or last-modified folder elsewhere, delete all orphaned profiles, and move your copied contents to the good profile.<br><br>Still confused? See the <a href='https://git.eden-emu.dev/eden-emu/eden/src/branch/master/docs/user/Orphaned.md'>help page</a>.<br> MOGĄ WYSTĄPIĆ NIEOCZEKIWANE PROBLEMY, JEŚLI TEGO NIE PRZECZYTASZ!<br>Eden wykrył następujące katalogi zapisów bez przypisanego profilu:<br>%1<br><br>The following profiles are valid:<br>%2<br><br>Kliknij „OK”, aby otworzyć folder zapisów i naprawić profile.<br>Wskazówka: skopiuj zawartość największego lub ostatnio modyfikowanego folderu w inne miejsce, usuń wszystkie osierocone profile, a następnie przenieś skopiowaną zawartość do właściwego profilu.<br><br>Nadal masz wątpliwości? Zobacz<a href='https://git.eden-emu.dev/eden-emu/eden/src/branch/master/docs/user/Orphaned.md'>tronę pomocy</a>.<br> - + Really clear data? Na pewno wyczyścić dane? - + Important data may be lost! Ważne dane mogą zostać utracone! - + Are you REALLY sure? Czy NA PEWNO chcesz to zrobić? - + Once deleted, your data will NOT come back! Only do this if you're 100% sure you want to delete this data. Po usunięciu Twoje dane NIE WRÓCĄ! Wykonaj to tylko, jeśli w 100% chcesz usunąć te dane. - + Clearing... Czyszczenie… - + Select Export Location Wybierz lokalizację eksportu - + %1.zip %1.zip - - - + + + Zipped Archives (*.zip) Archiwa ZIP (.zip) - + Exporting data. This may take a while... Eksportowanie danych. To może chwilę potrwać… - + Exporting Eksportowanie - + Exported Successfully Wyeksportowano pomyślnie - + Data was exported successfully. Dane zostały pomyślnie wyeksportowane. - + Export Cancelled Eksport anulowany - + Export was cancelled by the user. Eksport został anulowany przez użytkownika. - + Export Failed Eksport nie powiódł się - + Ensure you have write permissions on the targeted directory and try again. Upewnij się, że masz uprawnienia zapisu do docelowego katalogu i spróbuj ponownie. - + Select Import Location Wybierz lokalizację importu - + Import Warning Ostrzeżenie dotyczące importu - + All previous data in this directory will be deleted. Are you sure you wish to proceed? Wszystkie dotychczasowe dane w tym katalogu zostaną usunięte. Czy na pewno chcesz kontynuować? - + Importing data. This may take a while... Importowanie danych. To może chwilę potrwać… - + Importing Importowanie - + Imported Successfully Zaimportowano pomyślnie - + Data was imported successfully. Dane zostały pomyślnie zaimportowane. - + Import Cancelled Import anulowany - + Import was cancelled by the user. Import został anulowany przez użytkownika. - + Import Failed Import nie powiódł się - + Ensure you have read permissions on the targeted directory and try again. Upewnij się, że masz uprawnienia odczytu do docelowego katalogu i spróbuj ponownie. - + Keys not installed - + Install decryption keys and restart Eden before attempting to install firmware. - + Select Dumped Firmware Source Location - + Select Dumped Firmware ZIP - + Firmware cleanup failed - + Failed to clean up extracted firmware cache. Check write permissions in the system temp directory and try again. OS reported error: %1 diff --git a/dist/languages/pt_BR.ts b/dist/languages/pt_BR.ts index 063a1bff4f..d7dfe6bf1a 100644 --- a/dist/languages/pt_BR.ts +++ b/dist/languages/pt_BR.ts @@ -590,22 +590,12 @@ SMAA oferece a melhor qualidade. FXAA pode produzir uma imagem mais estável em resoluções mais baixas. - - Enable post-processing effects - - - - - Applies post-processing effects to the final image. - - - - + Fullscreen Mode: Tela Cheia - + The method used to render the window in fullscreen. Borderless offers the best compatibility with the on-screen keyboard that some games request for input. Exclusive fullscreen may offer better performance and better Freesync/Gsync support. @@ -614,12 +604,12 @@ Sem borda oferece a melhor compatibilidade com o teclado na tela que alguns jogo Tela cheia exclusiva pode oferecer melhor desempenho e melhor suporte a Freesync/Gsync. - + Aspect Ratio: Proporção do Ecrã: - + Stretches the renderer to fit the specified aspect ratio. Most games only support 16:9, so modifications are required to get other ratios. Also controls the aspect ratio of captured screenshots. @@ -628,36 +618,36 @@ A maioria dos jogos suporta apenas 16:9, sendo necessárias modificações para Também controla a proporção das capturas de tela. - + Use persistent pipeline cache Usar cache persistente de pipeline - + Allows saving shaders to storage for faster loading on following game boots. Disabling it is only intended for debugging. Permite guardar os shaders para carregar os jogos nas execuções seguintes. Desabiltar essa opção só serve para propósitos de depuração. - + Use asynchronous GPU emulation Usar emulação assíncrona de GPU - + Uses an extra CPU thread for rendering. This option should always remain enabled. Usa uma thread de CPU extra para renderização. Esta opção deve estar sempre habilitada. - + NVDEC emulation: Emulação NVDEC: - + Specifies how videos should be decoded. It can either use the CPU or the GPU for decoding, or perform no decoding at all (black screen on videos). In most cases, GPU decoding provides the best performance. @@ -666,12 +656,12 @@ Tanto a CPU quanto a GPU podem ser utilizadas para decodificação, ou não deco Na maioria dos casos, a decodificação pela GPU fornece um melhor desempenho. - + ASTC Decoding Method: Método de Decodificação ASTC: - + This option controls how ASTC textures should be decoded. CPU: Use the CPU for decoding. GPU: Use the GPU's compute shaders to decode ASTC textures (recommended). @@ -684,76 +674,56 @@ CPU Assíncrona: Usa a CPU para decodificar texturas ASTC sob demanda. Elimina t mas pode apresentar artefatos visuais. - + ASTC Recompression Method: Método de Recompressão ASTC: - + Most GPUs lack support for ASTC textures and must decompress to anintermediate format: RGBA8. BC1/BC3: The intermediate format will be recompressed to BC1 or BC3 format, saving VRAM but degrading image quality. A maioria das GPUs não suporta texturas ASTC e precisa descompactá-las para um formato intermediário: RGBA8.BC1/BC3: O formato intermediário será recomprimido para BC1 ou BC3, economizando VRAM mas degradando a qualidade da imagem. - + Frame Pacing Mode (Vulkan only) Modo de Ritmo de Quadros (apenas Vulkan) - + Controls how the emulator manages frame pacing to reduce stuttering and make the frame rate smoother and more consistent. Controle como o emulador gerencia o ritmo de quadros para reduzir travamentos (engasgos) e deixar a taxa de quadros mais suave e consistente. - + VRAM Usage Mode: Modo de Uso da VRAM: - + Selects whether the emulator should prefer to conserve memory or make maximum usage of available video memory for performance. Aggressive mode may impact performance of other applications such as recording software. Define se o emulador deve priorizar a economia de memória ou fazer o uso máximo da memória de vídeo disponível para melhorar o desempenho. O modo agressivo pode impactar a performance de outros aplicativos, como softwares de gravação. - + Skip CPU Inner Invalidation Ignorar invalidação interna da CPU - + Skips certain cache invalidations during memory updates, reducing CPU usage and improving latency. This may cause soft-crashes. Ignora certas invalidações de cache durante atualizações de memória, reduzindo o uso da CPU e melhorando a latência. Isso pode causar travamentos leves. - - GPU Readback Before NCE Invalidation - - - - - Flushes GPU buffer data back to guest memory before NCE invalidates the whole guest page, preserving it while the CPU store proceeds. - - - - - Patch Runtime NROs for NCE - - - - - Applies NCE code patches to runtime-loaded NRO modules.This is required for some games to run correctly. - - - - + VSync Mode: Modo de Sincronização vertical: - + FIFO (VSync) does not drop frames or exhibit tearing but is limited by the screen refresh rate. FIFO Relaxed allows tearing as it recovers from a slow down. Mailbox can have lower latency than FIFO and does not tear but may drop frames. @@ -764,12 +734,12 @@ Mailbox pode ter menor latência que FIFO e não apresenta cortes, mas pode perd Immediate (sem sincronização) exibe o que estiver disponível e pode apresentar cortes. - + Sync Memory Operations Sincronizar operações de memória - + Ensures data consistency between compute and memory operations. This option fixes issues in games, but may degrade performance. Unreal Engine 4 games often see the most significant changes thereof. @@ -778,114 +748,126 @@ Esta opção corrige problemas em diversos jogos, mas pode reduzir o desempenho. Jogos baseados na Unreal Engine 4 costumam apresentar as mudanças mais significativas. - + Enable asynchronous presentation (Vulkan only) Ativar apresentação assíncrona (Somente Vulkan) - + Slightly improves performance by moving presentation to a separate CPU thread. Melhora ligeiramente o desempenho ao mover a apresentação para uma thread de CPU separada. - + Force maximum clocks (Vulkan only) Forçar clock máximo (somente Vulkan) - + Runs work in the background while waiting for graphics commands to keep the GPU from lowering its clock speed. Executa trabalho em segundo plano aguardando pelos comandos gráficos para evitar a GPU de reduzir seu clock. - + Anisotropic Filtering: Filtro Anisotrópico: - + Controls the quality of texture rendering at oblique angles. Safe to set at 16x on most GPUs. Controla a qualidade da renderização de texturas em ângulos oblíquos. Seguro definir em 16x na maioria das GPUs. - + GPU Mode: Modo da GPU: - + Controls the GPU emulation mode. Most games render fine with Fast, but Accurate is still required for some. Particles tend to only render correctly with Accurate mode. - + DMA Accuracy: Precisão do DMA: - + Controls the DMA read mode. Unsafe is faster, while Safe is more stable and can fix issues in some games. Default follows the GPU Accuracy setting. - + GPU Fence Behavior: - + Controls the GPU fence synchronization behavior. Immediate is the fastest option, but can introduce some issues. Balanced offers better compatibility and may fix issues in some games. Accurate further improves compatibility at the cost of some performance. -Default follows the GPU Mode setting. +Strict is the slowest option, but can fix issues that require stricter synchronization. +Default follows the GPU Accuracy setting. - + + Enable GPU buffer readback + + + + + Preserves GPU-modified data by reading it back before uploading. +Some games require this to render certain effects properly. + + + + Enable asynchronous shader compilation Ativar compilação assíncrona de shaders - + May reduce shader stutter. Pode reduzir travamentos de shaders. - + GPU Clocks - + Makes the game believe GPU work finishes faster than it does, so it stops lowering resolution and render distance to fit the Switch's clocks. - + GPU Unswizzle GPU Unswizzle - + Accelerates BCn 3D texture decoding using GPU compute. Disable if experiencing crashes or graphical glitches. Acelera a decodificação de texturas 3D BCn usando processamento da GPU. Desative se ocorrerem travamentos ou falhas gráficas. - + GPU Unswizzle Max Texture Size Tamanho Máximo de Textura para GPU Unswizzle - + Sets the maximum size (MiB) for GPU-based texture unswizzling. While the GPU is faster for medium and large textures, the CPU may be more efficient for very small ones. Adjust this to find the balance between GPU acceleration and CPU overhead. @@ -894,48 +876,48 @@ A GPU é mais rápida para texturas médias e grandes, mas a CPU pode ser mais e Ajuste para encontrar o equilíbrio entre aceleração da GPU e sobrecarga da CPU. - + GPU Unswizzle Stream Size Tamanho do Fluxo de GPU Unswizzle - + Sets the maximum amount of texture data (in MiB) processed per frame. Higher values can reduce stutter during texture loading but may impact frame consistency. Define a quantidade máxima de dados de textura (em MiB) processados por quadro. Valores mais altos podem reduzir travamentos durante o carregamento de texturas, mas podem afetar a consistência dos quadros. - + GPU Unswizzle Chunk Size Tamanho do Bloco de GPU Unswizzle - + Determines the number of depth slices processed in a single dispatch. Increasing this can improve throughput on high-end GPUs but may cause TDR or driver timeouts on weaker hardware. Determina o número de fatias de profundidade processadas em uma única execução. Aumentar esse valor pode melhorar o desempenho em GPUs avançadas, mas pode causar TDR ou tempo limite do driver em hardwares mais fracos. - + Use Vulkan pipeline cache Utilizar cache de pipeline do Vulkan - + Enables GPU vendor-specific pipeline cache. This option can improve shader loading time significantly in cases where the Vulkan driver does not store pipeline cache files internally. Habilita o cache de pipeline da fabricante da GPU. Esta opção pode melhorar o tempo de carregamento de shaders significantemente em casos onde o driver Vulkan não armazena o cache de pipeline internamente. - + Enable Compute Pipelines (Intel Vulkan Only) Habilitar Pipeline de Computação (Somente Intel Vulkan) - + Required by some games. This setting only exists for Intel proprietary drivers and may crash if enabled. Compute pipelines are always enabled on all other drivers. @@ -944,182 +926,194 @@ Esta configuração existe apenas para drivers proprietários da Intel e pode ca Pipelines de computação estão sempre habilitados em outros drivers. - + Enable Reactive Flushing Habilitar Flushing Reativo - + Uses reactive flushing instead of predictive flushing, allowing more accurate memory syncing. Usa flushing reativo ao invés de flushing preditivo, permitindo mais precisão na sincronização da memória. - + Sync to framerate of video playback Sincronizar com o framerate da reprodução de vídeo - + Run the game at normal speed during video playback, even when the framerate is unlocked. Executa o jogo na velocidade normal durante a reprodução de vídeo, mesmo se o framerate estiver desbloqueado. - + Barrier feedback loops Ciclos de feedback de barreira - + Improves rendering of transparency effects in specific games. Melhora a renderização de efeitos de transparência em jogos específicos. - + Enable buffer history Ativar histórico de buffer - + Enables access to previous buffer states. This option may improve rendering quality and performance consistency in some games. Permite acesso a estados anteriores do buffer. Esta opção pode melhorar a qualidade de renderização e a consistência de desempenho em alguns jogos. - + Fix bloom effects Corrigir efeitos de bloom - + Removes bloom in Burnout. Remove o bloom no Burnout. - + + Enable Legacy Rescale Pass + Ativar Passagem de Redimensionamento Legada + + + + May fix rescale issues in some games by relying on behavior from the previous implementation. +Legacy behavior workaround that fixes line artifacts on AMD and Intel GPUs, and grey texture flicker on Nvidia GPUs in Luigis Mansion 3. + Pode corrigir problemas de redimensionamento em alguns jogos, baseando-se no comportamento da implementação anterior. +Solução legada que corrige artefatos de linha em GPUs AMD e Intel, e cintilação de texturas cinzas em GPUs Nvidia no Luigi's Mansion 3. + + + Extended Dynamic State Estado Dinâmico Estendido - + Controls the number of features that can be used in Extended Dynamic State. Higher states allow for more features and can increase performance, but may cause additional graphical issues. Controla o número de recursos que podem ser usados no Estado Dinâmico Estendido. Estados mais altos permitem mais recursos e podem aumentar o desempenho, mas também podem causar problemas gráficos adicionais. - + Vertex Input Dynamic State Estado Dinâmico de Entrada de Vértices - + Enables vertex input dynamic state feature for better quality and performance. Ativa o recurso de estado dinâmico de entrada de vértices para melhor qualidade e desempenho. - + Sample Shading Sombreamento por Amostragem - + Allows the fragment shader to execute per sample in a multi-sampled fragment instead of once per fragment. Improves graphics quality at the cost of performance. Higher values improve quality but degrade performance. Permite que o shader de fragmento seja processado por cada amostra em fragmentos multiamostrados, em vez de uma única vez por fragmento. Melhora a qualidade gráfica ao custo de desempenho. Valores mais altos aumentam a qualidade, mas reduzem a performance. - + RNG Seed Semente de RNG - + Controls the seed of the random number generator. Mainly used for speedrunning. Controla a semente do gerador de números aleatórios. Usado principalmente em speedruns. - + Device Name Nome do Dispositivo - + The name of the console. O nome do console. - + Homebrew Args - + Command-line arguments passed to homebrew at launch (e.g. -noglsl). - + Custom RTC Date: Data personalizada do RTC: - + This option allows to change the clock of the console. Can be used to manipulate time in games. Esta opção permite alterar o relógio do console. Pode ser usada para manipular o tempo nos jogos. - + The number of seconds from the current unix time Número de segundos a partir do tempo Unix atual - + Language: Idioma: - + This option can be overridden when region setting is auto-select Esta opção pode ser substituída quando a configuração de região estiver em seleção automática - + Region: Região: - + The region of the console. A região do console. - + Time Zone: Fuso Horário: - + The time zone of the console. O fuso horário do console. - + Sound Output Mode: Modo de saída de som - + Console Mode: Modo Console: - + Selects if the console is in Docked or Handheld mode. Games will change their resolution, details and supported controllers and depending on this setting. Setting to Handheld can help improve performance for low end systems. @@ -1128,1026 +1122,1042 @@ Os jogos ajustarão resolução, detalhes e controladores suportados conforme es Definir como Portátil pode ajudar a melhorar o desempenho em sistemas mais fracos. - + Prompt for user profile on boot Solicitar perfil de usuário na inicialização - + Useful if multiple people use the same PC. Útil se várias pessoas usam o mesmo PC. - + Pause when not in focus Pausar quando não estiver em foco - + Pauses emulation when focusing on other windows. Pausa a emulação ao focar em outras janelas. - + Confirm before stopping emulation Confirmar antes de parar a emulação - + Overrides prompts asking to confirm stopping the emulation. Enabling it bypasses such prompts and directly exits the emulation. Substitui as confirmações ao parar a emulação. Ao ativar, ignora esses avisos e encerra diretamente a emulação. - + Hide mouse on inactivity Esconder rato quando inactivo. - + Hides the mouse after 2.5s of inactivity. Oculta o mouse após 2,5s de inatividade. - + + Disable controller applet + Desabilitar applet de controle + + + + Forcibly disables the use of the controller applet in emulated programs. +When a program attempts to open the controller applet, it is immediately closed. + Desativa forçadamente o uso do applet de controle em programas emulados. +Quando um programa tenta abrir o applet, ele é imediatamente fechado. + + + Check for updates Verificar atualizações - + Whether or not to check for updates upon startup. Define se deve verificar atualizações na inicialização. - + Enable Gamemode Habilitar Gamemode - + Force X11 as Graphics Backend Forçar X11 como backend gráfico - + Custom frontend Frontend customizado - + Real applet Applet real - - - Disabled - Desativado - - - + Never Nunca - + On Load Ao carregar - + Always Sempre - + CPU CPU - + GPU GPU - + CPU Asynchronous CPU Assíncrona - + Uncompressed (Best quality) Descompactado (Melhor Qualidade) - + BC1 (Low quality) BC1 (Baixa qualidade) - + BC3 (Medium quality) BC3 (Média qualidade) - - + + Auto Automático - + 30 FPS 30 FPS - + 60 FPS 60 FPS - + 90 FPS 90 FPS - + 120 FPS 120 FPS - + Conservative Conservador - + Aggressive Agressivo - + Vulkan Vulcano - + OpenGL GLSL OpenGL GLSL - + OpenGL GLASM (Assembly Shaders, NVIDIA Only) OpenGL GLASM (Shaders em Assembly, apenas NVIDIA) - + OpenGL SPIR-V (Experimental, AMD/Mesa Only) OpenGL SPIR-V (Experimental, apenas AMD/Mesa) - + Null Nenhum - + Fast Rápido - - - + + + Accurate Preciso - - - + + + Default Padrão - + Unsafe (fast) Inseguro (rápido) - + Safe (stable) Seguro (estável) - + Immediate - + Balanced Balanceado - + + Strict + + + + Unsafe Inseguro - + Paranoid (disables most optimizations) Paranoia (desativa a maioria das otimizações) - + Debugging Depuração - + Dynarmic Dynarmic - + NCE NCE - + Borderless Windowed Janela sem bordas - + Exclusive Fullscreen Tela cheia exclusiva - + No Video Output Sem saída de vídeo - + CPU Video Decoding Decodificação de vídeo pela CPU - + GPU Video Decoding (Default) Decodificação de vídeo pela GPU (Padrão) - + 0.25X (180p/270p) [EXPERIMENTAL] 0.25X (180p/270p) [EXPERIMENTAL] - + 0.5X (360p/540p) [EXPERIMENTAL] 0.5X (360p/540p) [EXPERIMENTAL] - + 0.75X (540p/810p) [EXPERIMENTAL] 0.75X (540p/810p) [EXPERIMENTAL] - + 1X (720p/1080p) 1X (720p/1080p) - + 1.25X (900p/1350p) [EXPERIMENTAL] 1.25X (900p/1350p) [EXPERIMENTAL] - + 1.5X (1080p/1620p) [EXPERIMENTAL] 1.5X (1080p/1620p) [EXPERIMENTAL] - + 2X (1440p/2160p) 2X (1440p/2160p) - + 3X (2160p/3240p) 3X (2160p/3240p) - + 4X (2880p/4320p) 4X (2880p/4320p) - + 5X (3600p/5400p) 5X (3600p/5400p) - + 6X (4320p/6480p) 6X (4320p/6480p) - + 7X (5040p/7560p) 7X (5040p/7560p) - + 8X (5760p/8640p) 8X (5760p/8640p) - + Nearest Neighbor Vizinho mais próximo - + Bilinear Bilinear - + Bicubic Bicúbico - + Gaussian Gaussiano - + Lanczos Lanczos - + ScaleForce ScaleForce - + AMD FidelityFX Super Resolution AMD FidelityFX Super Resolution - + Area Área - + MMPX MMPX - + Zero-Tangent Zero-Tangent - + B-Spline B-Spline - + Mitchell Mitchell - + Spline-1 Spline-1 - + Snapdragon Game Super Resolution - + Snapdragon Game Super Resolution EdgeDir - + None Nenhum - + FXAA FXAA - + SMAA SMAA - + Default (16:9) Padrão (16:9) - + Force 4:3 Forçar 4:3 - + Force 21:9 Forçar 21:9 - + Force 16:10 Forçar 16:10 - + Stretch to Window Esticar à Janela - + Automatic Automático - + 2x 2x - + 4x 4x - + 8x 8x - + 16x 16x - + Japanese (日本語) Japonês (日本語) - + American English Inglês Americano - + French (français) Francês (français) - + German (Deutsch) Alemão (Deutsch) - + Italian (italiano) Italiano (italiano) - + Spanish (español) Espanhol (español) - + Chinese Chinês - + Korean (한국어) Coreano (한국어) - + Dutch (Nederlands) Holandês (Nederlands) - + Portuguese (português) Português (português) - + Russian (Русский) Russo (Русский) - + Taiwanese Taiwanês - + British English Inglês Britânico - + Canadian French Francês Canadense - + Latin American Spanish Espanhol Latino-Americano - + Simplified Chinese Chinês Simplificado - + Traditional Chinese (正體中文) Chinês Tradicional (正 體 中文) - + Brazilian Portuguese (português do Brasil) Português do Brasil (Brazilian Portuguese) - + Polish (polska) Polonês (polska) - + Thai (แบบไทย) Tailandês (แบบไทย) - - + + Japan Japão - + USA EUA - + Europe Europa - + Australia Austrália - + China China - + Korea Coreia - + Taiwan Taiwan - + Auto (%1) Auto select time zone Auto (%1) - + Default (%1) Default time zone Padrão (%1) - + CET CET - + CST6CDT CST6CDT - + Cuba Cuba - + EET EET - + Egypt Egito - + Eire Irlanda - + EST EST - + EST5EDT EST5EDT - + GB GB - + GB-Eire GB-Irlanda - + GMT GMT - + GMT+0 GMT+0 - + GMT-0 GMT-0 - + GMT0 GMT0 - + Greenwich Greenwich - + Hongkong Hongkong - + HST HST - + Iceland Islândia - + Iran Irã - + Israel Israel - + Jamaica Jamaica - + Kwajalein Kwajalein - + Libya Líbia - + MET MET - + MST MST - + MST7MDT MST7MDT - + Navajo Navajo - + NZ NZ - + NZ-CHAT NZ-CHAT - + Poland Polônia - + Portugal Portugal - + PRC PRC - + PST8PDT PST8PDT - + ROC ROC - + ROK ROK - + Singapore Singapura - + Turkey Turquia - + UCT UCT - + Universal Universal - + UTC UTC - + W-SU W-SU - + WET WET - + Zulu Zulu - + Mono Mono - + Stereo Estéreo - + Surround Surround - + 4GB DRAM (Default) 4GB DRAM (Padrão) - + 6GB DRAM (Unsafe) 6GB DRAM (Não seguro) - + 8GB DRAM 8GB DRAM - + 10GB DRAM (Unsafe) 10GB DRAM (Inseguro) - + 12GB DRAM (Unsafe) 12GB DRAM (Inseguro) - + Docked Ancorado - + Handheld Portátil + + + + Normal + + - Normal + Boost - Boost - - - - - Overclock - + Always ask (Default) Sempre perguntar (Padrão) - + Only if game specifies not to stop Somente se o jogo especificar para não parar - + Never ask Nunca perguntar - + Very Small (16 MB) Muito Pequeno (16 MB) - + Small (32 MB) Pequeno (32 MB) - + Normal (128 MB) Normal (128 MB) - + Large (256 MB) Grande (256 MB) - + Very Large (512 MB) Muito Grande (512 MB) - + Very Low (4 MB) Muito Baixo (4 MB) - + Low (8 MB) Baixo (8 MB) - + Normal (16 MB) Normal (16 MB) - + Medium (32 MB) Médio (32 MB) - + High (64 MB) Alto (64 MB) - + Very Low (32) Muito Baixo (32) - + Low (64) Baixo (64) - + Normal (128) Normal (128) - + Medium (256) Médio (256) - + High (512) Alto (512) - + + Disabled + Desativado + + + ExtendedDynamicState 1 Estado Dinâmico Estendido 1 - + ExtendedDynamicState 2 Estado Dinâmico Estendido 2 - + ExtendedDynamicState 3 Estado Dinâmico Estendido 3 - + Tree View Visualização em Árvore - + Grid View Visualização em Grade @@ -3252,38 +3262,33 @@ Gostaria de deletar o salvamento antigo? Cor de fundo: - + % FSR/SGSR sharpening percentage (e.g. 50%) - - Configure Effects... - - - - + Off Desligado - + VSync Off Sincronização vertical desligada - + Recommended Recomendado - + On Ligado - + VSync On Sincronização vertical ligada @@ -4901,130 +4906,6 @@ Uma vez deletado, esses NÃO podem ser recuperados. Você tem 100% de certeza qu &Abrir Gerenciador de Arquivos - - ConfigurePostProcessing - - - Post-Processing Effects - - - - - Changes apply immediately while a game is running. - - - - - Enable post-processing - - - - - Preset: - - - - - Apply - - - - - Reset Values - - - - - Return every effect to the values the preset ships with. - - - - - Save As... - - - - - Save Preset - - - - - Preset name: - - - - - Clear - - - - - Remove every effect in use and deselect the preset. - - - - - Add Effect - - - - - None - - - - - No effects in use. Pick a preset and press Apply, or add effects one by one. - - - - - Custom chain. Pick a preset above and press Apply to replace it. - - - - - Active preset: %1 (modified). Press Reset Values to go back to how it ships. - - - - - Active preset: %1 - - - - - Enabled - - - - - Disabled - - - - - Reset to defaults - - - - - Effect '%1' was not found. - - - - - Effect failed to compile: -%1 - - - - - No usable ReShade FX effects were found. Place .fx files in the post_shaders folder. - - - ConfigureProfileManager @@ -6112,50 +5993,50 @@ Por favor vá para Configuração -> Sistema -> Rede e selecione. GRenderWindow - - + + OpenGL not available! OpenGL não está disponível! - + OpenGL shared contexts are not supported. Shared contexts do OpenGL não são suportados. - + Eden has not been compiled with OpenGL support. Eden não foi compilado com suporte a OpenGL. - - - + + + Error while initializing OpenGL! Erro ao inicializar OpenGL! - + Your GPU may not support OpenGL, or you do not have the latest graphics driver. O seu GPU pode não suportar OpenGL, ou não tem os drivers gráficos mais recentes. - + Error while initializing OpenGL 4.6! Erro ao inicializar o OpenGL 4.6! - + Your GPU may not support OpenGL 4.6, or you do not have the latest graphics driver.<br><br>GL Renderer:<br>%1 A sua GPU não tem suporte a OpenGL 4.6, talvez você não esteja usando os drivers gráficos mais atuais.<br><br>Renderizador GL:<br>%1 - + Your GPU may not support one or more required OpenGL extensions. Please ensure you have the latest graphics driver.<br><br>GL Renderer:<br>%1<br><br>Unsupported extensions:<br>%2 Sua GPU pode não suportar uma ou mais extensões necessárias do OpenGL. Verifique se você possui a última versão dos drivers gráficos.<br><br>Renderizador GL:<br>%1<br><br>Extensões não suportadas:<br>%2 - + This build doesn't have OpenGL support. Essa build não suporte a OpenGL. @@ -6977,42 +6858,42 @@ Mensagem de Depuração: Restaurar tamanho da janela para 1080p - + &Multiplayer &Multijogador - + &Tools &Ferramentas - + Am&iibo Am&iibo - + Launch &Applet Iniciar &Applet - + &TAS &TAS - + &Create Home Menu Shortcut &Criar atalho para o menu Home - + Install &Firmware Instalar &Firmware - + &Help &Ajuda @@ -7038,7 +6919,7 @@ Mensagem de Depuração: - + &Pause &Pausa @@ -7139,916 +7020,901 @@ Mensagem de Depuração: - &User Handbook - + Open &Quickstart Guide + Abrir &guia de início rápido - + + &FAQ + &Perguntas frequentes + + + &Capture Screenshot &Captura de Tela - + &Album &Álbum - + &Set Nickname and Owner &Definir apelido e proprietário - + &Delete Game Data &Remover dados do jogo - + &Restore Amiibo &Recuperar Amiibo - + &Format Amiibo &Formatar Amiibo - + &Mii Editor &Editor de Mii - + &Configure TAS... &Configurar TAS - + Configure C&urrent Game... Configurar jogo atual... - - + + &Start &Começar - + &Reset &Restaurar - - + + R&ecord G&ravar - + Open &Controller Menu Menu Abrir &Controles - + Install Decryption &Keys Instalar Chaves de &Encriptação - + &Home Menu &Menu Home - + &Desktop &Área de Trabalho - + &Application Menu &Menu de Aplicativo - + &Root Data Folder &Pasta Raiz de Dados - + &NAND Folder &Pasta NAND - + &SDMC Folder &Pasta SDMC - + &Mod Folder &Pasta de Mods - + &Log Folder &Pasta de Logs - + From Folder Pela Pasta - + From ZIP Pelo ZIP - + &Eden Dependencies &Dependências do Eden - + &Data Manager &Gestor de Dados - + &Tree View &Visualização em Árvore - + &Grid View &Visualizar Grid - + Game Icon Size Tamanho do Ícone do jogo - - + + None Nenhum - + Show Game &Name Mostrar Nome de &Jogo - + Show &Performance Overlay Mostrar Sobreposição de &Desempenho - - - Post-Processing &Shaders... - - &Carousel View - + Small (32x32) Pequeno (32x32) - + Standard (64x64) Padrão (64x64) - + Large (128x128) Grande (128x128) - + Full Size (256x256) Tamanho completo (256x256) - + Broken Vulkan Installation Detected Detectada Instalação Defeituosa do Vulkan - + Vulkan initialization failed during boot. Inicialização do Vulkan falhou durante o boot. - + Running a game TRANSLATORS: This string is shown to the user to explain why yuzu needs to prevent the computer from sleeping Rodando um jogo - + Loading Web Applet... Carregando Applet Web... - - + + Disable Web Applet Desativar Web Applet - + Disabling the web applet can lead to undefined behavior and should only be used with Super Mario 3D All-Stars. Are you sure you want to disable the web applet? (This can be re-enabled in the Debug settings.) Desativar o Applet Web pode problemas indefinidos e deverá apenas ser usando com o Super Mario 3D All-Stars. Você tem certeza que quer desativar o Applet Web? (Isso pode ser reativado nas Configurações de Depuração.) - + The amount of shaders currently being built A Quantidade total de Shaders está sendo atualmente construída - + The current selected resolution scaling multiplier. A atual multiplicação de escala de resolução selecionada. - + Current emulation speed. Values higher or lower than 100% indicate emulation is running faster or slower than a Switch. Velocidade atual da emulação. Valores altos ou mais baixo que 100% indicam que o emulador está rodando mais rápido ou mais lento que um Switch. - + How many frames per second the game is currently displaying. This will vary from game to game and scene to scene. Quantos quadros por segundo o jogo está mostrando atualmente. Isto varia de jogo para jogo e de cena a cena. - + Time taken to emulate a Switch frame, not counting framelimiting or v-sync. For full-speed emulation this should be at most 16.67 ms. - + Unmute - + Mute - + Reset Volume - - Configure Effects... - - - - + &Clear Recent Files - + &Continue - + Warning: Outdated Game Format - + You are using the deconstructed ROM directory format for this game, which is an outdated format that has been superseded by others such as NCA, NAX, XCI, or NSP. Deconstructed ROM directories lack icons, metadata, and update support.<br>For an explanation of the various Switch formats Eden supports, out our user handbook. This message will not be shown again. - - + + Error while loading ROM! - + The ROM format is not supported. - + An error occurred initializing the video core. - - This is usually caused by outdated GPU drivers. Please see the log for more details. See: <a href='https://git.eden-emu.dev/eden-emu/eden/src/branch/master/docs/user/HowToAccessLogs.md'>How to access log files</a>. + + Eden has encountered an error while running the video core. This is usually caused by outdated GPU drivers, including integrated ones. Please see the log for more details. For more information on accessing the log, please see the following page: <a href='https://yuzu-mirror.github.io/help/reference/log-files/'>How to Upload the Log File</a>. - + Error while loading ROM! %1 %1 signifies a numeric error code. - + %1<br>Please redump your files or ask on Discord/Stoat for help. %1 signifies an error string. - + An unknown error occurred. Please see the log for more details. - - + + (64-bit) - - + + (32-bit) - - + + %1 %2 %1 is the title name. %2 indicates if the title is 64-bit or 32-bit - + Closing software... - + Save Data - + Mod Data - + Error Opening %1 Folder - - + + Folder does not exist! - + Remove Installed Game Contents? - + Remove Installed Game Update? - + Remove Installed Game DLC? - + Remove Entry - + Delete OpenGL Transferable Shader Cache? - + Delete Vulkan Transferable Shader Cache? - + Delete All Transferable Shader Caches? - + Remove Custom Game Configuration? - + Remove Cache Storage? - + Remove File - + Remove Play Time Data - + Reset play time? - - + + RomFS Extraction Failed! - + There was an error copying the RomFS files or the user cancelled the operation. - + Full - + Skeleton - + Select RomFS Dump Mode - + Please select the how you would like the RomFS dumped.<br>Full will copy all of the files into the new directory while <br>skeleton will only create the directory structure. - + There is not enough free space at %1 to extract the RomFS. Please free up space or select a different dump directory at Emulation > Configure > System > Filesystem > Dump Root - + Extracting RomFS... - - + + Cancel - + RomFS Extraction Succeeded! - + The operation completed successfully. - + Error Opening %1 - + Select Directory Selecionar Diretório - + Properties - + The game properties could not be loaded. - + Switch Executable (%1);;All Files (*.*) %1 is an identifier for the Switch executable file extensions. - + Load File - + Open Extracted ROM Directory Abrir o Diretório da ROM extraída - + Invalid Directory Selected Diretório selecionado inválido - + The directory you have selected does not contain a 'main' file. - + Installable Switch File (*.nca *.nsp *.xci);;Nintendo Content Archive (*.nca);;Nintendo Submission Package (*.nsp);;NX Cartridge Image (*.xci) - + Install Files - + %n file(s) remaining - + Installing file "%1"... - - + + Install Results - + To avoid possible conflicts, we discourage users from installing base games to the NAND. Please, only use this feature to install updates and DLC. - + %n file(s) were newly installed - + %n file(s) were overwritten - + %n file(s) failed to install - + System Application - + System Archive - + System Application Update - + Firmware Package (Type A) - + Firmware Package (Type B) - + Game - + Game Update - + Game DLC - + Delta Title - + Select NCA Install Type... - + Please select the type of title you would like to install this NCA as: (In most instances, the default 'Game' is fine.) - + Failed to Install - + The title type you selected for the NCA is invalid. - + File not found - + File "%1" not found - + OK - + Function Disabled - + Compatibility list reporting is currently disabled. Check back later! - + Error opening URL - + Unable to open the URL "%1". - + TAS Recording - + Overwrite file of player 1? - + Invalid config detected - + Handheld controller can't be used on docked mode. Pro controller will be selected. - - + + Amiibo Amiibo - - + + The current amiibo has been removed O Amiibo atual foi removido - + Error - - + + The current game is not looking for amiibos - + Amiibo File (%1);; All Files (*.*) - + Load Amiibo - + Error loading Amiibo data - + The selected file is not a valid amiibo - + The selected file is already on use - + An unknown error occurred - + No firmware available - + Firmware Corrupted - + Unknown applet - + Applet doesn't map to a known value. - + Record not found - + Applet not found. Please reinstall firmware. - + Capture Screenshot - + PNG Image (*.png) - + TAS state: Running %1/%2 - + TAS state: Recording %1 - + TAS state: Idle %1/%2 - + TAS State: Invalid - + &Stop Running - + Stop R&ecording - + Building: %n shader(s) - + Scale: %1x %1 is the resolution scaling factor - + Speed: %1% / %2% - + Speed: %1% - + Game: %1 FPS - + Frame: %1 ms - + NO AA - - NO FX - - - - - FX - - - - + VOLUME: MUTE - + VOLUME: %1% Volume percentage (e.g. 50%) - + Derivation Components Missing - + Decryption keys are missing. Install them now? - + Wayland Detected! - + Wayland is known to have significant performance issues and mysterious bugs. It's recommended to use X11 instead. @@ -8056,74 +7922,74 @@ Would you like to force it for future launches? - + Use X11 - + Continue with Wayland - + Don't show again - + Restart Required - + Restart Eden to apply the X11 backend. - + Slow - + Turbo - + Unlocked - + Select RomFS Dump Target - + Please select which RomFS you would like to dump. - + Are you sure you want to close Eden? - - - + + + Eden - + Are you sure you want to stop the emulation? Any unsaved progress will be lost. - + The currently running application has requested Eden to not exit. Would you like to bypass this and exit anyway? @@ -9312,275 +9178,275 @@ p, li { white-space: pre-wrap; } - This game may require firmware to function properly, and you don't have any installed. Please install firmware before launching, or press "OK" to launch anyways. + The game you are trying to launch requires firmware to boot or to get past the opening menu. Please <a href='https://yuzu-mirror.github.io/help/quickstart'>dump and install firmware</a>, or press "OK" to launch anyways. - + Installing Firmware... - - - - - + + + + + Cancel - + Firmware Install Failed - + Firmware Install Succeeded - + Firmware integrity verification failed! - - + + Verification failed for the following files: %1 - - + + Verifying integrity... - - - - Integrity verification succeeded! - - + Integrity verification succeeded! + + + + + The operation completed successfully. - - + + Integrity verification failed! - + File contents may be corrupt or missing. - + Integrity verification couldn't be performed - + Firmware installation cancelled, firmware may be in a bad state or corrupted. File contents could not be checked for validity. - + Select Dumped Keys Location - + Decryption Keys install succeeded - + Decryption Keys install failed - + Orphaned Profiles Detected! - + UNEXPECTED BAD THINGS MAY HAPPEN IF YOU DON'T READ THIS!<br>Eden has detected the following save directories with no attached profile:<br>%1<br><br>The following profiles are valid:<br>%2<br><br>Click "OK" to open your save folder and fix up your profiles.<br>Hint: copy the contents of the largest or last-modified folder elsewhere, delete all orphaned profiles, and move your copied contents to the good profile.<br><br>Still confused? See the <a href='https://git.eden-emu.dev/eden-emu/eden/src/branch/master/docs/user/Orphaned.md'>help page</a>.<br> - + Really clear data? - + Important data may be lost! - + Are you REALLY sure? - + Once deleted, your data will NOT come back! Only do this if you're 100% sure you want to delete this data. - + Clearing... - + Select Export Location - + %1.zip - - - + + + Zipped Archives (*.zip) - + Exporting data. This may take a while... - + Exporting - + Exported Successfully - + Data was exported successfully. - + Export Cancelled - + Export was cancelled by the user. - + Export Failed - + Ensure you have write permissions on the targeted directory and try again. - + Select Import Location - + Import Warning - + All previous data in this directory will be deleted. Are you sure you wish to proceed? - + Importing data. This may take a while... - + Importing - + Imported Successfully - + Data was imported successfully. - + Import Cancelled - + Import was cancelled by the user. - + Import Failed - + Ensure you have read permissions on the targeted directory and try again. - + Keys not installed - + Install decryption keys and restart Eden before attempting to install firmware. - + Select Dumped Firmware Source Location - + Select Dumped Firmware ZIP - + Firmware cleanup failed - + Failed to clean up extracted firmware cache. Check write permissions in the system temp directory and try again. OS reported error: %1 diff --git a/dist/languages/pt_PT.ts b/dist/languages/pt_PT.ts index eb9b0c12a4..19cffca27d 100644 --- a/dist/languages/pt_PT.ts +++ b/dist/languages/pt_PT.ts @@ -573,22 +573,12 @@ FXAA can produce a more stable picture in lower resolutions. - - Enable post-processing effects - - - - - Applies post-processing effects to the final image. - - - - + Fullscreen Mode: Tela Cheia - + The method used to render the window in fullscreen. Borderless offers the best compatibility with the on-screen keyboard that some games request for input. Exclusive fullscreen may offer better performance and better Freesync/Gsync support. @@ -597,47 +587,47 @@ Sem borda oferece a melhor compatibilidade com o teclado na tela que alguns jogo Tela cheia exclusiva pode oferecer melhor performance e melhor suporte a Freesync/Gsync. - + Aspect Ratio: Proporção do Ecrã: - + Stretches the renderer to fit the specified aspect ratio. Most games only support 16:9, so modifications are required to get other ratios. Also controls the aspect ratio of captured screenshots. - + Use persistent pipeline cache - + Allows saving shaders to storage for faster loading on following game boots. Disabling it is only intended for debugging. Permite guardar os shaders para carregar os jogos nas execuções seguintes. Desabiltar essa opção só serve para propósitos de depuração. - + Use asynchronous GPU emulation - + Uses an extra CPU thread for rendering. This option should always remain enabled. - + NVDEC emulation: Emulação NVDEC: - + Specifies how videos should be decoded. It can either use the CPU or the GPU for decoding, or perform no decoding at all (black screen on videos). In most cases, GPU decoding provides the best performance. @@ -646,12 +636,12 @@ Tanto a CPU quanto a GPU podem ser utilizadas para decodificação, ou não deco Na maioria dos casos, a decodificação pela GPU fornece uma melhor performance. - + ASTC Decoding Method: Método de Decodificação ASTC: - + This option controls how ASTC textures should be decoded. CPU: Use the CPU for decoding. GPU: Use the GPU's compute shaders to decode ASTC textures (recommended). @@ -660,75 +650,55 @@ stuttering but may present artifacts. - + ASTC Recompression Method: Método de Recompressão ASTC: - + Most GPUs lack support for ASTC textures and must decompress to anintermediate format: RGBA8. BC1/BC3: The intermediate format will be recompressed to BC1 or BC3 format, saving VRAM but degrading image quality. - + Frame Pacing Mode (Vulkan only) - + Controls how the emulator manages frame pacing to reduce stuttering and make the frame rate smoother and more consistent. - + VRAM Usage Mode: Modo de Uso da VRAM: - + Selects whether the emulator should prefer to conserve memory or make maximum usage of available video memory for performance. Aggressive mode may impact performance of other applications such as recording software. - + Skip CPU Inner Invalidation - + Skips certain cache invalidations during memory updates, reducing CPU usage and improving latency. This may cause soft-crashes. - - GPU Readback Before NCE Invalidation - - - - - Flushes GPU buffer data back to guest memory before NCE invalidates the whole guest page, preserving it while the CPU store proceeds. - - - - - Patch Runtime NROs for NCE - - - - - Applies NCE code patches to runtime-loaded NRO modules.This is required for some games to run correctly. - - - - + VSync Mode: Modo de Sincronização vertical: - + FIFO (VSync) does not drop frames or exhibit tearing but is limited by the screen refresh rate. FIFO Relaxed allows tearing as it recovers from a slow down. Mailbox can have lower latency than FIFO and does not tear but may drop frames. @@ -736,1372 +706,1410 @@ Immediate (no synchronization) presents whatever is available and can exhibit te - + Sync Memory Operations - + Ensures data consistency between compute and memory operations. This option fixes issues in games, but may degrade performance. Unreal Engine 4 games often see the most significant changes thereof. - + Enable asynchronous presentation (Vulkan only) Ativar apresentação assíncrona (Somente Vulkan) - + Slightly improves performance by moving presentation to a separate CPU thread. Melhora ligeiramente o desempenho ao mover a apresentação para uma thread de CPU separada. - + Force maximum clocks (Vulkan only) Forçar clock máximo (somente Vulkan) - + Runs work in the background while waiting for graphics commands to keep the GPU from lowering its clock speed. Executa trabalho em segundo plano aguardando pelos comandos gráficos para evitar a GPU de reduzir seu clock. - + Anisotropic Filtering: Filtro Anisotrópico: - + Controls the quality of texture rendering at oblique angles. Safe to set at 16x on most GPUs. - + GPU Mode: - + Controls the GPU emulation mode. Most games render fine with Fast, but Accurate is still required for some. Particles tend to only render correctly with Accurate mode. - + DMA Accuracy: - + Controls the DMA read mode. Unsafe is faster, while Safe is more stable and can fix issues in some games. Default follows the GPU Accuracy setting. - + GPU Fence Behavior: - + Controls the GPU fence synchronization behavior. Immediate is the fastest option, but can introduce some issues. Balanced offers better compatibility and may fix issues in some games. Accurate further improves compatibility at the cost of some performance. -Default follows the GPU Mode setting. +Strict is the slowest option, but can fix issues that require stricter synchronization. +Default follows the GPU Accuracy setting. - + + Enable GPU buffer readback + + + + + Preserves GPU-modified data by reading it back before uploading. +Some games require this to render certain effects properly. + + + + Enable asynchronous shader compilation - + May reduce shader stutter. - + GPU Clocks - + Makes the game believe GPU work finishes faster than it does, so it stops lowering resolution and render distance to fit the Switch's clocks. - + GPU Unswizzle - + Accelerates BCn 3D texture decoding using GPU compute. Disable if experiencing crashes or graphical glitches. - + GPU Unswizzle Max Texture Size - + Sets the maximum size (MiB) for GPU-based texture unswizzling. While the GPU is faster for medium and large textures, the CPU may be more efficient for very small ones. Adjust this to find the balance between GPU acceleration and CPU overhead. - + GPU Unswizzle Stream Size - + Sets the maximum amount of texture data (in MiB) processed per frame. Higher values can reduce stutter during texture loading but may impact frame consistency. - + GPU Unswizzle Chunk Size - + Determines the number of depth slices processed in a single dispatch. Increasing this can improve throughput on high-end GPUs but may cause TDR or driver timeouts on weaker hardware. - + Use Vulkan pipeline cache Utilizar cache de pipeline do Vulkan - + Enables GPU vendor-specific pipeline cache. This option can improve shader loading time significantly in cases where the Vulkan driver does not store pipeline cache files internally. Habilita o cache de pipeline da fabricante da GPU. Esta opção pode melhorar o tempo de carregamento de shaders significantemente em casos onde o driver Vulkan não armazena o cache de pipeline internamente. - + Enable Compute Pipelines (Intel Vulkan Only) Habilitar Pipeline de Computação (Somente Intel Vulkan) - + Required by some games. This setting only exists for Intel proprietary drivers and may crash if enabled. Compute pipelines are always enabled on all other drivers. - + Enable Reactive Flushing Habilitar Flushing Reativo - + Uses reactive flushing instead of predictive flushing, allowing more accurate memory syncing. Usa flushing reativo ao invés de flushing preditivo, permitindo mais precisão na sincronização da memória. - + Sync to framerate of video playback Sincronizar com o framerate da reprodução de vídeo - + Run the game at normal speed during video playback, even when the framerate is unlocked. Executa o jogo na velocidade normal durante a reprodução de vídeo, mesmo se o framerate estiver desbloqueado. - + Barrier feedback loops Ciclos de feedback de barreira - + Improves rendering of transparency effects in specific games. Melhora a renderização de efeitos de transparência em jogos específicos. - + Enable buffer history - + Enables access to previous buffer states. This option may improve rendering quality and performance consistency in some games. - + Fix bloom effects - + Removes bloom in Burnout. - + + Enable Legacy Rescale Pass + + + + + May fix rescale issues in some games by relying on behavior from the previous implementation. +Legacy behavior workaround that fixes line artifacts on AMD and Intel GPUs, and grey texture flicker on Nvidia GPUs in Luigis Mansion 3. + + + + Extended Dynamic State - + Controls the number of features that can be used in Extended Dynamic State. Higher states allow for more features and can increase performance, but may cause additional graphical issues. - + Vertex Input Dynamic State - + Enables vertex input dynamic state feature for better quality and performance. - + Sample Shading - + Allows the fragment shader to execute per sample in a multi-sampled fragment instead of once per fragment. Improves graphics quality at the cost of performance. Higher values improve quality but degrade performance. - + RNG Seed Semente de RNG - + Controls the seed of the random number generator. Mainly used for speedrunning. - + Device Name Nome do Dispositivo - + The name of the console. - + Homebrew Args - + Command-line arguments passed to homebrew at launch (e.g. -noglsl). - + Custom RTC Date: Data personalizada do RTC: - + This option allows to change the clock of the console. Can be used to manipulate time in games. - + The number of seconds from the current unix time - + Language: Idioma: - + This option can be overridden when region setting is auto-select - + Region: Região: - + The region of the console. - + Time Zone: Fuso Horário: - + The time zone of the console. - + Sound Output Mode: Modo de saída de som - + Console Mode: Modo Console: - + Selects if the console is in Docked or Handheld mode. Games will change their resolution, details and supported controllers and depending on this setting. Setting to Handheld can help improve performance for low end systems. - + Prompt for user profile on boot - + Useful if multiple people use the same PC. - + Pause when not in focus - + Pauses emulation when focusing on other windows. - + Confirm before stopping emulation Confirmar antes de parar a emulação - + Overrides prompts asking to confirm stopping the emulation. Enabling it bypasses such prompts and directly exits the emulation. - + Hide mouse on inactivity Esconder rato quando inactivo. - + Hides the mouse after 2.5s of inactivity. - + + Disable controller applet + Desabilitar miniaplicativo de controle + + + + Forcibly disables the use of the controller applet in emulated programs. +When a program attempts to open the controller applet, it is immediately closed. + + + + Check for updates - + Whether or not to check for updates upon startup. - + Enable Gamemode Habilitar Gamemode - + Force X11 as Graphics Backend - + Custom frontend Frontend customizado - + Real applet Miniaplicativo real - - - Disabled - - - - + Never - + On Load - + Always - + CPU CPU - + GPU GPU - + CPU Asynchronous CPU Assíncrona - + Uncompressed (Best quality) Descompactado (Melhor Q - + BC1 (Low quality) BC1 (Baixa qualidade) - + BC3 (Medium quality) BC3 (Média qualidade) - - + + Auto Automático - + 30 FPS - + 60 FPS - + 90 FPS - + 120 FPS - + Conservative Conservador - + Aggressive Agressivo - + Vulkan Vulcano - + OpenGL GLSL - + OpenGL GLASM (Assembly Shaders, NVIDIA Only) - + OpenGL SPIR-V (Experimental, AMD/Mesa Only) - + Null Nenhum (desativado) - + Fast - - - + + + Accurate Preciso - - - + + + Default Padrão - + Unsafe (fast) - + Safe (stable) - + Immediate - + Balanced - + + Strict + + + + Unsafe Inseguro - + Paranoid (disables most optimizations) Paranoia (desativa a maioria das otimizações) - + Debugging - + Dynarmic Dynarmic - + NCE NCE - + Borderless Windowed Janela sem bordas - + Exclusive Fullscreen Tela cheia exclusiva - + No Video Output Sem saída de vídeo - + CPU Video Decoding Decodificação de vídeo pela CPU - + GPU Video Decoding (Default) Decodificação de vídeo pela GPU (Padrão) - + 0.25X (180p/270p) [EXPERIMENTAL] - + 0.5X (360p/540p) [EXPERIMENTAL] 0.5X (360p/540p) [EXPERIMENTAL] - + 0.75X (540p/810p) [EXPERIMENTAL] 0.75X (540p/810p) [EXPERIMENTAL] - + 1X (720p/1080p) 1X (720p/1080p) - + 1.25X (900p/1350p) [EXPERIMENTAL] - + 1.5X (1080p/1620p) [EXPERIMENTAL] 1.5X (1080p/1620p) [EXPERIMENTAL] - + 2X (1440p/2160p) 2X (1440p/2160p) - + 3X (2160p/3240p) 3X (2160p/3240p) - + 4X (2880p/4320p) 4X (2880p/4320p) - + 5X (3600p/5400p) 5X (3600p/5400p) - + 6X (4320p/6480p) 6X (4320p/6480p) - + 7X (5040p/7560p) 7X (5040p/7560p) - + 8X (5760p/8640p) 8X (5760p/8640p) - + Nearest Neighbor Vizinho mais próximo - + Bilinear Bilinear - + Bicubic Bicúbico - + Gaussian Gaussiano - + Lanczos - + ScaleForce ScaleForce - + AMD FidelityFX Super Resolution - + Area - + MMPX - + Zero-Tangent - + B-Spline - + Mitchell - + Spline-1 - + Snapdragon Game Super Resolution - + Snapdragon Game Super Resolution EdgeDir - + None Nenhum - + FXAA FXAA - + SMAA SMAA - + Default (16:9) Padrão (16:9) - + Force 4:3 Forçar 4:3 - + Force 21:9 Forçar 21:9 - + Force 16:10 Forçar 16:10 - + Stretch to Window Esticar à Janela - + Automatic Automático - + 2x 2x - + 4x 4x - + 8x 8x - + 16x 16x - + Japanese (日本語) Japonês (日本語) - + American English Inglês Americano - + French (français) Francês (français) - + German (Deutsch) Alemão (Deutsch) - + Italian (italiano) Italiano (italiano) - + Spanish (español) Espanhol (español) - + Chinese Chinês - + Korean (한국어) Coreano (한국어) - + Dutch (Nederlands) Holandês (Nederlands) - + Portuguese (português) Português (português) - + Russian (Русский) Russo (Русский) - + Taiwanese Taiwanês - + British English Inglês Britânico - + Canadian French Francês Canadense - + Latin American Spanish Espanhol Latino-Americano - + Simplified Chinese Chinês Simplificado - + Traditional Chinese (正體中文) Chinês Tradicional (正 體 中文) - + Brazilian Portuguese (português do Brasil) Português do Brasil (Brazilian Portuguese) - + Polish (polska) - + Thai (แบบไทย) - - + + Japan Japão - + USA EUA - + Europe Europa - + Australia Austrália - + China China - + Korea Coreia - + Taiwan Taiwan - + Auto (%1) Auto select time zone Auto (%1) - + Default (%1) Default time zone Padrão (%1) - + CET CET - + CST6CDT CST6CDT - + Cuba Cuba - + EET EET - + Egypt Egipto - + Eire Irlanda - + EST EST - + EST5EDT EST5EDT - + GB GB - + GB-Eire GB-Irlanda - + GMT GMT - + GMT+0 GMT+0 - + GMT-0 GMT-0 - + GMT0 GMT0 - + Greenwich Greenwich - + Hongkong Hongkong - + HST HST - + Iceland Islândia - + Iran Irão - + Israel Israel - + Jamaica Jamaica - + Kwajalein Kwajalein - + Libya Líbia - + MET MET - + MST MST - + MST7MDT MST7MDT - + Navajo Navajo - + NZ NZ - + NZ-CHAT NZ-CHAT - + Poland Polónia - + Portugal Portugal - + PRC PRC - + PST8PDT PST8PDT - + ROC ROC - + ROK ROK - + Singapore Singapura - + Turkey Turquia - + UCT UCT - + Universal Universal - + UTC UTC - + W-SU W-SU - + WET WET - + Zulu Zulu - + Mono Mono - + Stereo Estéreo - + Surround Surround - + 4GB DRAM (Default) 4GB DRAM (Padrão) - + 6GB DRAM (Unsafe) 6GB DRAM (Não seguro) - + 8GB DRAM - + 10GB DRAM (Unsafe) - + 12GB DRAM (Unsafe) - + Docked Ancorado - + Handheld Portátil + + + + Normal + + - Normal + Boost - Boost - - - - - Overclock - + Always ask (Default) Sempre perguntar (Padrão) - + Only if game specifies not to stop Somente se o jogo especificar para não parar - + Never ask Nunca perguntar - + Very Small (16 MB) - + Small (32 MB) - + Normal (128 MB) - + Large (256 MB) - + Very Large (512 MB) - + Very Low (4 MB) - + Low (8 MB) - + Normal (16 MB) - + Medium (32 MB) - + High (64 MB) - + Very Low (32) - + Low (64) - + Normal (128) - + Medium (256) - + High (512) - + + Disabled + + + + ExtendedDynamicState 1 - + ExtendedDynamicState 2 - + ExtendedDynamicState 3 - + Tree View - + Grid View @@ -3193,38 +3201,33 @@ Would you like to delete the old save data? Cor de fundo: - + % FSR/SGSR sharpening percentage (e.g. 50%) - - Configure Effects... - - - - + Off Desligado - + VSync Off Sincronização vertical desligada - + Recommended Recomendado - + On Ligado - + VSync On Sincronização vertical ligada @@ -4837,130 +4840,6 @@ Once deleted, these can NOT be recovered. Are you 100% sure you want to delete t - - ConfigurePostProcessing - - - Post-Processing Effects - - - - - Changes apply immediately while a game is running. - - - - - Enable post-processing - - - - - Preset: - - - - - Apply - - - - - Reset Values - - - - - Return every effect to the values the preset ships with. - - - - - Save As... - - - - - Save Preset - - - - - Preset name: - - - - - Clear - - - - - Remove every effect in use and deselect the preset. - - - - - Add Effect - - - - - None - - - - - No effects in use. Pick a preset and press Apply, or add effects one by one. - - - - - Custom chain. Pick a preset above and press Apply to replace it. - - - - - Active preset: %1 (modified). Press Reset Values to go back to how it ships. - - - - - Active preset: %1 - - - - - Enabled - - - - - Disabled - - - - - Reset to defaults - - - - - Effect '%1' was not found. - - - - - Effect failed to compile: -%1 - - - - - No usable ReShade FX effects were found. Place .fx files in the post_shaders folder. - - - ConfigureProfileManager @@ -6046,50 +5925,50 @@ Please go to Configure -> System -> Network and make a selection. GRenderWindow - - + + OpenGL not available! OpenGL não está disponível! - + OpenGL shared contexts are not supported. Shared contexts do OpenGL não são suportados. - + Eden has not been compiled with OpenGL support. - - - + + + Error while initializing OpenGL! Erro ao inicializar OpenGL! - + Your GPU may not support OpenGL, or you do not have the latest graphics driver. O seu GPU pode não suportar OpenGL, ou não tem os drivers gráficos mais recentes. - + Error while initializing OpenGL 4.6! Erro ao inicializar o OpenGL 4.6! - + Your GPU may not support OpenGL 4.6, or you do not have the latest graphics driver.<br><br>GL Renderer:<br>%1 O teu GPU pode não suportar OpenGL 4.6, ou não tem os drivers gráficos mais recentes. - + Your GPU may not support one or more required OpenGL extensions. Please ensure you have the latest graphics driver.<br><br>GL Renderer:<br>%1<br><br>Unsupported extensions:<br>%2 Sua GPU pode não suportar uma ou mais extensões necessárias do OpenGL. Verifique se você possui a última versão dos drivers gráficos.<br><br>Renderizador GL:<br>%1<br><br>Extensões não suportadas:<br>%2 - + This build doesn't have OpenGL support. @@ -6910,42 +6789,42 @@ Debug Message: Restaurar tamanho da janela para 1080p - + &Multiplayer &Multijogador - + &Tools &Ferramentas - + Am&iibo - + Launch &Applet - + &TAS &TAS - + &Create Home Menu Shortcut - + Install &Firmware - + &Help &Ajuda @@ -6971,7 +6850,7 @@ Debug Message: - + &Pause &Pausa @@ -7072,176 +6951,176 @@ Debug Message: - &User Handbook - + Open &Quickstart Guide + Abrir &guia de início rápido - + + &FAQ + &Perguntas frequentes + + + &Capture Screenshot &Captura de Tela - + &Album - + &Set Nickname and Owner &Definir apelido e proprietário - + &Delete Game Data &Remover dados do jogo - + &Restore Amiibo &Recuperar Amiibo - + &Format Amiibo &Formatar Amiibo - + &Mii Editor - + &Configure TAS... &Configurar TAS - + Configure C&urrent Game... Configurar jogo atual... - - + + &Start &Começar - + &Reset &Restaurar - - + + R&ecord G&ravar - + Open &Controller Menu Menu Abrir &Controles - + Install Decryption &Keys - + &Home Menu - + &Desktop - + &Application Menu - + &Root Data Folder - + &NAND Folder - + &SDMC Folder - + &Mod Folder - + &Log Folder - + From Folder - + From ZIP - + &Eden Dependencies - + &Data Manager - + &Tree View - + &Grid View - + Game Icon Size - - + + None - + Show Game &Name - - - Show &Performance Overlay - - - Post-Processing &Shaders... + Show &Performance Overlay @@ -7250,737 +7129,722 @@ Debug Message: - + Small (32x32) - + Standard (64x64) - + Large (128x128) - + Full Size (256x256) - + Broken Vulkan Installation Detected - + Vulkan initialization failed during boot. - + Running a game TRANSLATORS: This string is shown to the user to explain why yuzu needs to prevent the computer from sleeping - + Loading Web Applet... - - + + Disable Web Applet - + Disabling the web applet can lead to undefined behavior and should only be used with Super Mario 3D All-Stars. Are you sure you want to disable the web applet? (This can be re-enabled in the Debug settings.) - + The amount of shaders currently being built - + The current selected resolution scaling multiplier. - + Current emulation speed. Values higher or lower than 100% indicate emulation is running faster or slower than a Switch. - + How many frames per second the game is currently displaying. This will vary from game to game and scene to scene. - + Time taken to emulate a Switch frame, not counting framelimiting or v-sync. For full-speed emulation this should be at most 16.67 ms. - + Unmute - + Mute - + Reset Volume - - Configure Effects... - - - - + &Clear Recent Files - + &Continue - + Warning: Outdated Game Format - + You are using the deconstructed ROM directory format for this game, which is an outdated format that has been superseded by others such as NCA, NAX, XCI, or NSP. Deconstructed ROM directories lack icons, metadata, and update support.<br>For an explanation of the various Switch formats Eden supports, out our user handbook. This message will not be shown again. - - + + Error while loading ROM! - + The ROM format is not supported. - + An error occurred initializing the video core. - - This is usually caused by outdated GPU drivers. Please see the log for more details. See: <a href='https://git.eden-emu.dev/eden-emu/eden/src/branch/master/docs/user/HowToAccessLogs.md'>How to access log files</a>. + + Eden has encountered an error while running the video core. This is usually caused by outdated GPU drivers, including integrated ones. Please see the log for more details. For more information on accessing the log, please see the following page: <a href='https://yuzu-mirror.github.io/help/reference/log-files/'>How to Upload the Log File</a>. - + Error while loading ROM! %1 %1 signifies a numeric error code. - + %1<br>Please redump your files or ask on Discord/Stoat for help. %1 signifies an error string. - + An unknown error occurred. Please see the log for more details. - - + + (64-bit) - - + + (32-bit) - - + + %1 %2 %1 is the title name. %2 indicates if the title is 64-bit or 32-bit - + Closing software... - + Save Data - + Mod Data - + Error Opening %1 Folder - - + + Folder does not exist! - + Remove Installed Game Contents? - + Remove Installed Game Update? - + Remove Installed Game DLC? - + Remove Entry - + Delete OpenGL Transferable Shader Cache? - + Delete Vulkan Transferable Shader Cache? - + Delete All Transferable Shader Caches? - + Remove Custom Game Configuration? - + Remove Cache Storage? - + Remove File - + Remove Play Time Data - + Reset play time? - - + + RomFS Extraction Failed! - + There was an error copying the RomFS files or the user cancelled the operation. - + Full - + Skeleton - + Select RomFS Dump Mode - + Please select the how you would like the RomFS dumped.<br>Full will copy all of the files into the new directory while <br>skeleton will only create the directory structure. - + There is not enough free space at %1 to extract the RomFS. Please free up space or select a different dump directory at Emulation > Configure > System > Filesystem > Dump Root - + Extracting RomFS... - - + + Cancel - + RomFS Extraction Succeeded! - + The operation completed successfully. - + Error Opening %1 - + Select Directory - + Properties - + The game properties could not be loaded. - + Switch Executable (%1);;All Files (*.*) %1 is an identifier for the Switch executable file extensions. - + Load File - + Open Extracted ROM Directory - + Invalid Directory Selected - + The directory you have selected does not contain a 'main' file. - + Installable Switch File (*.nca *.nsp *.xci);;Nintendo Content Archive (*.nca);;Nintendo Submission Package (*.nsp);;NX Cartridge Image (*.xci) - + Install Files - + %n file(s) remaining - + Installing file "%1"... - - + + Install Results - + To avoid possible conflicts, we discourage users from installing base games to the NAND. Please, only use this feature to install updates and DLC. - + %n file(s) were newly installed - + %n file(s) were overwritten - + %n file(s) failed to install - + System Application - + System Archive - + System Application Update - + Firmware Package (Type A) - + Firmware Package (Type B) - + Game - + Game Update - + Game DLC - + Delta Title - + Select NCA Install Type... - + Please select the type of title you would like to install this NCA as: (In most instances, the default 'Game' is fine.) - + Failed to Install - + The title type you selected for the NCA is invalid. - + File not found - + File "%1" not found - + OK - + Function Disabled - + Compatibility list reporting is currently disabled. Check back later! - + Error opening URL - + Unable to open the URL "%1". - + TAS Recording - + Overwrite file of player 1? - + Invalid config detected - + Handheld controller can't be used on docked mode. Pro controller will be selected. - - + + Amiibo - - + + The current amiibo has been removed - + Error - - + + The current game is not looking for amiibos - + Amiibo File (%1);; All Files (*.*) - + Load Amiibo - + Error loading Amiibo data - + The selected file is not a valid amiibo - + The selected file is already on use - + An unknown error occurred - + No firmware available - + Firmware Corrupted - + Unknown applet - + Applet doesn't map to a known value. - + Record not found - + Applet not found. Please reinstall firmware. - + Capture Screenshot - + PNG Image (*.png) - + TAS state: Running %1/%2 - + TAS state: Recording %1 - + TAS state: Idle %1/%2 - + TAS State: Invalid - + &Stop Running - + Stop R&ecording - + Building: %n shader(s) - + Scale: %1x %1 is the resolution scaling factor - + Speed: %1% / %2% - + Speed: %1% - + Game: %1 FPS - + Frame: %1 ms - + NO AA - - NO FX - - - - - FX - - - - + VOLUME: MUTE - + VOLUME: %1% Volume percentage (e.g. 50%) - + Derivation Components Missing - + Decryption keys are missing. Install them now? - + Wayland Detected! - + Wayland is known to have significant performance issues and mysterious bugs. It's recommended to use X11 instead. @@ -7988,74 +7852,74 @@ Would you like to force it for future launches? - + Use X11 - + Continue with Wayland - + Don't show again - + Restart Required - + Restart Eden to apply the X11 backend. - + Slow - + Turbo - + Unlocked - + Select RomFS Dump Target - + Please select which RomFS you would like to dump. - + Are you sure you want to close Eden? - - - + + + Eden - + Are you sure you want to stop the emulation? Any unsaved progress will be lost. - + The currently running application has requested Eden to not exit. Would you like to bypass this and exit anyway? @@ -9242,275 +9106,275 @@ p, li { white-space: pre-wrap; } - This game may require firmware to function properly, and you don't have any installed. Please install firmware before launching, or press "OK" to launch anyways. + The game you are trying to launch requires firmware to boot or to get past the opening menu. Please <a href='https://yuzu-mirror.github.io/help/quickstart'>dump and install firmware</a>, or press "OK" to launch anyways. - + Installing Firmware... - - - - - + + + + + Cancel - + Firmware Install Failed - + Firmware Install Succeeded - + Firmware integrity verification failed! - - + + Verification failed for the following files: %1 - - + + Verifying integrity... - - - - Integrity verification succeeded! - - + Integrity verification succeeded! + + + + + The operation completed successfully. - - + + Integrity verification failed! - + File contents may be corrupt or missing. - + Integrity verification couldn't be performed - + Firmware installation cancelled, firmware may be in a bad state or corrupted. File contents could not be checked for validity. - + Select Dumped Keys Location - + Decryption Keys install succeeded - + Decryption Keys install failed - + Orphaned Profiles Detected! - + UNEXPECTED BAD THINGS MAY HAPPEN IF YOU DON'T READ THIS!<br>Eden has detected the following save directories with no attached profile:<br>%1<br><br>The following profiles are valid:<br>%2<br><br>Click "OK" to open your save folder and fix up your profiles.<br>Hint: copy the contents of the largest or last-modified folder elsewhere, delete all orphaned profiles, and move your copied contents to the good profile.<br><br>Still confused? See the <a href='https://git.eden-emu.dev/eden-emu/eden/src/branch/master/docs/user/Orphaned.md'>help page</a>.<br> - + Really clear data? - + Important data may be lost! - + Are you REALLY sure? - + Once deleted, your data will NOT come back! Only do this if you're 100% sure you want to delete this data. - + Clearing... - + Select Export Location - + %1.zip - - - + + + Zipped Archives (*.zip) - + Exporting data. This may take a while... - + Exporting - + Exported Successfully - + Data was exported successfully. - + Export Cancelled - + Export was cancelled by the user. - + Export Failed - + Ensure you have write permissions on the targeted directory and try again. - + Select Import Location - + Import Warning - + All previous data in this directory will be deleted. Are you sure you wish to proceed? - + Importing data. This may take a while... - + Importing - + Imported Successfully - + Data was imported successfully. - + Import Cancelled - + Import was cancelled by the user. - + Import Failed - + Ensure you have read permissions on the targeted directory and try again. - + Keys not installed - + Install decryption keys and restart Eden before attempting to install firmware. - + Select Dumped Firmware Source Location - + Select Dumped Firmware ZIP - + Firmware cleanup failed - + Failed to clean up extracted firmware cache. Check write permissions in the system temp directory and try again. OS reported error: %1 diff --git a/dist/languages/ru_RU.ts b/dist/languages/ru_RU.ts index bb44335970..3c80f8ee9d 100644 --- a/dist/languages/ru_RU.ts +++ b/dist/languages/ru_RU.ts @@ -592,22 +592,12 @@ SMAA обеспечивает лучшее качество. FXAA может давать более стабильное изображение на низком разрешении. - - Enable post-processing effects - - - - - Applies post-processing effects to the final image. - - - - + Fullscreen Mode: Полноэкранный режим: - + The method used to render the window in fullscreen. Borderless offers the best compatibility with the on-screen keyboard that some games request for input. Exclusive fullscreen may offer better performance and better Freesync/Gsync support. @@ -616,12 +606,12 @@ Exclusive fullscreen may offer better performance and better Freesync/Gsync supp Эксклюзивный полноэкранный режим может иметь лучшую производительность и лучшую поддержку Freesync/G-Sync. - + Aspect Ratio: Соотношение сторон: - + Stretches the renderer to fit the specified aspect ratio. Most games only support 16:9, so modifications are required to get other ratios. Also controls the aspect ratio of captured screenshots. @@ -630,35 +620,35 @@ Also controls the aspect ratio of captured screenshots. Также управляет соотношением сторон скриншотов. - + Use persistent pipeline cache Использовать постоянный кэш конвейера - + Allows saving shaders to storage for faster loading on following game boots. Disabling it is only intended for debugging. Позволяет сохранять шейдеры на диск для более быстрой загрузки при последующем запуске игры. Отключение этой функции предназначено только для отладки. - + Use asynchronous GPU emulation Использовать асинхронную эмуляцию GPU - + Uses an extra CPU thread for rendering. This option should always remain enabled. Использует дополнительный поток CPU для рендеринга. Эта опция всегда должна оставаться включенной. - + NVDEC emulation: Эмуляция NVDEC: - + Specifies how videos should be decoded. It can either use the CPU or the GPU for decoding, or perform no decoding at all (black screen on videos). In most cases, GPU decoding provides the best performance. @@ -667,12 +657,12 @@ In most cases, GPU decoding provides the best performance. В большинстве случаев декодирование с использованием ГП обеспечивает лучшую производительность. - + ASTC Decoding Method: Метод декодирования ASTC: - + This option controls how ASTC textures should be decoded. CPU: Use the CPU for decoding. GPU: Use the GPU's compute shaders to decode ASTC textures (recommended). @@ -684,12 +674,12 @@ GPU: использовать вычислительные шейдеры ГП Асинхронный CPU: использовать ЦП для декодирования текстур ASTC по мере необходимости. Устраняет фризы при декодировании ASTC, но может вызывать артефакты. - + ASTC Recompression Method: Метод пересжатия ASTC: - + Most GPUs lack support for ASTC textures and must decompress to anintermediate format: RGBA8. BC1/BC3: The intermediate format will be recompressed to BC1 or BC3 format, saving VRAM but degrading image quality. @@ -697,64 +687,44 @@ BC1/BC3: The intermediate format will be recompressed to BC1 or BC3 format, BC1/BC3: промежуточный формат будет перекодирован в BC1 или BC3, экономя видеопамять, но снижая качество изображения. - + Frame Pacing Mode (Vulkan only) Режим стабилизации кадров (только Vulkan) - + Controls how the emulator manages frame pacing to reduce stuttering and make the frame rate smoother and more consistent. Определяет способ управления выводом кадров для уменьшения подергиваний и повышения плавности и стабильности частоты кадров. - + VRAM Usage Mode: Режим VRAM: - + Selects whether the emulator should prefer to conserve memory or make maximum usage of available video memory for performance. Aggressive mode may impact performance of other applications such as recording software. Определяет, должен ли эмулятор экономить память или использовать всю доступную видеопамять для повышения производительности. Агрессивный режим может негативно сказаться на производительности других приложений, например программ записи. - + Skip CPU Inner Invalidation Пропуск внутренней инвалидизации CPU - + Skips certain cache invalidations during memory updates, reducing CPU usage and improving latency. This may cause soft-crashes. Пропускает некоторые операции сброса кэша при обновлении памяти, снижая нагрузку на ЦП и уменьшая задержку. Может вызывать сбои в работе игр. - - GPU Readback Before NCE Invalidation - - - - - Flushes GPU buffer data back to guest memory before NCE invalidates the whole guest page, preserving it while the CPU store proceeds. - - - - - Patch Runtime NROs for NCE - - - - - Applies NCE code patches to runtime-loaded NRO modules.This is required for some games to run correctly. - - - - + VSync Mode: Режим VSync: - + FIFO (VSync) does not drop frames or exhibit tearing but is limited by the screen refresh rate. FIFO Relaxed allows tearing as it recovers from a slow down. Mailbox can have lower latency than FIFO and does not tear but may drop frames. @@ -765,12 +735,12 @@ Mailbox может обеспечивать меньшую задержку, ч Immediate (без синхронизации) выводит все доступные кадры и может иметь разрывы. - + Sync Memory Operations Синхронизация операций памяти - + Ensures data consistency between compute and memory operations. This option fixes issues in games, but may degrade performance. Unreal Engine 4 games often see the most significant changes thereof. @@ -779,56 +749,56 @@ Unreal Engine 4 games often see the most significant changes thereof. Игры на Unreal Engine 4 чаще всего демонстрируют заметные изменения. - + Enable asynchronous presentation (Vulkan only) Включить асинхронный вывод (только Vulkan) - + Slightly improves performance by moving presentation to a separate CPU thread. Немного повышает производительность, перенося вывод кадра в отдельный поток CPU. - + Force maximum clocks (Vulkan only) Принудительно зафиксировать максимальную тактовую частоту (только для Vulkan) - + Runs work in the background while waiting for graphics commands to keep the GPU from lowering its clock speed. Выполняет фоновые операции во время ожидания графических команд, предотвращая снижение тактовой частоты GPU. - + Anisotropic Filtering: Анизотропная фильтрация: - + Controls the quality of texture rendering at oblique angles. Safe to set at 16x on most GPUs. Управляет качеством отображения текстур под наклонными углами. На большинстве GPU безопасно использовать значение 16x. - + GPU Mode: Режим GPU: - + Controls the GPU emulation mode. Most games render fine with Fast, but Accurate is still required for some. Particles tend to only render correctly with Accurate mode. Управляет режимом эмуляции ГПУ. Большинство игр нормально отображаются в режиме Быстрый, но для некоторых требуется режим Точный. Частицы обычно корректно отображаются только в режиме Точный. - + DMA Accuracy: Точность DMA: - + Controls the DMA read mode. Unsafe is faster, while Safe is more stable and can fix issues in some games. Default follows the GPU Accuracy setting. @@ -837,58 +807,76 @@ Default follows the GPU Accuracy setting. По умолчанию соответствует настройке точности ГПУ. - + GPU Fence Behavior: Поведение барьеров ГПУ: - + Controls the GPU fence synchronization behavior. Immediate is the fastest option, but can introduce some issues. Balanced offers better compatibility and may fix issues in some games. Accurate further improves compatibility at the cost of some performance. -Default follows the GPU Mode setting. - +Strict is the slowest option, but can fix issues that require stricter synchronization. +Default follows the GPU Accuracy setting. + Управляет поведением синхронизации через барьеры ГПУ. +Мгновенный — самый быстрый вариант, но может вызывать некоторые проблемы. +Сбалансированный обеспечивает лучшую совместимость и может исправлять проблемы в некоторых играх. +Точный ещё больше повышает совместимость ценой некоторого снижения производительности. +Строгий — самый медленный вариант, но может исправлять проблемы, требующие более строгой синхронизации. +По умолчанию соответствует настройке точности ГПУ. - + + Enable GPU buffer readback + Включить обратное чтение буфера ГПУ + + + + Preserves GPU-modified data by reading it back before uploading. +Some games require this to render certain effects properly. + Сохраняет измененные ГПУ данные путем чтения их обратно перед выгрузками. +Некоторые игры требуют этого, чтобы рендерить определенные эффекты правильно. + + + Enable asynchronous shader compilation Включить асинхронную компиляцию шейдеров - + May reduce shader stutter. Может уменьшить фризы, вызванные компиляцией шейдеров. - + GPU Clocks Частоты GPU - + Makes the game believe GPU work finishes faster than it does, so it stops lowering resolution and render distance to fit the Switch's clocks. Заставляет игру думать, что GPU завершает свою работу быстрее, чем на самом деле, чтобы она перестала подстраиваться под частоты Switch, понижать разрешение и дальность прорисовки. - + GPU Unswizzle GPU-десвиззлинг (GPU Unswizzle) - + Accelerates BCn 3D texture decoding using GPU compute. Disable if experiencing crashes or graphical glitches. Ускоряет декодирование 3D-текстур BCn с использованием вычислений GPU. Отключите при возникновении сбоев или графических артефактов. - + GPU Unswizzle Max Texture Size Максимальный размер текстур для GPU-десвиззлинга - + Sets the maximum size (MiB) for GPU-based texture unswizzling. While the GPU is faster for medium and large textures, the CPU may be more efficient for very small ones. Adjust this to find the balance between GPU acceleration and CPU overhead. @@ -897,48 +885,48 @@ Adjust this to find the balance between GPU acceleration and CPU overhead. - + GPU Unswizzle Stream Size Размер потока GPU-десвиззлинга - + Sets the maximum amount of texture data (in MiB) processed per frame. Higher values can reduce stutter during texture loading but may impact frame consistency. Задает максимальный объем данных текстур (в МиБ), обрабатываемый за кадр. Более высокие значения могут уменьшить подергивания при загрузке текстур, но это может повлиять на стабильность кадров. - + GPU Unswizzle Chunk Size Размер блока GPU-десвиззлинга - + Determines the number of depth slices processed in a single dispatch. Increasing this can improve throughput on high-end GPUs but may cause TDR or driver timeouts on weaker hardware. Определяет количество слоев глубины, обрабатываемых за один вызов. Увеличение этого значения может повысить пропускную способность на производительных GPU, но на слабом оборудовании способно вызвать TDR или тайм-ауты драйвера. - + Use Vulkan pipeline cache Использовать кэш конвейеров Vulkan - + Enables GPU vendor-specific pipeline cache. This option can improve shader loading time significantly in cases where the Vulkan driver does not store pipeline cache files internally. Включает кэш конвейеров, зависящий от производителя GPU. Эта опция может значительно ускорить загрузку шейдеров в тех случаях, когда драйвер Vulkan не сохраняет такие файлы кэша внутри себя. - + Enable Compute Pipelines (Intel Vulkan Only) Включить вычислительные конвейеры (только для Intel Vulkan) - + Required by some games. This setting only exists for Intel proprietary drivers and may crash if enabled. Compute pipelines are always enabled on all other drivers. @@ -947,182 +935,194 @@ Compute pipelines are always enabled on all other drivers. На остальных драйверах вычислительные конвейеры всегда включены. - + Enable Reactive Flushing Включить реактивный сброс - + Uses reactive flushing instead of predictive flushing, allowing more accurate memory syncing. Использует реактивный сброс (Reactive Flushing) вместо прогнозирующего, обеспечивая более точную синхронизацию памяти. - + Sync to framerate of video playback Синхронизировать с частотой кадров видео - + Run the game at normal speed during video playback, even when the framerate is unlocked. Поддерживать нормальную скорость игры во время воспроизведения видео, даже если частота кадров разблокирована. - + Barrier feedback loops Циклы обратной связи барьеров - + Improves rendering of transparency effects in specific games. Улучшает отрисовку эффектов прозрачности в некоторых играх. - + Enable buffer history Включить историю буфера - + Enables access to previous buffer states. This option may improve rendering quality and performance consistency in some games. Предоставляет доступ к предыдущим состояниям буфера. В некоторых играх может повысить качество рендеринга и стабильность производительности. - + Fix bloom effects Исправить эффекты bloom - + Removes bloom in Burnout. Удаляет эффект bloom в игре Burnout. - + + Enable Legacy Rescale Pass + Включить устаревший режим масштабирования + + + + May fix rescale issues in some games by relying on behavior from the previous implementation. +Legacy behavior workaround that fixes line artifacts on AMD and Intel GPUs, and grey texture flicker on Nvidia GPUs in Luigis Mansion 3. + Может исправить проблемы масштабирования в некоторых играх, используя поведение предыдущей реализации. +Это обходное решение устраняет артефакты линий на GPU AMD и Intel, а также мерцание серых текстур на GPU Nvidia в Luigis Mansion 3. + + + Extended Dynamic State Расширенное динамическое состояние (Extended Dynamic State) - + Controls the number of features that can be used in Extended Dynamic State. Higher states allow for more features and can increase performance, but may cause additional graphical issues. Определяет количество функций, доступных в Extended Dynamic State. Более высокие значения позволяют использовать больше функций и иногда повышают производительность, но могут вызвать дополнительные графические проблемы. - + Vertex Input Dynamic State Динамическое состояние ввода вершин (Vertex Input Dynamic State) - + Enables vertex input dynamic state feature for better quality and performance. Включает функцию динамического состояния ввода вершин для улучшения качества и производительности. - + Sample Shading Множественное затенение (Sample Shading) - + Allows the fragment shader to execute per sample in a multi-sampled fragment instead of once per fragment. Improves graphics quality at the cost of performance. Higher values improve quality but degrade performance. Позволяет фрагментному шейдеру выполняться для каждого сэмпла в мультисемплированном фрагменте вместо одного раза. Повышает качество графики за счет снижения производительности. Более высокие значения повышают качество, но сильнее снижают производительность. - + RNG Seed Сид RNG - + Controls the seed of the random number generator. Mainly used for speedrunning. Задает начальное значение генератора случайных чисел. В основном используется для спидранов. - + Device Name Название устройства - + The name of the console. Имя консоли. - + Homebrew Args Аргументы Homebrew - + Command-line arguments passed to homebrew at launch (e.g. -noglsl). Аргументы командной строки при запуске homebrew (например, -noglsl). - + Custom RTC Date: Пользовательская RTC-дата: - + This option allows to change the clock of the console. Can be used to manipulate time in games. Позволяет изменить системные часы консоли. Может использоваться для изменения времени в играх. - + The number of seconds from the current unix time Количество секунд от текущего UNIX-времени. - + Language: Язык: - + This option can be overridden when region setting is auto-select Эта настройка может быть переопределена при автоматическом выборе региона. - + Region: Регион: - + The region of the console. Регион консоли. - + Time Zone: Часовой пояс: - + The time zone of the console. Часовой пояс консоли. - + Sound Output Mode: Режим вывода звука: - + Console Mode: Консольный режим: - + Selects if the console is in Docked or Handheld mode. Games will change their resolution, details and supported controllers and depending on this setting. Setting to Handheld can help improve performance for low end systems. @@ -1131,1026 +1131,1042 @@ Setting to Handheld can help improve performance for low end systems. Установка в портативный режим может повысить производительность на слабых системах. - + Prompt for user profile on boot Запрашивать профиль пользователя при запуске игры - + Useful if multiple people use the same PC. Полезно, если одним ПК пользуются несколько человек. - + Pause when not in focus Приостанавливать, если окно не активно - + Pauses emulation when focusing on other windows. Приостанавливает эмуляцию при переключении на другие окна. - + Confirm before stopping emulation Запрашивать подтверждение перед остановкой эмуляции - + Overrides prompts asking to confirm stopping the emulation. Enabling it bypasses such prompts and directly exits the emulation. Убирает запросы на подтверждение остановки эмуляции. При включении этой настройки эмуляция завершается сразу, без подтверждения. - + Hide mouse on inactivity Скрывать курсор при бездействии - + Hides the mouse after 2.5s of inactivity. Скрывает курсор мыши после 2,5 секунд бездействия. - + + Disable controller applet + Отключить апплет контроллера + + + + Forcibly disables the use of the controller applet in emulated programs. +When a program attempts to open the controller applet, it is immediately closed. + Принудительно отключает использование апплета контроллера в эмулируемых программах. +При попытке открыть апплет он сразу закрывается. + + + Check for updates Проверять обновления - + Whether or not to check for updates upon startup. Проверять обновления при запуске. - + Enable Gamemode Включить режим игры - + Force X11 as Graphics Backend Принудительно использовать X11 как графический бэкенд - + Custom frontend Собственный интерфейс эмулятора - + Real applet Приложение из прошивки - - - Disabled - Отключено - - - + Never Никогда - + On Load При загрузке - + Always Всегда - + CPU CPU - + GPU GPU - + CPU Asynchronous Асинхронный CPU - + Uncompressed (Best quality) Без сжатия (наилучшее качество) - + BC1 (Low quality) BC1 (низкое качество) - + BC3 (Medium quality) BC3 (среднее качество) - - + + Auto Авто - + 30 FPS 30 FPS - + 60 FPS 60 FPS - + 90 FPS 90 FPS - + 120 FPS 120 FPS - + Conservative Консервативный - + Aggressive Агрессивный - + Vulkan Vulkan - + OpenGL GLSL OpenGL GLSL - + OpenGL GLASM (Assembly Shaders, NVIDIA Only) OpenGL GLASM (ассемблерные шейдеры, только для NVIDIA) - + OpenGL SPIR-V (Experimental, AMD/Mesa Only) OpenGL SPIR-V (экспериментальный, только для AMD/Mesa) - + Null Null - + Fast Производительность - - - + + + Accurate Точность - - - + + + Default По умолчанию - + Unsafe (fast) Небезопасно (быстро) - + Safe (stable) Безопасно (стабильно) - + Immediate Мгновенный - + Balanced Баланс - + + Strict + Строгий + + + Unsafe Небезопасно - + Paranoid (disables most optimizations) Параноик (отключает большинство оптимизаций) - + Debugging Отладка - + Dynarmic Dynarmic - + NCE NCE - + Borderless Windowed Безрамочный режим - + Exclusive Fullscreen Эксклюзивный полноэкранный - + No Video Output Отсутствие видеовыхода - + CPU Video Decoding Декодирование видео на CPU - + GPU Video Decoding (Default) Декодирование видео на GPU (По умолчанию) - + 0.25X (180p/270p) [EXPERIMENTAL] 0.25X (180p/270p) [Экспериментально] - + 0.5X (360p/540p) [EXPERIMENTAL] 0.5X (360p/540p) [Экспериментально] - + 0.75X (540p/810p) [EXPERIMENTAL] 0.75X (540p/810p) [Экспериментально] - + 1X (720p/1080p) 1X (720p/1080p) - + 1.25X (900p/1350p) [EXPERIMENTAL] 1.25X (900p/1350p) [ЭКПЕРИМЕНТАЛЬНО] - + 1.5X (1080p/1620p) [EXPERIMENTAL] 1.5X (1080p/1620p) [Экспериментально] - + 2X (1440p/2160p) 2X (1440p/2160p) - + 3X (2160p/3240p) 3X (2160p/3240p) - + 4X (2880p/4320p) 4X (2880p/4320p) - + 5X (3600p/5400p) 5X (3600p/5400p) - + 6X (4320p/6480p) 6X (4320p/6480p) - + 7X (5040p/7560p) 7X (5040p/7560p) - + 8X (5760p/8640p) 8X (5760p/8640p) - + Nearest Neighbor Ближайший сосед (Nearest Neighbor) - + Bilinear Билинейный - + Bicubic Бикубический - + Gaussian По Гауссу - + Lanczos Lanczos - + ScaleForce ScaleForce - + AMD FidelityFX Super Resolution AMD FidelityFX™️ Super Resolution - + Area Область (Area) - + MMPX MMPX - + Zero-Tangent Zero-Tangent - + B-Spline B-Spline - + Mitchell Mitchell - + Spline-1 Spline-1 - + Snapdragon Game Super Resolution Snapdragon Game Super Resolution - + Snapdragon Game Super Resolution EdgeDir Snapdragon Game Super Resolution EdgeDir - + None Никакой - + FXAA FXAA - + SMAA SMAA - + Default (16:9) Стандартное (16:9) - + Force 4:3 Принудительно 4:3 - + Force 21:9 Принудительно 21:9 - + Force 16:10 Принудительно 16:10 - + Stretch to Window Растянуть до окна - + Automatic Автоматически - + 2x 2x - + 4x 4x - + 8x 8x - + 16x 16x - + Japanese (日本語) Японский (日本語) - + American English Американский английский - + French (français) Французский (français) - + German (Deutsch) Немецкий (Deutsch) - + Italian (italiano) Итальянский (italiano) - + Spanish (español) Испанский (español) - + Chinese Китайский - + Korean (한국어) Корейский (한국어) - + Dutch (Nederlands) Голландский (Nederlands) - + Portuguese (português) Португальский (português) - + Russian (Русский) Русский - + Taiwanese Тайваньский - + British English Британский английский - + Canadian French Канадский французский - + Latin American Spanish Латиноамериканский испанский - + Simplified Chinese Упрощённый китайский - + Traditional Chinese (正體中文) Традиционный китайский (正體中文) - + Brazilian Portuguese (português do Brasil) Бразильский португальский (português do Brasil) - + Polish (polska) Польский (polska) - + Thai (แบบไทย) Тайский (แบบไทย) - - + + Japan Япония - + USA США - + Europe Европа - + Australia Австралия - + China Китай - + Korea Корея - + Taiwan Тайвань - + Auto (%1) Auto select time zone Авто (%1) - + Default (%1) Default time zone По умолчанию (%1) - + CET CET - + CST6CDT CST6CDT - + Cuba Куба - + EET EET - + Egypt Египет - + Eire Эйре - + EST EST - + EST5EDT EST5EDT - + GB GB - + GB-Eire GB-Эйре - + GMT GMT - + GMT+0 GMT+0 - + GMT-0 GMT-0 - + GMT0 GMT0 - + Greenwich Гринвич - + Hongkong Гонконг - + HST HST - + Iceland Исландия - + Iran Иран - + Israel Израиль - + Jamaica Ямайка - + Kwajalein Кваджалейн - + Libya Ливия - + MET MET - + MST MST - + MST7MDT MST7MDT - + Navajo Навахо - + NZ NZ - + NZ-CHAT NZ-CHAT - + Poland Польша - + Portugal Португалия - + PRC PRC - + PST8PDT PST8PDT - + ROC ROC - + ROK ROK - + Singapore Сингапур - + Turkey Турция - + UCT UCT - + Universal Универсальный - + UTC UTC - + W-SU W-SU - + WET WET - + Zulu Зулу - + Mono Моно - + Stereo Стерео - + Surround Объемный звук - + 4GB DRAM (Default) 4 ГБ ОЗУ (По умолчанию) - + 6GB DRAM (Unsafe) 6 ГБ ОЗУ (Небезопасно) - + 8GB DRAM 8 ГБ ОЗУ - + 10GB DRAM (Unsafe) 10 ГБ ОЗУ (Небезопасно) - + 12GB DRAM (Unsafe) 12 ГБ ОЗУ (Небезопасно) - + Docked В док-станции - + Handheld Портативный - - + + Normal Нормальная - - + + Boost Ускоренная - - + + Overclock Разгон - + Always ask (Default) Всегда спрашивать (По умолчанию) - + Only if game specifies not to stop Только если игра указывает не останавливать - + Never ask Никогда не спрашивать - + Very Small (16 MB) Очень маленький (16 МБ) - + Small (32 MB) Маленький (32 МБ) - + Normal (128 MB) Нормальный (128 МБ) - + Large (256 MB) Большой (256 МБ) - + Very Large (512 MB) Очень большой (512 МБ) - + Very Low (4 MB) Очень низкий (4 МБ) - + Low (8 MB) Низкий (8 МБ) - + Normal (16 MB) Нормальный (16 МБ) - + Medium (32 MB) Средний (32 МБ) - + High (64 MB) Высокий (64 МБ) - + Very Low (32) Очень низкий (32) - + Low (64) Низкий (64) - + Normal (128) Нормальный (128) - + Medium (256) Средний (256) - + High (512) Высокий (512) - + + Disabled + Отключено + + + ExtendedDynamicState 1 ExtendedDynamicState 1 - + ExtendedDynamicState 2 ExtendedDynamicState 2 - + ExtendedDynamicState 3 ExtendedDynamicState 3 - + Tree View Древовидный - + Grid View Сетчатый @@ -3262,38 +3278,33 @@ Would you like to delete the old save data? Цвет фона: - + % FSR/SGSR sharpening percentage (e.g. 50%) % - - Configure Effects... - - - - + Off Отключена - + VSync Off VSync Off - + Recommended Рекомендуется - + On Включена - + VSync On VSync On @@ -4912,130 +4923,6 @@ Once deleted, these can NOT be recovered. Are you 100% sure you want to delete t &Открыть в файловом менеджере - - ConfigurePostProcessing - - - Post-Processing Effects - - - - - Changes apply immediately while a game is running. - - - - - Enable post-processing - - - - - Preset: - - - - - Apply - - - - - Reset Values - - - - - Return every effect to the values the preset ships with. - - - - - Save As... - - - - - Save Preset - - - - - Preset name: - - - - - Clear - - - - - Remove every effect in use and deselect the preset. - - - - - Add Effect - - - - - None - - - - - No effects in use. Pick a preset and press Apply, or add effects one by one. - - - - - Custom chain. Pick a preset above and press Apply to replace it. - - - - - Active preset: %1 (modified). Press Reset Values to go back to how it ships. - - - - - Active preset: %1 - - - - - Enabled - - - - - Disabled - - - - - Reset to defaults - - - - - Effect '%1' was not found. - - - - - Effect failed to compile: -%1 - - - - - No usable ReShade FX effects were found. Place .fx files in the post_shaders folder. - - - ConfigureProfileManager @@ -6123,50 +6010,50 @@ Please go to Configure -> System -> Network and make a selection. GRenderWindow - - + + OpenGL not available! OpenGL не доступен! - + OpenGL shared contexts are not supported. Общие контексты OpenGL не поддерживаются. - + Eden has not been compiled with OpenGL support. Eden не был скомпилирован с поддержкой OpenGL. - - - + + + Error while initializing OpenGL! Ошибка при инициализации OpenGL! - + Your GPU may not support OpenGL, or you do not have the latest graphics driver. Ваш ГП может не поддерживать OpenGL, или у вас установлен устаревший графический драйвер. - + Error while initializing OpenGL 4.6! Ошибка при инициализации OpenGL 4.6! - + Your GPU may not support OpenGL 4.6, or you do not have the latest graphics driver.<br><br>GL Renderer:<br>%1 Ваш ГП может не поддерживать OpenGL 4.6, или у вас установлен устаревший графический драйвер.<br><br>Рендерер GL:<br>%1 - + Your GPU may not support one or more required OpenGL extensions. Please ensure you have the latest graphics driver.<br><br>GL Renderer:<br>%1<br><br>Unsupported extensions:<br>%2 Ваш ГП может не поддерживать одно или несколько требуемых расширений OpenGL. Пожалуйста, убедитесь в том, что у вас установлен последний графический драйвер.<br><br>Рендерер GL:<br>%1<br><br>Неподдерживаемые расширения:<br>%2 - + This build doesn't have OpenGL support. В этой сборке отсутствует поддержка OpenGL. @@ -6988,42 +6875,42 @@ Debug Message: Сбросить размер окна до 1080p - + &Multiplayer &Мультиплеер - + &Tools &Инструменты - + Am&iibo Amiibo - + Launch &Applet &Апплеты - + &TAS &TAS - + &Create Home Menu Shortcut Создать &ярлык Home Menu - + Install &Firmware Установить &прошивку - + &Help &Помощь @@ -7049,7 +6936,7 @@ Debug Message: - + &Pause &Пауза @@ -7150,583 +7037,578 @@ Debug Message: - &User Handbook - + Open &Quickstart Guide + Открыть руководство &пользователя - + + &FAQ + &FAQ + + + &Capture Screenshot &Сделать скриншот - + &Album Открыть &Альбом - + &Set Nickname and Owner Установить &никнейм и владельца - + &Delete Game Data &Удалить данные игры - + &Restore Amiibo &Восстановить Amiibo - + &Format Amiibo &Форматировать Amiibo - + &Mii Editor Открыт&ь Mii Editor - + &Configure TAS... &Настройка TAS... - + Configure C&urrent Game... &Настроить текущую игру... - - + + &Start &Запустить - + &Reset &Сбросить - - + + R&ecord З&апись - + Open &Controller Menu Открыть &Меню контроллеров - + Install Decryption &Keys &Установить ключи дешифровки - + &Home Menu Отк&рыть Home Menu - + &Desktop &Рабочий стол - + &Application Menu &Меню приложений - + &Root Data Folder &Корневая папка - + &NAND Folder П&апка NAND - + &SDMC Folder Па&пка SDMC - + &Mod Folder Папка &модов - + &Log Folder Папка &журнала - + From Folder Из &папки - + From ZIP &Из ZIP - + &Eden Dependencies &Зависимости Eden - + &Data Manager Упра&вление данными - + &Tree View &Древовидный - + &Grid View &Сетчатый - + Game Icon Size Размер иконки игры - - + + None Никакой - + Show Game &Name Показать игру - + Show &Performance Overlay &Оверлей производительности - - - Post-Processing &Shaders... - - &Carousel View &В Виде Карусели - + Small (32x32) Маленький (32х32) - + Standard (64x64) Стандартный (64х64) - + Large (128x128) Большой (128х128) - + Full Size (256x256) Полноразмерный (256х256) - + Broken Vulkan Installation Detected Обнаружена поврежденная установка Vulkan - + Vulkan initialization failed during boot. Не удалось выполнить инициализацию Vulkan во время загрузки. - + Running a game TRANSLATORS: This string is shown to the user to explain why yuzu needs to prevent the computer from sleeping Запущена игра - + Loading Web Applet... Загрузка веб-апплета... - - + + Disable Web Applet Отключить веб-апплет - + Disabling the web applet can lead to undefined behavior and should only be used with Super Mario 3D All-Stars. Are you sure you want to disable the web applet? (This can be re-enabled in the Debug settings.) Отключение веб-апплета может привести к неожиданному поведению и должно использоваться только, если вы хотите запустить Super Mario 3D All-Stars. Вы уверены, что хотите отключить веб-апплет? (Его можно снова включить в настройках отладки.) - + The amount of shaders currently being built Количество создаваемых шейдеров на данный момент - + The current selected resolution scaling multiplier. Текущий выбранный множитель масштабирования разрешения. - + Current emulation speed. Values higher or lower than 100% indicate emulation is running faster or slower than a Switch. Текущая скорость эмуляции. Значения выше или ниже 100% указывают на то, что эмуляция идет быстрее или медленнее, чем на Switch. - + How many frames per second the game is currently displaying. This will vary from game to game and scene to scene. Количество кадров в секунду в данный момент. Значение будет различаться между играми и сценами. - + Time taken to emulate a Switch frame, not counting framelimiting or v-sync. For full-speed emulation this should be at most 16.67 ms. Время, которое нужно для эмуляции одного кадра Switch, не принимая во внимание ограничение FPS или вертикальную синхронизацию. Для эмуляции в полной скорости значение должно быть не больше 16,67 мс. - + Unmute Включить звук - + Mute Выключить звук - + Reset Volume Сбросить громкость - - Configure Effects... - - - - + &Clear Recent Files &Очистить недавние файлы - + &Continue &Продолжить - + Warning: Outdated Game Format Предупреждение: устаревший формат игры - + You are using the deconstructed ROM directory format for this game, which is an outdated format that has been superseded by others such as NCA, NAX, XCI, or NSP. Deconstructed ROM directories lack icons, metadata, and update support.<br>For an explanation of the various Switch formats Eden supports, out our user handbook. This message will not be shown again. Для этой игры вы используете разархивированный формат ROM'а, который является устаревшим и был заменен другими, такими как NCA, NAX, XCI или NSP. В разархивированных каталогах ROM'а отсутствуют иконки, метаданные и поддержка обновлений.<br><br>Для получения информации о различных форматах Switch, поддерживаемых Eden, ознакомьтесь с руководством пользователя. Это сообщение больше не будет отображаться. - - + + Error while loading ROM! Ошибка при загрузке ROM'а! - + The ROM format is not supported. Формат ROM'а не поддерживается. - + An error occurred initializing the video core. Произошла ошибка при инициализации видеоядра. - - This is usually caused by outdated GPU drivers. Please see the log for more details. See: <a href='https://git.eden-emu.dev/eden-emu/eden/src/branch/master/docs/user/HowToAccessLogs.md'>How to access log files</a>. - + + Eden has encountered an error while running the video core. This is usually caused by outdated GPU drivers, including integrated ones. Please see the log for more details. For more information on accessing the log, please see the following page: <a href='https://yuzu-mirror.github.io/help/reference/log-files/'>How to Upload the Log File</a>. + Eden столкнулся с ошибкой при работе видеоядра. Обычно это вызвано устаревшими драйверами GPU, включая интегрированные. Проверьте журнал для получения подробностей. Информацию о том, как получить доступ к журналу, см. на странице: <a href='https://yuzu-mirror.github.io/help/reference/log-files/'>Как загрузить файл журнала</a>. - + Error while loading ROM! %1 %1 signifies a numeric error code. Ошибка при загрузке ROM'а! %1 - + %1<br>Please redump your files or ask on Discord/Stoat for help. %1 signifies an error string. %1<br>Пожалуйста, пересоздайте дампы ваших файлов или обратитесь за помощью в Discord/Stoat. - + An unknown error occurred. Please see the log for more details. Произошла неизвестная ошибка. Пожалуйста, проверьте журнал для подробностей. - - + + (64-bit) (64-bit) - - + + (32-bit) (32-bit) - - + + %1 %2 %1 is the title name. %2 indicates if the title is 64-bit or 32-bit %1 %2 - + Closing software... Закрываем программу... - + Save Data Сохранения - + Mod Data Данные модов - + Error Opening %1 Folder Ошибка при открытии папки %1 - - + + Folder does not exist! Папка не существует! - + Remove Installed Game Contents? Удалить установленное содержимое игр? - + Remove Installed Game Update? Удалить установленное обновление игры? - + Remove Installed Game DLC? Удалить установленные DLC игры? - + Remove Entry Удалить запись - + Delete OpenGL Transferable Shader Cache? Удалить переносной кэш шейдеров OpenGL? - + Delete Vulkan Transferable Shader Cache? Удалить переносной кэш шейдеров Vulkan? - + Delete All Transferable Shader Caches? Удалить весь переносной кэш шейдеров? - + Remove Custom Game Configuration? Удалить пользовательскую настройку игры? - + Remove Cache Storage? Удалить кэш-хранилище? - + Remove File Удалить файл - + Remove Play Time Data Удалить данные игрового времени - + Reset play time? Сбросить время игры? - - + + RomFS Extraction Failed! Не удалось извлечь RomFS! - + There was an error copying the RomFS files or the user cancelled the operation. Произошла ошибка при копировании файлов RomFS или пользователь отменил операцию. - + Full Полный - + Skeleton Скелет - + Select RomFS Dump Mode Выберите режим дампа RomFS - + Please select the how you would like the RomFS dumped.<br>Full will copy all of the files into the new directory while <br>skeleton will only create the directory structure. Пожалуйста, выберите, как вы хотите выполнить дамп RomFS. <br>Полный скопирует все файлы в новую папку, в то время как <br>скелет создаст только структуру папок. - + There is not enough free space at %1 to extract the RomFS. Please free up space or select a different dump directory at Emulation > Configure > System > Filesystem > Dump Root В %1 недостаточно свободного места для извлечения RomFS. Пожалуйста, освободите место или выберите другую папку для дампа в Эмуляция > Параметры > Система > Файловая система > Корень дампа - + Extracting RomFS... Извлечение RomFS... - - + + Cancel Отмена - + RomFS Extraction Succeeded! Извлечение RomFS прошло успешно! - + The operation completed successfully. Операция выполнена успешно. - + Error Opening %1 Ошибка при открытии %1 - + Select Directory Выбрать папку - + Properties Свойства - + The game properties could not be loaded. Не удалось загрузить свойства игры. - + Switch Executable (%1);;All Files (*.*) %1 is an identifier for the Switch executable file extensions. Исполняемый файл Switch (%1);;Все файлы (*.*) - + Load File Загрузить файл - + Open Extracted ROM Directory Открыть папку извлеченного ROM'а - + Invalid Directory Selected Выбрана недопустимая папка - + The directory you have selected does not contain a 'main' file. Папка, которую вы выбрали, не содержит файла 'main'. - + Installable Switch File (*.nca *.nsp *.xci);;Nintendo Content Archive (*.nca);;Nintendo Submission Package (*.nsp);;NX Cartridge Image (*.xci) Устанавливаемый файл Switch (*.nca *.nsp *.xci);;Архив контента Nintendo (*.nca);;Пакет подачи Nintendo (*.nsp);;Образ картриджа NX (*.xci) - + Install Files Установить файлы - + %n file(s) remaining %n файл(ов) осталось%n файл(ов) осталось%n файл(ов) осталось%n файл(ов) осталось - + Installing file "%1"... Установка "%1"... - - + + Install Results Результаты - + To avoid possible conflicts, we discourage users from installing base games to the NAND. Please, only use this feature to install updates and DLC. Чтобы избежать возможных конфликтов, мы не рекомендуем пользователям устанавливать игры в NAND. Пожалуйста, используйте эту функцию только для установки обновлений и DLC. - + %n file(s) were newly installed %n файл(ов) были установлены недавно @@ -7736,7 +7618,7 @@ Please, only use this feature to install updates and DLC. - + %n file(s) were overwritten %n файл(ов) были перезаписаны @@ -7746,7 +7628,7 @@ Please, only use this feature to install updates and DLC. - + %n file(s) failed to install %n файл(ов) не удалось установить @@ -7756,324 +7638,314 @@ Please, only use this feature to install updates and DLC. - + System Application Системное приложение - + System Archive Системный архив - + System Application Update Обновление системного приложения - + Firmware Package (Type A) Пакет прошивки (Тип А) - + Firmware Package (Type B) Пакет прошивки (Тип Б) - + Game Игра - + Game Update Обновление игры - + Game DLC DLC игры - + Delta Title Дельта-титул - + Select NCA Install Type... Выберите тип установки NCA... - + Please select the type of title you would like to install this NCA as: (In most instances, the default 'Game' is fine.) Пожалуйста, выберите тип приложения, который вы хотите установить для этого NCA: (В большинстве случаев, подходит стандартный выбор «Игра».) - + Failed to Install Ошибка установки - + The title type you selected for the NCA is invalid. Тип приложения, который вы выбрали для NCA, недействителен. - + File not found Файл не найден - + File "%1" not found Файл "%1" не найден - + OK ОК - + Function Disabled Функция отключена - + Compatibility list reporting is currently disabled. Check back later! Отправка отчетов о совместимости временно отключена. Доступ будет восстановлен позднее! - + Error opening URL Ошибка при открытии URL - + Unable to open the URL "%1". Не удалось открыть URL: "%1". - + TAS Recording Запись TAS - + Overwrite file of player 1? Перезаписать файл игрока 1? - + Invalid config detected Обнаружена недопустимая конфигурация - + Handheld controller can't be used on docked mode. Pro controller will be selected. Портативный контроллер не может быть использован в режиме док-станции. Будет выбран контроллер Pro. - - + + Amiibo Amiibo - - + + The current amiibo has been removed Текущий amiibo был удален - + Error Ошибка - - + + The current game is not looking for amiibos Текущая игра не ищет amiibo - + Amiibo File (%1);; All Files (*.*) Файл Amiibo (%1);; Все Файлы (*.*) - + Load Amiibo Загрузить Amiibo - + Error loading Amiibo data Ошибка загрузки данных Amiibo - + The selected file is not a valid amiibo Выбранный файл не является допустимым amiibo - + The selected file is already on use Выбранный файл уже используется - + An unknown error occurred Произошла неизвестная ошибка - + No firmware available Прошивка недоступна - + Firmware Corrupted Прошивка повреждена - + Unknown applet Неизвестный апплет - + Applet doesn't map to a known value. Апплет не соответствует ни одному известному значению. - + Record not found Запись не найдена - + Applet not found. Please reinstall firmware. Апплет не найден. Пожалуйста, переустановите прошивку. - + Capture Screenshot Сделать скриншот - + PNG Image (*.png) Изображение PNG (*.png) - + TAS state: Running %1/%2 Состояние TAS: Выполняется %1/%2 - + TAS state: Recording %1 Состояние TAS: Записывается %1 - + TAS state: Idle %1/%2 Состояние TAS: Простой %1/%2 - + TAS State: Invalid Состояние TAS: Неверное - + &Stop Running &Остановка - + Stop R&ecording &Закончить запись - + Building: %n shader(s) Компиляция %n шейдер(ов)Компиляция %n шейдер(ов)Компиляция %n шейдер(ов)Компиляция %n шейдер(ов) - + Scale: %1x %1 is the resolution scaling factor Масштаб: %1x - + Speed: %1% / %2% Скорость: %1% / %2% - + Speed: %1% Скорость: %1% - + Game: %1 FPS Игра: %1 FPS - + Frame: %1 ms Кадр: %1 мс - + NO AA БЕЗ СГЛАЖИВАНИЯ - - NO FX - - - - - FX - - - - + VOLUME: MUTE ГРОМКОСТЬ: ЗАГЛУШЕНА - + VOLUME: %1% Volume percentage (e.g. 50%) ГРОМКОСТЬ: %1% - + Derivation Components Missing Отсутствуют необходимые компоненты - + Decryption keys are missing. Install them now? Ключи дешифрования отсутствуют. Хотите установить их? - + Wayland Detected! Обнаружен Wayland! - + Wayland is known to have significant performance issues and mysterious bugs. It's recommended to use X11 instead. @@ -8084,74 +7956,74 @@ Would you like to force it for future launches? Хотите включить X11 для последующих запусков? - + Use X11 Использовать X11 - + Continue with Wayland Продолжить с Wayland - + Don't show again Больше не показывать - + Restart Required Требуется перезапуск - + Restart Eden to apply the X11 backend. Перезапустите Eden, чтобы применить X11. - + Slow Замедлено - + Turbo Турбо - + Unlocked Разблокировано - + Select RomFS Dump Target Выбор цели для дампа RomFS - + Please select which RomFS you would like to dump. Выберите RomFS, который вы хотите извлечь. - + Are you sure you want to close Eden? Вы уверены, что хотите закрыть Eden? - - - + + + Eden Eden - + Are you sure you want to stop the emulation? Any unsaved progress will be lost. Вы уверены, что хотите остановить эмуляцию? Любой несохраненный прогресс будет потерян. - + The currently running application has requested Eden to not exit. Would you like to bypass this and exit anyway? @@ -9353,41 +9225,41 @@ p, li { white-space: pre-wrap; } - This game may require firmware to function properly, and you don't have any installed. Please install firmware before launching, or press "OK" to launch anyways. - + The game you are trying to launch requires firmware to boot or to get past the opening menu. Please <a href='https://yuzu-mirror.github.io/help/quickstart'>dump and install firmware</a>, or press "OK" to launch anyways. + Игра, которую вы пытаетесь запустить, требует прошивку для запуска или прохождения начального меню. Пожалуйста, <a href='https://yuzu-mirror.github.io/help/quickstart'>сделайте дамп и установите прошивку</a>, или нажмите «OK», чтобы запустить игру в любом случае. - + Installing Firmware... Установка прошивки... - - - - - + + + + + Cancel Отмена - + Firmware Install Failed Не удалось установить прошивку - + Firmware Install Succeeded Прошивка успешно установлена - + Firmware integrity verification failed! Сбой проверки целостности прошивки! - - + + Verification failed for the following files: %1 @@ -9396,235 +9268,235 @@ p, li { white-space: pre-wrap; } %1 - - + + Verifying integrity... Проверка целостности... - - + + Integrity verification succeeded! Проверка целостности прошла успешно! - - + + The operation completed successfully. Операция выполнена успешно. - - + + Integrity verification failed! Проверка целостности не удалась! - + File contents may be corrupt or missing. Содержимое файла может быть повреждено или отсутствовать. - + Integrity verification couldn't be performed Проверка целостности не может быть выполнена - + Firmware installation cancelled, firmware may be in a bad state or corrupted. File contents could not be checked for validity. Установка прошивки отменена, прошивка может быть повреждена. Содержимое файла не удалось проверить на корректность. - + Select Dumped Keys Location Выберите местоположение дампнутых ключей - + Decryption Keys install succeeded Установка ключей дешифровки прошла успешно. - + Decryption Keys install failed Ошибка установки ключей дешифровки - + Orphaned Profiles Detected! Обнаружены «сиротские» профили! - + UNEXPECTED BAD THINGS MAY HAPPEN IF YOU DON'T READ THIS!<br>Eden has detected the following save directories with no attached profile:<br>%1<br><br>The following profiles are valid:<br>%2<br><br>Click "OK" to open your save folder and fix up your profiles.<br>Hint: copy the contents of the largest or last-modified folder elsewhere, delete all orphaned profiles, and move your copied contents to the good profile.<br><br>Still confused? See the <a href='https://git.eden-emu.dev/eden-emu/eden/src/branch/master/docs/user/Orphaned.md'>help page</a>.<br> МОГУТ ПРОИЗОЙТИ НЕПРЕДВИДЕННЫЕ ПРОБЛЕМЫ, ЕСЛИ ВЫ НЕ ПРОЧИТАЕТЕ ЭТО!<br>Eden обнаружил следующие папки сохранений без привязанного профиля:<br>%1<br><br>Найдены следующие корректные профили:<br>%2<br><br>Нажмите «OK», чтобы открыть папку сохранений и исправить профили.<br>Совет: скопируйте содержимое самой большой или последней измененной папки в другое место, удалите все «сиротские» профили и переместите скопированные данные в правильный профиль.<br><br>Если есть вопросы, прочитайте <a href='https://git.eden-emu.dev/eden-emu/eden/src/branch/master/docs/user/Orphaned.md'>справку</a>.<br> - + Really clear data? Действительно очистить данные? - + Important data may be lost! Важные данные могут быть потеряны! - + Are you REALLY sure? Вы уверены? - + Once deleted, your data will NOT come back! Only do this if you're 100% sure you want to delete this data. Данные будут безвозвратно потеряны после удаления! Делайте это только если вы абсолютно уверены, что хотите их удалить. - + Clearing... Очистка... - + Select Export Location Выберите папку для экспорта - + %1.zip %1.zip - - - + + + Zipped Archives (*.zip) Архивы ZIP (*.zip) - + Exporting data. This may take a while... Идет экспорт данных. Это может занять некоторое время... - + Exporting Экспорт - + Exported Successfully Экспорт выполнен успешно - + Data was exported successfully. Данные успешно экспортированы. - + Export Cancelled Экспорт отменен - + Export was cancelled by the user. Экспорт был отменен пользователем. - + Export Failed Не удалось экспортировать - + Ensure you have write permissions on the targeted directory and try again. Проверьте, есть ли права на запись в выбранную папку, и повторите попытку. - + Select Import Location Выберите папку для импорта - + Import Warning Предупреждение при импорте - + All previous data in this directory will be deleted. Are you sure you wish to proceed? Все существующие данные в этой папке будут удалены. Вы уверены, что хотите продолжить? - + Importing data. This may take a while... Идет импорт данных. Это может занять некоторое время... - + Importing Импорт - + Imported Successfully Импорт успешно выполнен - + Data was imported successfully. Данные успешно импортированы. - + Import Cancelled Импорт отменен - + Import was cancelled by the user. Импорт был отменен пользователем. - + Import Failed Не удалось импортировать - + Ensure you have read permissions on the targeted directory and try again. Проверьте, есть ли права на чтение в выбранной папке, и повторите попытку. - + Keys not installed Ключи не установлены - + Install decryption keys and restart Eden before attempting to install firmware. Установите ключи дешифрования и перезапустите Eden перед установкой прошивки. - + Select Dumped Firmware Source Location Выберите дамп распакованной прошивки - + Select Dumped Firmware ZIP Выберите дамп прошивки в ZIP-архиве - + Firmware cleanup failed Не удалось очистить прошивку - + Failed to clean up extracted firmware cache. Check write permissions in the system temp directory and try again. OS reported error: %1 diff --git a/dist/languages/sv.ts b/dist/languages/sv.ts index 818a84cbe1..089601486d 100644 --- a/dist/languages/sv.ts +++ b/dist/languages/sv.ts @@ -51,7 +51,7 @@ li.checked::marker { content: "\2612"; } Communicating with the server... - Kommunicerar med servern… + Kommunicerar med servern... @@ -192,7 +192,7 @@ Detta skulle stänga av både deras forumanvändarnamn och deras IP-adress. Moderation... - Moderering… + Moderering... @@ -375,7 +375,7 @@ Påverkar inte prestanda/stabilitet men kan göra det möjligt att läsa in HD-t 200% for a 30 FPS game is 60 FPS, and for a 60 FPS game it will be 120 FPS. Disabling it means unlocking the framerate to the maximum your PC can reach. Kontrollerar spelets maximala renderingshastighet, men det är upp till varje spel om det körs snabbare eller inte. -200 % för ett spel med 30 bilder/s är 60 bilder/s och för ett spel med 60 bilder/s blir det 120 bilder/s. +200% för ett spel med 30 bilder/s är 60 bilder/s, och för ett spel med 60 bilder/s blir det 120 bilder/s. Att inaktivera det innebär att du låser upp bildfrekvensen till det maximala som din dator kan nå. @@ -436,7 +436,7 @@ Kan bidra till att minska hackande vid lägre bildfrekvenser. Raises the clock the emulated CPU reports, which removes some FPS limiters. Weaker CPUs may see reduced performance, and certain games may behave improperly. Höjer den klockfrekvens som den emulerade processorn rapporterar, vilket tar bort vissa FPS-begränsare. -Svagare processorer kan få sämre prestanda och vissa spel kan fungera felaktigt. +Svagare processorer kan få sämre prestanda, och vissa spel kan fungera felaktigt. @@ -446,7 +446,7 @@ Svagare processorer kan få sämre prestanda och vissa spel kan fungera felaktig Set a custom value of CPU ticks. Higher values can increase performance, but may cause deadlocks. A range of 77-21000 is recommended. - Ange ett anpassat värde för CPU-ticks. Högre värden kan öka prestandan, men kan orsaka deadlocks. Ett intervall på 77 till 21000 rekommenderas. + Ange ett anpassat värde för CPU-ticks. Högre värden kan öka prestandan, men kan orsaka deadlocks. Ett intervall på 77-21000 rekommenderas. @@ -594,22 +594,12 @@ SMAA erbjuder den bästa kvaliteten. FXAA kan ge en stabilare bild i lägre upplösningar. - - Enable post-processing effects - Aktivera efterbehandlingseffekter - - - - Applies post-processing effects to the final image. - Tillämpar efterbehandlingseffekter på den slutliga bilden. - - - + Fullscreen Mode: Helskärmsläge: - + The method used to render the window in fullscreen. Borderless offers the best compatibility with the on-screen keyboard that some games request for input. Exclusive fullscreen may offer better performance and better Freesync/Gsync support. @@ -618,12 +608,12 @@ Borderless ger bäst kompatibilitet med skärmtangentbordet som vissa spel kräv Exklusiv helskärm kan ge bättre prestanda och bättre stöd för Freesync/Gsync. - + Aspect Ratio: Bildförhållande: - + Stretches the renderer to fit the specified aspect ratio. Most games only support 16:9, so modifications are required to get other ratios. Also controls the aspect ratio of captured screenshots. @@ -632,36 +622,36 @@ De flesta spel stöder endast 16:9, så modifieringar krävs för att få andra Kontrollerar även bildförhållandet för tagna skärmdumpar. - + Use persistent pipeline cache Använd permanent pipeline-cache - + Allows saving shaders to storage for faster loading on following game boots. Disabling it is only intended for debugging. Gör det möjligt att spara shaders i lagringsutrymmet för snabbare laddning vid nästa spelstart. Att inaktivera detta är endast avsett för felsökning. - + Use asynchronous GPU emulation Använd asynkron GPU-emulering - + Uses an extra CPU thread for rendering. This option should always remain enabled. Använder en extra CPU-tråd för rendering. Detta alternativ bör alltid vara aktiverat. - + NVDEC emulation: NVDEC-emulering: - + Specifies how videos should be decoded. It can either use the CPU or the GPU for decoding, or perform no decoding at all (black screen on videos). In most cases, GPU decoding provides the best performance. @@ -670,12 +660,12 @@ Den kan antingen använda CPU eller GPU för avkodning, eller inte utföra någo I de flesta fall ger GPU-avkodning bäst prestanda. - + ASTC Decoding Method: ASTC-avkodningsmetod: - + This option controls how ASTC textures should be decoded. CPU: Use the CPU for decoding. GPU: Use the GPU's compute shaders to decode ASTC textures (recommended). @@ -688,12 +678,12 @@ CPU asynkront: Använd CPU:n för att avkoda ASTC-texturer vid behov. Eliminerar men kan ge artefakter. - + ASTC Recompression Method: ASTC-återkomprimeringsmetod: - + Most GPUs lack support for ASTC textures and must decompress to anintermediate format: RGBA8. BC1/BC3: The intermediate format will be recompressed to BC1 or BC3 format, saving VRAM but degrading image quality. @@ -702,64 +692,44 @@ BC1/BC3: Det mellanliggande formatet kommer att komprimeras om till BC1- eller B vilket sparar VRAM men försämrar bildkvaliteten. - + Frame Pacing Mode (Vulkan only) Frame Pacing Mode (endast Vulkan) - + Controls how the emulator manages frame pacing to reduce stuttering and make the frame rate smoother and more consistent. Styr hur emulatorn hanterar bildhastigheten för att minska hackighet och göra bildfrekvensen jämnare och mer konsekvent. - + VRAM Usage Mode: VRAM-användningsläge: - + Selects whether the emulator should prefer to conserve memory or make maximum usage of available video memory for performance. Aggressive mode may impact performance of other applications such as recording software. Väljer om emulatorn ska prioritera att spara minne eller utnyttja tillgängligt videominne maximalt för prestanda. Aggressivt läge kan påverka prestandan hos andra program, till exempel inspelningsprogram. - + Skip CPU Inner Invalidation Hoppa över CPU:ns interna ogiltigförklaring - + Skips certain cache invalidations during memory updates, reducing CPU usage and improving latency. This may cause soft-crashes. Hoppar över vissa cache-ogiltigförklaringar under minnesuppdateringar, vilket minskar CPU-användningen och förbättrar latensen. Detta kan orsaka mjuka krascher. - - GPU Readback Before NCE Invalidation - GPU-återläsning före NCE-ogiltigförklaring - - - - Flushes GPU buffer data back to guest memory before NCE invalidates the whole guest page, preserving it while the CPU store proceeds. - Skriver tillbaka GPU-buffertdata till gästens minne innan NCE ogiltigförklarar hela gästsidan, så att data bevaras medan CPU-lagringen fortsätter. - - - - Patch Runtime NROs for NCE - Korrigera NRO:er under körning för NCE - - - - Applies NCE code patches to runtime-loaded NRO modules.This is required for some games to run correctly. - Tillämpar NCE-korrigeringar på NRO-moduler som läses in under körning. Det krävs för att vissa spel ska fungera korrekt. - - - + VSync Mode: VSync-läge: - + FIFO (VSync) does not drop frames or exhibit tearing but is limited by the screen refresh rate. FIFO Relaxed allows tearing as it recovers from a slow down. Mailbox can have lower latency than FIFO and does not tear but may drop frames. @@ -770,58 +740,61 @@ Mailbox kan ha lägre latens än FIFO och uppvisar inte tearing, men kan tappa b Immediate (ingen synkronisering) visar allt som är tillgängligt och kan uppvisa tearing. - + Sync Memory Operations Synkronisera minnesoperationer - + Ensures data consistency between compute and memory operations. This option fixes issues in games, but may degrade performance. Unreal Engine 4 games often see the most significant changes thereof. Kontrollerar datakonsistens mellan beräknings- och minnesoperationer. + Det här alternativet åtgärdar problem i spel, men kan försämra prestandan. + Unreal Engine 4-spel upplever ofta de mest betydande förändringarna av detta. - + Enable asynchronous presentation (Vulkan only) Aktivera asynkron presentation (endast Vulkan) - + Slightly improves performance by moving presentation to a separate CPU thread. Förbättrar prestandan något genom att flytta presentationen till en separat CPU-tråd. - + Force maximum clocks (Vulkan only) Tvinga fram maximal klockfrekvens (endast Vulkan) - + Runs work in the background while waiting for graphics commands to keep the GPU from lowering its clock speed. Körs i bakgrunden i väntan på grafikkommandon för att förhindra att GPU:n sänker sin klockhastighet. - + Anisotropic Filtering: Anisotropisk filtrering: - + Controls the quality of texture rendering at oblique angles. Safe to set at 16x on most GPUs. Kontrollerar kvaliteten på texturrendering vid sneda vinklar. -Det går att ställa in 16× på de flesta GPU:er. + +Säker att ställa in på 16x på de flesta GPU:er. - + GPU Mode: GPU-läge: - + Controls the GPU emulation mode. Most games render fine with Fast, but Accurate is still required for some. Particles tend to only render correctly with Accurate mode. @@ -830,12 +803,12 @@ De flesta spel återges bra med Snabb, men Exakt krävs fortfarande för vissa. Partiklar återges ofta korrekt endast i läget Exakt. - + DMA Accuracy: DMA-noggrannhet: - + Controls the DMA read mode. Unsafe is faster, while Safe is more stable and can fix issues in some games. Default follows the GPU Accuracy setting. @@ -844,62 +817,76 @@ Osäker är snabbare, medan Säker är stabilare och kan lösa problem i vissa s Standard följer inställningen för GPU-noggrannhet. - + GPU Fence Behavior: Beteende för GPU-staket: - + Controls the GPU fence synchronization behavior. Immediate is the fastest option, but can introduce some issues. Balanced offers better compatibility and may fix issues in some games. Accurate further improves compatibility at the cost of some performance. -Default follows the GPU Mode setting. +Strict is the slowest option, but can fix issues that require stricter synchronization. +Default follows the GPU Accuracy setting. Styr synkroniseringsbeteendet för GPU-staket. Omedelbar är det snabbaste alternativet, men kan orsaka vissa problem. Balanserad ger bättre kompatibilitet och kan lösa problem i vissa spel. -Exakt förbättrar kompatibiliteten ytterligare, men på bekostnad av viss prestanda. -Standard följer inställningen för GPU-läge. +Exakt förbättrar kompatibiliteten ytterligare på bekostnad av viss prestanda. +Strikt är långsammast, men kan lösa problem som kräver striktare synkronisering. +Standard följer inställningen för GPU-noggrannhet. - + + Enable GPU buffer readback + Aktivera återläsning av GPU-buffert + + + + Preserves GPU-modified data by reading it back before uploading. +Some games require this to render certain effects properly. + Bevarar data som ändrats av GPU:n genom att läsa tillbaka dem före uppladdning. +Vissa spel kräver detta för att vissa effekter ska återges korrekt. + + + Enable asynchronous shader compilation Aktivera asynkron shaderkompilering - + May reduce shader stutter. Kan minska shader-hackighet. - + GPU Clocks GPU-klockfrekvenser - + Makes the game believe GPU work finishes faster than it does, so it stops lowering resolution and render distance to fit the Switch's clocks. Får spelet att tro att GPU-arbetet avslutas snabbare än det gör, så att det slutar sänka upplösning och ritaravstånd för att passa Switch-klockfrekvenserna. - + GPU Unswizzle GPU Unswizzle - + Accelerates BCn 3D texture decoding using GPU compute. Disable if experiencing crashes or graphical glitches. Accelererar avkodning av BCn 3D-texturer med hjälp av GPU-beräkningar. Inaktivera om du upplever krascher eller grafiska fel. - + GPU Unswizzle Max Texture Size Maximal texturstorlek för GPU Unswizzle - + Sets the maximum size (MiB) for GPU-based texture unswizzling. While the GPU is faster for medium and large textures, the CPU may be more efficient for very small ones. Adjust this to find the balance between GPU acceleration and CPU overhead. @@ -908,48 +895,48 @@ GPU är snabbare för medelstora och stora texturer, men CPU kan vara effektivar Justera detta för att hitta balansen mellan GPU-acceleration och CPU-överbelastning. - + GPU Unswizzle Stream Size Strömstorlek för GPU Unswizzle - + Sets the maximum amount of texture data (in MiB) processed per frame. Higher values can reduce stutter during texture loading but may impact frame consistency. Ställer in den maximala mängden texturdata (i MiB) som bearbetas per bildruta. Högre värden kan minska hackighet under texturinläsning men kan påverka bildrutans konsistens. - + GPU Unswizzle Chunk Size Chunk-storlek för GPU Unswizzle - + Determines the number of depth slices processed in a single dispatch. Increasing this can improve throughput on high-end GPUs but may cause TDR or driver timeouts on weaker hardware. Bestämmer antalet djupskivor som bearbetas i en enda sändning. Att öka detta kan förbättra genomströmningen på avancerade GPU:er, men kan orsaka TDR eller drivrutinstidsgränser på svagare hårdvara. - + Use Vulkan pipeline cache Använda Vulkan pipeline-cache - + Enables GPU vendor-specific pipeline cache. This option can improve shader loading time significantly in cases where the Vulkan driver does not store pipeline cache files internally. Aktiverar GPU-leverantörsspecifik pipeline-cache. Det här alternativet kan förbättra laddningstiden för shaders avsevärt i fall där Vulkan-drivrutinen inte lagrar pipeline-cache-filer internt. - + Enable Compute Pipelines (Intel Vulkan Only) Aktivera compute pipelines (endast Intel Vulkan) - + Required by some games. This setting only exists for Intel proprietary drivers and may crash if enabled. Compute pipelines are always enabled on all other drivers. @@ -958,182 +945,194 @@ Denna inställning finns endast för Intels egna drivrutiner och kan orsaka kras Beräkningspipelines är alltid aktiverade på alla andra drivrutiner. - + Enable Reactive Flushing Aktivera Reactive Flushing - + Uses reactive flushing instead of predictive flushing, allowing more accurate memory syncing. Använder reaktiv rensning i stället för prediktiv rensning, vilket ger mer exakt minnessynkning. - + Sync to framerate of video playback Synkronisera med bildfrekvensen för videouppspelning - + Run the game at normal speed during video playback, even when the framerate is unlocked. Kör spelet i normal hastighet under videouppspelning, även när bildfrekvensen är upplåst. - + Barrier feedback loops Återkopplingsloopar för barriärer - + Improves rendering of transparency effects in specific games. Förbättrar renderingen av transparenseffekter i vissa spel. - + Enable buffer history Aktivera bufferthistorik - + Enables access to previous buffer states. This option may improve rendering quality and performance consistency in some games. Aktiverar åtkomst till tidigare bufferttillstånd. Det här alternativet kan förbättra renderingskvaliteten och prestandakonsistensen i vissa spel. - + Fix bloom effects Korrigera bloom-effekter - + Removes bloom in Burnout. Tar bort bloom i Burnout. - + + Enable Legacy Rescale Pass + Aktivera äldre omskalningspass + + + + May fix rescale issues in some games by relying on behavior from the previous implementation. +Legacy behavior workaround that fixes line artifacts on AMD and Intel GPUs, and grey texture flicker on Nvidia GPUs in Luigis Mansion 3. + Kan åtgärda skalningsproblem i vissa spel genom att förlita sig på beteendet från den tidigare implementeringen. +Äldre beteende som åtgärdar linjeartefakter på AMD- och Intel-GPU:er och grå texturflimmer på Nvidia-GPU:er i Luigis Mansion 3. + + + Extended Dynamic State Utökad dynamisk status - + Controls the number of features that can be used in Extended Dynamic State. Higher states allow for more features and can increase performance, but may cause additional graphical issues. Kontrollerar antalet funktioner som kan användas i utökat dynamiskt tillstånd. Högre tillstånd möjliggör fler funktioner och kan öka prestandan, men kan orsaka ytterligare grafiska problem. - + Vertex Input Dynamic State Dynamiskt tillstånd för vertexinmatning - + Enables vertex input dynamic state feature for better quality and performance. Aktiverar funktionen för dynamiskt tillstånd för vertexinmatning för bättre kvalitet och prestanda. - + Sample Shading Provskuggning - + Allows the fragment shader to execute per sample in a multi-sampled fragment instead of once per fragment. Improves graphics quality at the cost of performance. Higher values improve quality but degrade performance. Tillåter fragment-shadern att exekveras per prov i ett multisamplade fragment istället för en gång per fragment. Förbättrar grafikens kvalitet på bekostnad av prestanda. Högre värden förbättrar kvaliteten men försämrar prestandan. - + RNG Seed RNG-frö - + Controls the seed of the random number generator. Mainly used for speedrunning. Att kontrollera fröet till slumptalsgeneratorn. Används främst för speedrunning. - + Device Name Enhetsnamn - + The name of the console. Konsolens namn. - + Homebrew Args Homebrew-argument - + Command-line arguments passed to homebrew at launch (e.g. -noglsl). Kommandoradsargument som skickas till homebrew vid start (t.ex. -noglsl). - + Custom RTC Date: Anpassat RTC-datum: - + This option allows to change the clock of the console. Can be used to manipulate time in games. Med det här alternativet kan du ändra klockan på konsolen. Kan användas för att manipulera tiden i spel. - + The number of seconds from the current unix time Antalet sekunder från aktuell Unix-tid - + Language: Språk: - + This option can be overridden when region setting is auto-select - Det här alternativet kan åsidosättas när regioninställningen är automatiskt vald + Det här alternativet kan åsidosättas när regioninställningen är automatiskt vald. - + Region: Region: - + The region of the console. Konsolens region. - + Time Zone: Tidszon: - + The time zone of the console. Konsolens tidszon. - + Sound Output Mode: Ljudutmatningsläge: - + Console Mode: Konsolläge: - + Selects if the console is in Docked or Handheld mode. Games will change their resolution, details and supported controllers and depending on this setting. Setting to Handheld can help improve performance for low end systems. @@ -1142,1026 +1141,1042 @@ Spel ändrar upplösning, detaljer och stödda kontroller beroende på denna ins Inställningen Handhållen kan förbättra prestandan för enklare system. - + Prompt for user profile on boot Fråga efter användarprofil vid uppstart - + Useful if multiple people use the same PC. Användbart om flera personer använder samma dator. - + Pause when not in focus Pausa när inte i fokus - + Pauses emulation when focusing on other windows. Pausar emulering när fokus är på andra fönster. - + Confirm before stopping emulation Bekräfta innan emuleringen stoppas - + Overrides prompts asking to confirm stopping the emulation. Enabling it bypasses such prompts and directly exits the emulation. Åsidosätter frågor om att bekräfta att emuleringen ska avslutas. Om du aktiverar den hoppar du över sådana uppmaningar och avslutar emuleringen direkt. - + Hide mouse on inactivity Dölj musen vid inaktivitet - + Hides the mouse after 2.5s of inactivity. Döljer musen efter 2,5 sekunders inaktivitet. - + + Disable controller applet + Inaktivera kontroller-appleten + + + + Forcibly disables the use of the controller applet in emulated programs. +When a program attempts to open the controller applet, it is immediately closed. + Inaktiverar med tvång användningen av kontrollerappletten i emulerade program. +När ett program försöker öppna kontrollerappletten stängs den omedelbart. + + + Check for updates Leta efter uppdateringar - + Whether or not to check for updates upon startup. Om uppdateringar ska sökas vid start eller inte. - + Enable Gamemode Aktivera Gamemode - + Force X11 as Graphics Backend Tvinga X11 som grafikbackend - + Custom frontend Anpassad frontend - + Real applet Verklig applet - - - Disabled - Inaktiverad - - - + Never Aldrig - + On Load Vid inläsning - + Always Alltid - + CPU CPU - + GPU GPU - + CPU Asynchronous CPU asynkron - + Uncompressed (Best quality) Okomprimerad (bästa kvalitet) - + BC1 (Low quality) BC1 (låg kvalitet) - + BC3 (Medium quality) BC3 (medelhög kvalitet) - - + + Auto Auto - + 30 FPS 30 bilder/s - + 60 FPS 60 bilder/s - + 90 FPS 90 bilder/s - + 120 FPS 120 bilder/s - + Conservative Konservativ - + Aggressive Aggressiv - + Vulkan Vulkan - + OpenGL GLSL OpenGL GLSL - + OpenGL GLASM (Assembly Shaders, NVIDIA Only) OpenGL GLASM (Assembly Shaders, endast NVIDIA) - + OpenGL SPIR-V (Experimental, AMD/Mesa Only) OpenGL SPIR-V (Experimentell, endast AMD/Mesa) - + Null Null - + Fast Snabb - - - + + + Accurate Exakt - - - + + + Default Standard - + Unsafe (fast) Osäker (snabb) - + Safe (stable) Säker (stabil) - + Immediate Omedelbar - + Balanced Balanserad - + + Strict + Strikt + + + Unsafe Inte säker - + Paranoid (disables most optimizations) Paranoid (inaktiverar de flesta optimeringar) - + Debugging Felsökning - + Dynarmic Dynarmisk - + NCE NCE - + Borderless Windowed Ramlöst fönsterläge - + Exclusive Fullscreen Exklusiv helskärm - + No Video Output Ingen videoutgång - + CPU Video Decoding CPU-videoavkodning - + GPU Video Decoding (Default) GPU videoavkodning (standard) - + 0.25X (180p/270p) [EXPERIMENTAL] 0.25X (180p/270p) [EXPERIMENTELL] - + 0.5X (360p/540p) [EXPERIMENTAL] 0.5X (360p/540p) [EXPERIMENTELL] - + 0.75X (540p/810p) [EXPERIMENTAL] 0.75X (540p/810p) [EXPERIMENTELL] - + 1X (720p/1080p) 1X (720p/1080p) - + 1.25X (900p/1350p) [EXPERIMENTAL] 1.25X (900p/1350p) [EXPERIMENTELL] - + 1.5X (1080p/1620p) [EXPERIMENTAL] 1.5X (1080p/1620p) [EXPERIMENTELL] - + 2X (1440p/2160p) 2X (1440p/2160p) - + 3X (2160p/3240p) 3X (2160p/3240p) - + 4X (2880p/4320p) 4X (2880p/4320p) - + 5X (3600p/5400p) 5X (3600p/5400p) - + 6X (4320p/6480p) 6X (4320p/6480p) - + 7X (5040p/7560p) 7X (5040p/7560p) - + 8X (5760p/8640p) 8X (5760p/8640p) - + Nearest Neighbor Närmsta granne - + Bilinear Bilinjär - + Bicubic Bikubisk - + Gaussian Gaussisk - + Lanczos Lanczos - + ScaleForce ScaleForce - + AMD FidelityFX Super Resolution AMD FidelityFX Super Resolution - + Area Område - + MMPX MMPX - + Zero-Tangent Zero-Tangent - + B-Spline B-Spline - + Mitchell Mitchell - + Spline-1 Spline-1 - + Snapdragon Game Super Resolution Snapdragon Game Super Resolution - + Snapdragon Game Super Resolution EdgeDir Snapdragon Game Super Resolution EdgeDir - + None Ingen - + FXAA FXAA - + SMAA SMAA - + Default (16:9) Standard (16:9) - + Force 4:3 Tvinga 4:3 - + Force 21:9 Tvinga 21:9 - + Force 16:10 Tvinga 16:10 - + Stretch to Window Sträck ut till fönster - + Automatic Automatiskt - + 2x 2x - + 4x 4x - + 8x 8x - + 16x 16x - + Japanese (日本語) Japanska (日本語) - + American English Amerikansk engelska - + French (français) Franska (français) - + German (Deutsch) Tyska (Deutsch) - + Italian (italiano) Italienska (italiano) - + Spanish (español) Spanska (español) - + Chinese Kinesiska - + Korean (한국어) Koreanska (한국어) - + Dutch (Nederlands) Nederländska (Nederlands) - + Portuguese (português) Portugisiska (português) - + Russian (Русский) Ryska (Русский) - + Taiwanese Taiwanesiska - + British English Brittisk engelska - + Canadian French Kanadensisk franska - + Latin American Spanish Latinamerikansk spanska - + Simplified Chinese Förenklad kinesiska - + Traditional Chinese (正體中文) Traditionell kinesiska (正體中文) - + Brazilian Portuguese (português do Brasil) Brasiliansk portugisiska (português do Brasil) - + Polish (polska) Polska (polska) - + Thai (แบบไทย) Thai (แบบไทย) - - + + Japan Japan - + USA USA - + Europe Europa - + Australia Australien - + China Kina - + Korea Korea - + Taiwan Taiwan - + Auto (%1) Auto select time zone Auto (%1) - + Default (%1) Default time zone Standard (%1) - + CET CET - + CST6CDT CST6CDT - + Cuba Kuba - + EET EET - + Egypt Egypten - + Eire Irland - + EST EST - + EST5EDT EST5EDT - + GB GB - + GB-Eire GB-Irland - + GMT GMT - + GMT+0 GMT+0 - + GMT-0 GMT-0 - + GMT0 GMT0 - + Greenwich Greenwich - + Hongkong Hongkong - + HST HST - + Iceland Island - + Iran Iran - + Israel Israel - + Jamaica Jamaica - + Kwajalein Kwajalein - + Libya Libyen - + MET MET - + MST MST - + MST7MDT MST7MDT - + Navajo Navajo - + NZ NZ - + NZ-CHAT NZ-CHAT - + Poland Polen - + Portugal Portugal - + PRC PRC - + PST8PDT PST8PDT - + ROC ROC - + ROK ROK - + Singapore Singapore - + Turkey Turkiet - + UCT UCT - + Universal Universal - + UTC UTC - + W-SU W-SU - + WET VÅT - + Zulu Zulu - + Mono Mono - + Stereo Stereo - + Surround Surround - + 4GB DRAM (Default) 4 GB DRAM (standard) - + 6GB DRAM (Unsafe) 6 GB DRAM (osäker) - + 8GB DRAM 8 GB DRAM - + 10GB DRAM (Unsafe) 10 GB DRAM (osäker) - + 12GB DRAM (Unsafe) 12 GB DRAM (osäker) - + Docked Dockad - + Handheld Handhållen - - + + Normal Normal - - + + Boost Förstärk - - + + Overclock Överklocka - + Always ask (Default) Fråga alltid (standard) - + Only if game specifies not to stop Endast om spelet anger att det inte ska stoppas - + Never ask Fråga aldrig - + Very Small (16 MB) Mycket liten (16 MB) - + Small (32 MB) Liten (32 MB) - + Normal (128 MB) Normal (128 MB) - + Large (256 MB) Stor (256 MB) - + Very Large (512 MB) Mycket stor (512 MB) - + Very Low (4 MB) Mycket låg (4 MB) - + Low (8 MB) Låg (8 MB) - + Normal (16 MB) Normal (16 MB) - + Medium (32 MB) Medium (32 MB) - + High (64 MB) Hög (64 MB) - + Very Low (32) Mycket låg (32) - + Low (64) Låg (64) - + Normal (128) Normal (128) - + Medium (256) Medium (256) - + High (512) Hög (512) - + + Disabled + Inaktiverad + + + ExtendedDynamicState 1 ExtendedDynamicState 1 - + ExtendedDynamicState 2 ExtendedDynamicState 2 - + ExtendedDynamicState 3 ExtendedDynamicState 3 - + Tree View Trädvy - + Grid View Rutnätsvy @@ -2982,7 +2997,7 @@ Om du aktiverar den hoppar du över sådana uppmaningar och avslutar emuleringen ... - … + ... @@ -3057,33 +3072,33 @@ Om du aktiverar den hoppar du över sådana uppmaningar och avslutar emuleringen Select Emulated NAND Directory... - Välj katalog för emulerad NAND… + Välj katalog för emulerad NAND... Select Emulated SD Directory... - Välj katalog för emulerad SD… + Välj katalog för emulerad SD... Select Save Data Directory... - Välj katalog för sparat data… + Välj katalog för sparat data... Select Gamecard Path... - Välj sökväg för Gamecard… + Välj sökväg för Gamecard... Select Dump Directory... - Välj dumpkatalog… + Välj dumpkatalog... Select Mod Load Directory... - Välj katalog för modinläsningar… + Välj katalog för modinläsningar... @@ -3141,7 +3156,7 @@ Till: %2 Migrating save data... - Migrerar sparat data… + Migrerar sparat data... @@ -3232,7 +3247,7 @@ Vill du ta bort gammalt sparat data? Select External Content Directory... - Välj katalog för externt innehåll… + Välj katalog för externt innehåll... @@ -3273,38 +3288,33 @@ Vill du ta bort gammalt sparat data? Bakgrundsfärg: - + % FSR/SGSR sharpening percentage (e.g. 50%) % - - Configure Effects... - Konfigurera effekter… - - - + Off Av - + VSync Off VSync Av - + Recommended Rekommenderad - + On På - + VSync On VSync På @@ -3828,7 +3838,7 @@ Vill du ta bort gammalt sparat data? Aimed to disable SDL GUIDE button hack: synthetic GUIDE(HOME) event when SELECT(MINUS) + START(PLUS) pressed. May impact Win related trigger/rumble/etc stuff - Avsedd att stänga av SDL:s GUIDE-knappshack: syntetisk GUIDE(HOME)-händelse när SELECT(MINUS) + START(PLUS) trycks ned. Kan påverka Windows-relaterade avtryckare, vibrationer med mera + Avsedd att stänga av SDL:s GUIDE-knappshack: syntetisk GUIDE(HOME)-händelse när SELECT(MINUS) + START(PLUS) trycks ned. Kan påverka Windows-relaterade avtryckare, vibrationer med mera. @@ -4027,7 +4037,7 @@ Vill du ta bort gammalt sparat data? Modifier Range: 0% - Modifieringsintervall: 0 % + Modifieringsintervall: 0% @@ -4211,7 +4221,7 @@ Vill du ta bort gammalt sparat data? Choose a value between 0% and 100% - Välj ett värde mellan 0 % och 100 % + Välj ett värde mellan 0% och 100% @@ -4249,13 +4259,13 @@ Om du vill invertera axlarna för du joysticken först vertikalt och sedan horis Deadzone: %1% - Dödzon: %1 % + Dödzon: %1% Modifier Range: %1% - Modifieringsintervall: %1 % + Modifieringsintervall: %1% @@ -4644,8 +4654,8 @@ Om du vill invertera axlarna för du joysticken först vertikalt och sedan horis Mouse panning works better with a deadzone of 0% and a range of 100%. Current values are %1% and %2% respectively. - Muspanorering fungerar bättre med en dödzon på 0 % och ett intervall på 100 %. -Nuvarande värden är %1 % respektive %2 %. + Muspanorering fungerar bättre med en dödzon på 0% a och ett intervall på 100%. +Nuvarande värden är %1% respektive %2%. @@ -4894,7 +4904,7 @@ För att ta bort NAND-installerade uppdateringar, högerklicka på spelet i spel Once deleted, these can NOT be recovered. Are you 100% sure you want to delete them? -När de har tagits bort kan de INTE återställas. Är du 100 % säker på att du vill ta bort dem? +När de har tagits bort kan de INTE återställas. Är du 100% säker på att du vill ta bort dem? @@ -4922,131 +4932,6 @@ När de har tagits bort kan de INTE återställas. Är du 100 % säker på att d Ö&ppna i filhanterare - - ConfigurePostProcessing - - - Post-Processing Effects - Efterbearbetningseffekter - - - - Changes apply immediately while a game is running. - Ändringarna tillämpas omedelbart medan ett spel körs. - - - - Enable post-processing - Aktivera efterbearbetning - - - - Preset: - Förinställning: - - - - Apply - Tillämpa - - - - Reset Values - Återställ värden - - - - Return every effect to the values the preset ships with. - Återställ varje effekt till de värden som förinställningen levereras med. - - - - Save As... - Spara som… - - - - Save Preset - Spara förinställning - - - - Preset name: - Förinställningsnamn: - - - - Clear - Rensa - - - - Remove every effect in use and deselect the preset. - Ta bort alla använda effekter och avmarkera förinställningen. - - - - Add Effect - Lägg till effekt - - - - None - Ingen - - - - No effects in use. Pick a preset and press Apply, or add effects one by one. - Inga effekter används. Välj en förinställning och tryck på Verkställ, eller lägg till effekter en i taget. - - - - Custom chain. Pick a preset above and press Apply to replace it. - Anpassad kedja. Välj en förinställning ovan och tryck på Tillämpa för att ersätta den. - - - - Active preset: %1 (modified). Press Reset Values to go back to how it ships. - Aktiv förinställning: %1 (ändrad). Tryck på Återställ värden för att återgå till ursprungsvärdena. - - - - Active preset: %1 - Aktiv förinställning: %1 - - - - Enabled - Aktiverad - - - - Disabled - Inaktiverad - - - - Reset to defaults - Återställ standardvärden - - - - Effect '%1' was not found. - Effekten ”%1” hittades inte. - - - - Effect failed to compile: -%1 - Effekten kunde inte kompileras: -%1 - - - - No usable ReShade FX effects were found. Place .fx files in the post_shaders folder. - Inga användbara ReShade FX-effekter hittades. Placera .fx-filer i mappen post_shaders. - - ConfigureProfileManager @@ -5258,7 +5143,7 @@ UUID: %2 Deadzone: %1% - Dödzon: %1 % + Dödzon: %1% @@ -5385,7 +5270,7 @@ UUID: %2 ... - … + ... @@ -5398,7 +5283,7 @@ UUID: %2 Select TAS Load Directory... - Välj katalog för TAS-inläsningar… + Välj katalog för TAS-inläsningar... @@ -5665,7 +5550,7 @@ Dra punkterna för att ändra position, eller dubbelklicka på tabellcellerna f ... - … + ... @@ -5680,7 +5565,7 @@ Dra punkterna för att ändra position, eller dubbelklicka på tabellcellerna f Select Screenshots Path... - Välj sökväg för skärmdumpar… + Välj sökväg för skärmdumpar... @@ -5932,7 +5817,7 @@ Dra punkterna för att ändra position, eller dubbelklicka på tabellcellerna f Calculating... - Beräknar… + Beräknar... @@ -6134,50 +6019,50 @@ Gå till Konfigurera -> System -> Nätverk och gör ett val. GRenderWindow - - + + OpenGL not available! OpenGL är inte tillgängligt! - + OpenGL shared contexts are not supported. Delade OpenGL-kontexter stöds inte. - + Eden has not been compiled with OpenGL support. Eden har inte kompilerats med OpenGL-stöd. - - - + + + Error while initializing OpenGL! Fel vid initiering av OpenGL! - + Your GPU may not support OpenGL, or you do not have the latest graphics driver. Din GPU kanske inte stöder OpenGL, eller så har du inte den senaste grafikdrivrutinen. - + Error while initializing OpenGL 4.6! Fel vid initiering av OpenGL 4.6! - + Your GPU may not support OpenGL 4.6, or you do not have the latest graphics driver.<br><br>GL Renderer:<br>%1 Din GPU kanske inte stöder OpenGL 4.6, eller så har du inte den senaste grafikdrivrutinen.<br><br>GL Renderer:<br>%1 - + Your GPU may not support one or more required OpenGL extensions. Please ensure you have the latest graphics driver.<br><br>GL Renderer:<br>%1<br><br>Unsupported extensions:<br>%2 Din GPU kanske inte stöder ett eller flera av de nödvändiga OpenGL-tilläggen. Se till att du har den senaste grafikdrivrutinen.<br><br>GL Renderer:<br>%1<br><br>Tillägg som inte stöds:<br>%2 - + This build doesn't have OpenGL support. Den här versionen saknar stöd för OpenGL. @@ -6814,7 +6699,7 @@ Felsökningsmeddelande: Loading... - Läser in… + Läser in... @@ -6824,7 +6709,7 @@ Felsökningsmeddelande: Launching... - Startar… + Startar... @@ -6999,59 +6884,59 @@ Felsökningsmeddelande: Återställ fönsterstorleken till 1080p - + &Multiplayer &Flera spelare - + &Tools Ver&ktyg - + Am&iibo Am&iibo - + Launch &Applet Starta &applet - + &TAS &TAS - + &Create Home Menu Shortcut S&kapa genväg till startmenyn - + Install &Firmware Installera &firmware - + &Help &Hjälp &Install Files to NAND... - &Installera filer till NAND… + &Installera filer till NAND... L&oad File... - Läs &in fil… + Läs &in fil... Load &Folder... - Läs in &mapp… + Läs in &mapp... @@ -7060,7 +6945,7 @@ Felsökningsmeddelande: - + &Pause &Paus @@ -7087,7 +6972,7 @@ Felsökningsmeddelande: Con&figure... - Kon&figurera… + Kon&figurera... @@ -7152,7 +7037,7 @@ Felsökningsmeddelande: Load/Remove &Amiibo... - Läs in/ta bort &Amiibo… + Läs in/ta bort &Amiibo... @@ -7161,583 +7046,578 @@ Felsökningsmeddelande: - &User Handbook - &Användarhandbok + Open &Quickstart Guide + Öppna &snabbstartsguide - + + &FAQ + &Frågor och svar + + + &Capture Screenshot &Ta skärmdump - + &Album &Album - + &Set Nickname and Owner &Ange smeknamn och ägare - + &Delete Game Data &Radera speldata - + &Restore Amiibo Å&terställ Amiibo - + &Format Amiibo &Formatera Amiibo - + &Mii Editor &Mii-redigerare - + &Configure TAS... - &Konfigurera TAS… + &Konfigurera TAS... - + Configure C&urrent Game... - Konfigurera a&ktuellt spel… + Konfigurera a&ktuellt spel... - - + + &Start &Starta - + &Reset Starta &om - - + + R&ecord Spela &in - + Open &Controller Menu Öppna &kontrollermenyn - + Install Decryption &Keys Installera avkrypteringsn&ycklar - + &Home Menu &Hemmeny - + &Desktop S&krivbord - + &Application Menu &Applikationsmeny - + &Root Data Folder &Rotdatamapp - + &NAND Folder &NAND-mapp - + &SDMC Folder &SDMC-mapp - + &Mod Folder &Mod-mapp - + &Log Folder &Loggmapp - + From Folder Från mapp - + From ZIP Från ZIP - + &Eden Dependencies &Edens beroenden - + &Data Manager &Datahanterare - + &Tree View &Trädvy - + &Grid View &Rutnätsvy - + Game Icon Size Storlek för spelikon - - + + None Ingen - + Show Game &Name Visa spel&namn - + Show &Performance Overlay Visa &prestandaöverlägg - - - Post-Processing &Shaders... - Efterbearbetning och &skuggning… - &Carousel View &Karusellvy - + Small (32x32) Liten (32x32) - + Standard (64x64) Standard (64x64) - + Large (128x128) Stor (128x128) - + Full Size (256x256) Full storlek (256x256) - + Broken Vulkan Installation Detected Felaktig Vulkan-installation upptäcktes - + Vulkan initialization failed during boot. Vulkan-initialiseringen misslyckades under uppstarten. - + Running a game TRANSLATORS: This string is shown to the user to explain why yuzu needs to prevent the computer from sleeping Kör ett spel - + Loading Web Applet... - Läser in webbapplet… + Läser in webbapplet... - - + + Disable Web Applet Inaktivera webbapplet - + Disabling the web applet can lead to undefined behavior and should only be used with Super Mario 3D All-Stars. Are you sure you want to disable the web applet? (This can be re-enabled in the Debug settings.) Att inaktivera webbappletten kan leda till odefinierat beteende och bör endast användas med Super Mario 3D All-Stars. Är du säker på att du vill inaktivera webbappletten? (Detta kan återaktiveras i felsökningsinställningarna.) - + The amount of shaders currently being built Antalet shaders som för närvarande byggs - + The current selected resolution scaling multiplier. Den aktuella valda multiplikatorn för upplösningsskalning. - + Current emulation speed. Values higher or lower than 100% indicate emulation is running faster or slower than a Switch. - Aktuell emuleringshastighet. Värden högre eller lägre än 100 % indikerar att emuleringen körs snabbare eller långsammare än en Switch. + Aktuell emuleringshastighet. Värden högre eller lägre än 100% indikerar att emuleringen körs snabbare eller långsammare än en Switch. - + How many frames per second the game is currently displaying. This will vary from game to game and scene to scene. Hur många bildrutor per sekund spelet för närvarande visar. Detta varierar från spel till spel och från scen till scen. - + Time taken to emulate a Switch frame, not counting framelimiting or v-sync. For full-speed emulation this should be at most 16.67 ms. Tid som krävs för att emulera en Switch-bildruta, exklusive bildbegränsning eller v-synkronisering. För emulering i full hastighet bör detta vara högst 16,67 ms. - + Unmute Aktivera ljud - + Mute Tyst - + Reset Volume Återställ volym - - Configure Effects... - Konfigurera effekter… - - - + &Clear Recent Files &Töm tidigare filer - + &Continue &Fortsätt - + Warning: Outdated Game Format Varning: Föråldrat spelformat - + You are using the deconstructed ROM directory format for this game, which is an outdated format that has been superseded by others such as NCA, NAX, XCI, or NSP. Deconstructed ROM directories lack icons, metadata, and update support.<br>For an explanation of the various Switch formats Eden supports, out our user handbook. This message will not be shown again. Du använder det dekonstruerade ROM-katalogformatet för detta spel, vilket är ett föråldrat format som har ersatts av andra format såsom NCA, NAX, XCI eller NSP. Dekonstruerade ROM-kataloger saknar ikoner, metadata och uppdateringsstöd.<br> För en förklaring av de olika Switch-format som Eden har stöd för, se vår användarhandbok. Detta meddelande kommer inte att visas igen. - - + + Error while loading ROM! Fel vid inläsning av ROM! - + The ROM format is not supported. ROM-formatet stöds inte. - + An error occurred initializing the video core. Ett fel uppstod vid initialiseringen av videokärnan. - - This is usually caused by outdated GPU drivers. Please see the log for more details. See: <a href='https://git.eden-emu.dev/eden-emu/eden/src/branch/master/docs/user/HowToAccessLogs.md'>How to access log files</a>. - Detta orsakas vanligtvis av inaktuella grafikdrivrutiner. Se loggen för mer information. Se: <a href='https://git.eden-emu.dev/eden-emu/eden/src/branch/master/docs/user/HowToAccessLogs.md'>Så här kommer du åt loggfiler</a>. + + Eden has encountered an error while running the video core. This is usually caused by outdated GPU drivers, including integrated ones. Please see the log for more details. For more information on accessing the log, please see the following page: <a href='https://yuzu-mirror.github.io/help/reference/log-files/'>How to Upload the Log File</a>. + Eden har stött på ett fel vid körning av videokärnan. Detta orsakas vanligtvis av föråldrade GPU-drivrutiner, inklusive integrerade sådana. Se loggen för mer information. För mer information om hur du kommer åt loggen, se följande sida: <a href='https://yuzu-mirror.github.io/help/reference/log-files/'>Hur man laddar upp loggfilen</a>. - + Error while loading ROM! %1 %1 signifies a numeric error code. Fel vid inläsning av ROM! %1 - + %1<br>Please redump your files or ask on Discord/Stoat for help. %1 signifies an error string. %1<br>Dumpa dina filer igen eller fråga på Discord/Stoat för hjälp. - + An unknown error occurred. Please see the log for more details. Ett okänt fel har uppstått. Se loggen för mer information. - - + + (64-bit) (64-bitar) - - + + (32-bit) (32-bitar) - - + + %1 %2 %1 is the title name. %2 indicates if the title is 64-bit or 32-bit %1 %2 - + Closing software... - Stänger programvara… + Stänger programvara... - + Save Data Sparat data - + Mod Data Mod-data - + Error Opening %1 Folder Fel vid öppning av mappen %1 - - + + Folder does not exist! Mappen finns inte! - + Remove Installed Game Contents? Ta bort installerat spelinnehåll? - + Remove Installed Game Update? Ta bort installerad speluppdatering? - + Remove Installed Game DLC? Ta bort installerat spel-DLC? - + Remove Entry Ta bort post - + Delete OpenGL Transferable Shader Cache? Ta bort OpenGL Transferable Shader Cache? - + Delete Vulkan Transferable Shader Cache? Ta bort Vulkan Transferable Shader Cache? - + Delete All Transferable Shader Caches? Ta bort alla Transferable Shader Caches? - + Remove Custom Game Configuration? Ta bort anpassad spelkonfiguration? - + Remove Cache Storage? Ta bort cachelagring? - + Remove File Ta bort fil - + Remove Play Time Data Ta bort data om speltid - + Reset play time? Nollställ speltid? - - + + RomFS Extraction Failed! Extrahering av RomFS misslyckades! - + There was an error copying the RomFS files or the user cancelled the operation. Det uppstod ett fel vid kopieringen av RomFS-filerna eller så avbröt användaren åtgärden. - + Full Fullständigt - + Skeleton Skelett - + Select RomFS Dump Mode Välj dumpläge för RomFS - + Please select the how you would like the RomFS dumped.<br>Full will copy all of the files into the new directory while <br>skeleton will only create the directory structure. Välj hur du vill att RomFS ska dumpas. <br>Fullständigt kopierar alla filer till den nya katalogen, medan <br>skelett endast skapar katalogstrukturen. - + There is not enough free space at %1 to extract the RomFS. Please free up space or select a different dump directory at Emulation > Configure > System > Filesystem > Dump Root - Det finns inte tillräckligt med ledigt utrymme på %1 för att extrahera RomFS. Frigör utrymme eller välj en annan dumpkatalog under Emulering > Konfigurera > System > Filsystem > Dumprot + Det finns inte tillräckligt med ledigt utrymme på %1 för att extrahera RomFS. Frigör utrymme eller välj en annan dumpkatalog under Emulering > Konfigurera > System > Filsystem > Dumprot. - + Extracting RomFS... - Extraherar RomFS… + Extraherar RomFS... - - + + Cancel Avbryt - + RomFS Extraction Succeeded! Extrahering av RomFS lyckades! - + The operation completed successfully. Operationen slutfördes. - + Error Opening %1 Fel vid öppning av %1 - + Select Directory Välj katalog - + Properties Egenskaper - + The game properties could not be loaded. Spelegenskaperna kunde inte läsas in. - + Switch Executable (%1);;All Files (*.*) %1 is an identifier for the Switch executable file extensions. Körbar Switch-fil (%1);;Alla filer (*.*) - + Load File Läs in fil - + Open Extracted ROM Directory Öppna katalog för extraherad ROM - + Invalid Directory Selected Ogiltig katalog valdes - + The directory you have selected does not contain a 'main' file. Den katalog du har valt innehåller ingen ”main”-fil. - + Installable Switch File (*.nca *.nsp *.xci);;Nintendo Content Archive (*.nca);;Nintendo Submission Package (*.nsp);;NX Cartridge Image (*.xci) Installerbar Switch-fil (*.nca *.nsp *.xci);;Nintendo Content Archive (*.nca);;Nintendo Submission Package (*.nsp);;NX Cartridge Image (*.xci) - + Install Files Installera filer - + %n file(s) remaining %n fil återstår%n filer återstår - + Installing file "%1"... - Installerar filen "%1"… + Installerar filen "%1"... - - + + Install Results Installationsresultat - + To avoid possible conflicts, we discourage users from installing base games to the NAND. Please, only use this feature to install updates and DLC. För att undvika eventuella konflikter avråder vi användare från att installera basspel på NAND. Använd endast denna funktion för att installera uppdateringar och DLC. - + %n file(s) were newly installed %n ny fil installerades @@ -7745,7 +7625,7 @@ Använd endast denna funktion för att installera uppdateringar och DLC. - + %n file(s) were overwritten %n fil skrevs över @@ -7753,7 +7633,7 @@ Använd endast denna funktion för att installera uppdateringar och DLC. - + %n file(s) failed to install %n fil gick inte att installera @@ -7761,324 +7641,314 @@ Använd endast denna funktion för att installera uppdateringar och DLC. - + System Application Systemapplikation - + System Archive Systemarkiv - + System Application Update Uppdatering för systemapplikation - + Firmware Package (Type A) Firmware-paket (Type A) - + Firmware Package (Type B) Firmware-paket (Type B) - + Game Spel - + Game Update Speluppdatering - + Game DLC DLC för spel - + Delta Title Deltatitel - + Select NCA Install Type... - Välj NCA-installationstyp… + Välj NCA-installationstyp... - + Please select the type of title you would like to install this NCA as: (In most instances, the default 'Game' is fine.) Välj vilken typ av titel du vill installera denna NCA som: (I de flesta fall är standardinställningen ”Spel” tillräcklig.) - + Failed to Install Misslyckades med att installera - + The title type you selected for the NCA is invalid. Den titeltypen du valt för NCA är ogiltig. - + File not found Filen hittades inte - + File "%1" not found Filen "%1" hittades inte - + OK Ok - + Function Disabled Funktion inaktiverad - + Compatibility list reporting is currently disabled. Check back later! Rapportering till kompatibilitetslistan är för närvarande inaktiverad. Kom tillbaka senare! - + Error opening URL Fel vid öppning av URL - + Unable to open the URL "%1". Det går inte att öppna URL:en ”%1”. - + TAS Recording TAS-inspelning - + Overwrite file of player 1? Skriv över fil för spelare 1? - + Invalid config detected Ogiltig konfiguration upptäcktes - + Handheld controller can't be used on docked mode. Pro controller will be selected. Handhållen kontroller kan inte användas i dockat läge. Pro-kontrollern kommer att väljas. - - + + Amiibo Amiibo - - + + The current amiibo has been removed - Den aktuella amiibo har tagits bort + Den aktuella amiibo har tagits bort. - + Error Fel - - + + The current game is not looking for amiibos Det aktuella spelet letar inte efter amiibos - + Amiibo File (%1);; All Files (*.*) Amiibo-fil (%1);; Alla filer (*.*) - + Load Amiibo Läs in Amiibo - + Error loading Amiibo data Fel vid läsning av Amiibo-data - + The selected file is not a valid amiibo - Den valda filen är inte en giltig amiibo + Den valda filen är inte en giltig amiibo. - + The selected file is already on use Den valda filen används redan - + An unknown error occurred Ett okänt fel uppstod - + No firmware available Ingen firmware tillgänglig - + Firmware Corrupted Firmware är skadat - + Unknown applet Okänd applet - + Applet doesn't map to a known value. Appleten mappar inte till ett känt värde. - + Record not found Posten hittades inte - + Applet not found. Please reinstall firmware. Appleten hittades inte. Installera om fast programvara. - + Capture Screenshot Ta skärmbild - + PNG Image (*.png) PNG-bild (*.png) - + TAS state: Running %1/%2 TAS-tillstånd: Kör %1/%2 - + TAS state: Recording %1 TAS-tillstånd: Spelar in %1 - + TAS state: Idle %1/%2 TAS-tillstånd: Overksam %1/%2 - + TAS State: Invalid TAS-tillstånd: Ogiltig - + &Stop Running &Stoppa körning - + Stop R&ecording Stoppa i&nspelning - + Building: %n shader(s) Bygger: %n shaderBygger: %n shaders - + Scale: %1x %1 is the resolution scaling factor Skala: %1x - + Speed: %1% / %2% - Hastighet: %1 % / %2 % + Hastighet: %1% / %2% - + Speed: %1% - Hastighet: %1 % + Hastighet: %1% - + Game: %1 FPS Spel: %1 bilder/s - + Frame: %1 ms Bildruta: %1 ms - + NO AA NO AA - - NO FX - INGA FX - - - - FX - FX - - - + VOLUME: MUTE VOLYM: TYST - + VOLUME: %1% Volume percentage (e.g. 50%) - VOLYM: %1 % + VOLYM: %1% - + Derivation Components Missing Deriveringskomponenter saknas - + Decryption keys are missing. Install them now? Avkrypteringsnycklar saknas. Installera dem nu? - + Wayland Detected! Wayland upptäcktes! - + Wayland is known to have significant performance issues and mysterious bugs. It's recommended to use X11 instead. @@ -8089,74 +7959,74 @@ Det rekommenderas att använda X11 istället. Vill du tvinga det för framtida starter? - + Use X11 Använd X11 - + Continue with Wayland Fortsätt med Wayland - + Don't show again Visa inte igen - + Restart Required Omstart krävs - + Restart Eden to apply the X11 backend. Starta om Eden för att tillämpa X11-backend. - + Slow Långsam - + Turbo Turbo - + Unlocked Upplåst - + Select RomFS Dump Target Välj RomFS-dumpmål - + Please select which RomFS you would like to dump. Välj vilken RomFS du vill dumpa. - + Are you sure you want to close Eden? Är du säker på att du vill stänga Eden? - - - + + + Eden Eden - + Are you sure you want to stop the emulation? Any unsaved progress will be lost. Är du säker på att du vill stoppa emuleringen? Alla osparade framsteg kommer att gå förlorade. - + The currently running application has requested Eden to not exit. Would you like to bypass this and exit anyway? @@ -8511,7 +8381,7 @@ Fortsätt ändå? UUID must be 32 hex characters (0-9, A-F) - UUID måste vara 32 hexadecimala tecken (0 till 9, A-F) + UUID måste vara 32 hexadecimala tecken (0-9, A-F) @@ -8595,7 +8465,7 @@ Fortsätt ändå? Must be 32 hex characters (0-9, a-f) Tooltip - Måste vara 32 hexadecimala tecken (0 till 9, a-f) + Måste vara 32 hexadecimala tecken (0-9, a-f) @@ -8801,7 +8671,7 @@ p, li { white-space: pre-wrap; } Migrating, this may take a while... - Migrerar, det kan ta ett tag… + Migrerar, det kan ta ett tag... @@ -9316,7 +9186,7 @@ p, li { white-space: pre-wrap; } ... - … + ... @@ -9358,41 +9228,41 @@ p, li { white-space: pre-wrap; } - This game may require firmware to function properly, and you don't have any installed. Please install firmware before launching, or press "OK" to launch anyways. - Det här spelet kan kräva fast programvara för att fungera korrekt, men du har ingen installerad. Installera fast programvara innan du startar spelet, eller tryck på "OK" för att starta ändå. + The game you are trying to launch requires firmware to boot or to get past the opening menu. Please <a href='https://yuzu-mirror.github.io/help/quickstart'>dump and install firmware</a>, or press "OK" to launch anyways. + Spelet som du försöker starta kräver firmware för att starta eller komma förbi startmenyn. <a href='https://yuzu-mirror.github.io/help/quickstart'>Dumpa och installera firmware</a> eller tryck på ”OK” för att starta ändå. - + Installing Firmware... - Installerar firmware… + Installerar firmware... - - - - - + + + + + Cancel Avbryt - + Firmware Install Failed Installation av firmware misslyckades - + Firmware Install Succeeded Installation av firmware lyckades - + Firmware integrity verification failed! Verifieringen av firmwareintegriteten misslyckades! - - + + Verification failed for the following files: %1 @@ -9401,235 +9271,235 @@ p, li { white-space: pre-wrap; } %1 - - + + Verifying integrity... - Verifierar integritet… - - - - - Integrity verification succeeded! - Integritetsverifieringen lyckades! + Verifierar integritet... + Integrity verification succeeded! + Integritetsverifieringen lyckades! + + + + The operation completed successfully. Operationen slutfördes utan problem. - - + + Integrity verification failed! Integritetsverifieringen misslyckades! - + File contents may be corrupt or missing. Filens innehåll kan vara skadat eller saknas. - + Integrity verification couldn't be performed Integritetsverifiering kunde inte utföras - + Firmware installation cancelled, firmware may be in a bad state or corrupted. File contents could not be checked for validity. Firmwareinstallationen avbruten, firmware kan vara i dåligt skick eller skadad. Filens innehåll kunde inte kontrolleras för giltighet. - + Select Dumped Keys Location Välj plats för dumpade nycklar - + Decryption Keys install succeeded Installation av avkrypteringsnycklar lyckades - + Decryption Keys install failed Installationen av avkrypteringsnycklar misslyckades - + Orphaned Profiles Detected! Föräldralösa profiler upptäcktes! - + UNEXPECTED BAD THINGS MAY HAPPEN IF YOU DON'T READ THIS!<br>Eden has detected the following save directories with no attached profile:<br>%1<br><br>The following profiles are valid:<br>%2<br><br>Click "OK" to open your save folder and fix up your profiles.<br>Hint: copy the contents of the largest or last-modified folder elsewhere, delete all orphaned profiles, and move your copied contents to the good profile.<br><br>Still confused? See the <a href='https://git.eden-emu.dev/eden-emu/eden/src/branch/master/docs/user/Orphaned.md'>help page</a>.<br> - OVÄNTADE PROBLEM KAN UPPSTÅ OM DU INTE LÄSER DETTA!<br>Eden har upptäckt följande sparningskataloger utan bifogade profiler:<br>%1<br><br>Följande profiler är giltiga:<br>%2<br><br>Klicka på ”OK” för att öppna din sparningsmapp och rätta till dina profiler.<br>Tips: kopiera innehållet i den största eller senast ändrade mappen till en annan plats, ta bort alla övergivna profiler och flytta det kopierade innehållet till den giltiga profilen.<br><br>Fortfarande förvirrad? Se <a href='https://git.eden-emu.dev/eden-emu/eden/src/branch/master/docs/user/Orphaned.md'>hjälpsidan</a>.<br> + OVÄNTADE PROBLEM KAN UPPSTÅ OM DU INTE LÄSER DETTA! <br>Eden har upptäckt följande sparningskataloger utan bifogade profiler:<br>%1<br><br>Följande profiler är giltiga:<br>%2<br><br>Klicka på ”OK” för att öppna din sparningsmapp och fixa dina profiler.<br>Tips: kopiera innehållet i den största eller senast ändrade mappen till en annan plats, ta bort alla övergivna profiler och flytta det kopierade innehållet till den giltiga profilen.<br><br>Fortfarande förvirrad? Se hjälpsidan<a href='https://git.eden-emu.dev/eden-emu/eden/src/branch/master/docs/user/Orphaned.md'>.<br> - + Really clear data? Verkligen tömma data? - + Important data may be lost! Viktig data kan gå förlorad! - + Are you REALLY sure? Är du VERKLIGEN säker? - + Once deleted, your data will NOT come back! Only do this if you're 100% sure you want to delete this data. När dina data har raderats kan de INTE återställas! -Gör detta endast om du är 100 % säker på att du vill radera dessa data. +Gör detta endast om du är 100% säker på att du vill radera dessa data. - + Clearing... - Tömmer… + Tömmer... - + Select Export Location Välj exportplats - + %1.zip %1.zip - - - + + + Zipped Archives (*.zip) Zippade arkiv (*.zip) - + Exporting data. This may take a while... - Exporterar data. Detta kan ta en stund… + Exporterar data. Detta kan ta en stund... - + Exporting Exporterar - + Exported Successfully Exporten lyckades - + Data was exported successfully. Data har exporterats. - + Export Cancelled Exporten avbröts - + Export was cancelled by the user. Exporten avbröts av användaren. - + Export Failed Exporten misslyckades - + Ensure you have write permissions on the targeted directory and try again. Kontrollera att du har skrivbehörighet till den aktuella katalogen och försök igen. - + Select Import Location Välj importplats - + Import Warning Importvarning - + All previous data in this directory will be deleted. Are you sure you wish to proceed? Alla tidigare data i denna katalog kommer att raderas. Är du säker på att du vill fortsätta? - + Importing data. This may take a while... - Importerar data. Detta kan ta en stund… + Importerar data. Detta kan ta en stund... - + Importing Importerar - + Imported Successfully Importen lyckades - + Data was imported successfully. Data har importerats. - + Import Cancelled Importen avbröts - + Import was cancelled by the user. Importen avbröts av användaren. - + Import Failed Importen misslyckades - + Ensure you have read permissions on the targeted directory and try again. Kontrollera att du har läsbehörighet till den aktuella katalogen och försök igen. - + Keys not installed Nycklar är inte installerade - + Install decryption keys and restart Eden before attempting to install firmware. Installera dekrypteringsnycklar och starta om Eden innan du försöker installera fast programvara. - + Select Dumped Firmware Source Location Välj platsen för den dumpade fasta programvaran - + Select Dumped Firmware ZIP Välj ZIP-fil med dumpad fast programvara - + Firmware cleanup failed Rensning av fast programvara misslyckades - + Failed to clean up extracted firmware cache. Check write permissions in the system temp directory and try again. OS reported error: %1 @@ -10081,12 +9951,12 @@ De flesta mods är RomFS-mods, men patchar (.pchtxt) är vanligtvis ExeFS-mods.< Successfully installed firmware version %1 - Firmware-version %1 har installerats + Firmware-version %1 har installerats. Unable to locate potential firmware NCA files - Det går inte att hitta potentiella NCA-filer för firmware + Det går inte att hitta potentiella NCA-filer för firmware. @@ -10206,7 +10076,7 @@ Detta rekommenderas om du vill dela data mellan emulatorer. 1 - 8 - 1 till 8 + 1 - 8 @@ -10616,7 +10486,7 @@ p, li { white-space: pre-wrap; } By selecting "From Eden", previous save data stored in Ryujinx will be deleted, and vice versa for "From Ryujinx". Genom att länka sparade data till Ryujinx kan både Ryujinx och Eden referera till samma sparade filer för dina spel. -Om du väljer ”Från Eden” tas tidigare sparade data bort som lagrats i Ryujinx och vice versa för ”Från Ryujinx”. +Om du väljer ”Från Eden” tas tidigare sparade data bort som lagrats i Ryujinx, och vice versa för ”Från Ryujinx”. @@ -10734,7 +10604,7 @@ Om du väljer ”Från Eden” tas tidigare sparade data bort som lagrats i Ryuj Downloading... - Hämtar ner… + Hämtar ner... diff --git a/dist/languages/tr_TR.ts b/dist/languages/tr_TR.ts index b63445c3fb..4cfb643668 100644 --- a/dist/languages/tr_TR.ts +++ b/dist/languages/tr_TR.ts @@ -585,34 +585,24 @@ FXAA can produce a more stable picture in lower resolutions. Kullanılacak kenar yumuşatma yöntemi. SMAA en iyi kaliteyi sunar. FXAA, düşük çözünürlüklerde daha kararlı bir görüntü oluşturabilir. - - Enable post-processing effects - - - - - Applies post-processing effects to the final image. - - - - + Fullscreen Mode: Tam Ekran Modu: - + The method used to render the window in fullscreen. Borderless offers the best compatibility with the on-screen keyboard that some games request for input. Exclusive fullscreen may offer better performance and better Freesync/Gsync support. Pencereyi tam ekranda işlemek için kullanılan yöntem. Sınırsız, bazı oyunların giriş için istediği ekran klavyesi ile en iyi uyumluluğu sunar. Özel tam ekran, daha iyi performans ve daha iyi Freesync/Gsync desteği sağlayabilir. - + Aspect Ratio: En-Boy Oranı: - + Stretches the renderer to fit the specified aspect ratio. Most games only support 16:9, so modifications are required to get other ratios. Also controls the aspect ratio of captured screenshots. @@ -621,46 +611,46 @@ Also controls the aspect ratio of captured screenshots. Ayrıca, yakalanan ekran görüntülerinin en-boy oranını da kontrol eder. - + Use persistent pipeline cache Kalıcı işlem hattı önbelleğini kullan - + Allows saving shaders to storage for faster loading on following game boots. Disabling it is only intended for debugging. Gölgelendiriclerin sonraki oyun açılışlarında daha hızlı yüklenmesi için depolama alanına kaydedilmesine olanak tanır. Devre dışı bırakılması yalnızca hata ayıklama amaçlıdır. - + Use asynchronous GPU emulation - + Uses an extra CPU thread for rendering. This option should always remain enabled. - + NVDEC emulation: NVDEC emülasyonu: - + Specifies how videos should be decoded. It can either use the CPU or the GPU for decoding, or perform no decoding at all (black screen on videos). In most cases, GPU decoding provides the best performance. Videoların nasıl çözüleceğini belirtir. Kod çözme için CPU veya GPU kullanabilir veya hiç kod çözme işlemi yapmayabilir (videolarda siyah ekran). Çoğu durumda GPU ile kod çözme en iyi performansı sağlar. - + ASTC Decoding Method: ASTC Kod Çözme Yöntemi - + This option controls how ASTC textures should be decoded. CPU: Use the CPU for decoding. GPU: Use the GPU's compute shaders to decode ASTC textures (recommended). @@ -669,75 +659,55 @@ stuttering but may present artifacts. Bu seçenek ASTC dokularının nasıl çözüleceğini kontrol eder. CPU: Kod çözme için işlemciyi kullanır. GPU: ASTC dokularını çözmek için GPU'nun hesaplama gölgelendiricilerini kullanır (önerilir). CPU Asenkron: ASTC dokularını talep üzerine çözmek için işlemciyi kullanır. ASTC kod çözme kaynaklı takılmaları giderir ancak görsel bozulmalara neden olabilir. - + ASTC Recompression Method: ASTC Yeniden Sıkıştırma Yöntemi - + Most GPUs lack support for ASTC textures and must decompress to anintermediate format: RGBA8. BC1/BC3: The intermediate format will be recompressed to BC1 or BC3 format, saving VRAM but degrading image quality. Çoğu GPU, ASTC dokuları için doğrudan desteğe sahip değildir ve bir ara formata (RGBA8) açılmalıdır. BC1/BC3: Ara format BC1 veya BC3 formatında yeniden sıkıştırılarak VRAM tasarrufu sağlar ancak görüntü kalitesini düşürür. - + Frame Pacing Mode (Vulkan only) - + Controls how the emulator manages frame pacing to reduce stuttering and make the frame rate smoother and more consistent. - + VRAM Usage Mode: VRAM Kullanım Modu - + Selects whether the emulator should prefer to conserve memory or make maximum usage of available video memory for performance. Aggressive mode may impact performance of other applications such as recording software. Emülatörün belleği korumayı mı yoksa performans için mevcut video belleğini maksimum düzeyde kullanmayı mı tercih edeceğini seçer. Agresif mod, kayıt yazılımları gibi diğer uygulamaların performansını etkileyebilir. - + Skip CPU Inner Invalidation CPU Geçersiz Kılma'yı Atla - + Skips certain cache invalidations during memory updates, reducing CPU usage and improving latency. This may cause soft-crashes. Bellek güncellemeleri sırasında belirli önbellek geçersiz kılma işlemlerini atlayarak işlemci kullanımını azaltır ve gecikmeyi iyileştirir. Bu, hafif çökmelere neden olabilir. - - GPU Readback Before NCE Invalidation - - - - - Flushes GPU buffer data back to guest memory before NCE invalidates the whole guest page, preserving it while the CPU store proceeds. - - - - - Patch Runtime NROs for NCE - - - - - Applies NCE code patches to runtime-loaded NRO modules.This is required for some games to run correctly. - - - - + VSync Mode: VSync Modu: - + FIFO (VSync) does not drop frames or exhibit tearing but is limited by the screen refresh rate. FIFO Relaxed allows tearing as it recovers from a slow down. Mailbox can have lower latency than FIFO and does not tear but may drop frames. @@ -745,1372 +715,1410 @@ Immediate (no synchronization) presents whatever is available and can exhibit te FIFO (VSync) kare düşürmez veya yırtılma göstermez ancak ekran yenileme hızıyla sınırlıdır. FIFO Relaxed, yavaşlamadan toparlanırken yırtılmaya izin verir. Mailbox, FIFO'dan daha düşük gecikmeye sahip olabilir ve yırtılma yapmaz ancak kare düşürebilir. Immediate (senkronizasyon yok), mevcut olanı anında sunar ve yırtılmalara neden olabilir. - + Sync Memory Operations Bellek İşlemlerini Senkronize Et - + Ensures data consistency between compute and memory operations. This option fixes issues in games, but may degrade performance. Unreal Engine 4 games often see the most significant changes thereof. Hesaplama ve bellek işlemleri arasında veri tutarlılığı sağlar. Bu seçenek oyunlardaki sorunları giderir ancak performansı düşürebilir. Unreal Engine 4 oyunları genellikle bundan en önemli ölçüde etkilenenlerdir. - + Enable asynchronous presentation (Vulkan only) Asenkron sunumu etkinleştir (Yalnızca Vulkan) - + Slightly improves performance by moving presentation to a separate CPU thread. Sunum işlemini ayrı bir işlemci iş parçacığına taşıyarak performansı biraz artırır. - + Force maximum clocks (Vulkan only) En yüksek hızı zorla (Yalnızca Vulkan için) - + Runs work in the background while waiting for graphics commands to keep the GPU from lowering its clock speed. Grafik komutlarını beklerken GPU'nun hızının düşmesini engellemek için arka planda görev yürütür - + Anisotropic Filtering: Anisotropic Filtering: - + Controls the quality of texture rendering at oblique angles. Safe to set at 16x on most GPUs. Eğik açılardaki doku oluşturma kalitesini kontrol eder. Çoğu grafik kartında 16x olarak ayarlanması güvenlidir. - + GPU Mode: Grafik Kartı Modu - + Controls the GPU emulation mode. Most games render fine with Fast, but Accurate is still required for some. Particles tend to only render correctly with Accurate mode. - + DMA Accuracy: DMA Doğruluğu: - + Controls the DMA read mode. Unsafe is faster, while Safe is more stable and can fix issues in some games. Default follows the GPU Accuracy setting. - + GPU Fence Behavior: - + Controls the GPU fence synchronization behavior. Immediate is the fastest option, but can introduce some issues. Balanced offers better compatibility and may fix issues in some games. Accurate further improves compatibility at the cost of some performance. -Default follows the GPU Mode setting. +Strict is the slowest option, but can fix issues that require stricter synchronization. +Default follows the GPU Accuracy setting. - + + Enable GPU buffer readback + + + + + Preserves GPU-modified data by reading it back before uploading. +Some games require this to render certain effects properly. + + + + Enable asynchronous shader compilation Asenkron gölgelendirici derlemeyi etkinleştir - + May reduce shader stutter. Gölgelendirici/shader takılmalarını azaltabilir. - + GPU Clocks - + Makes the game believe GPU work finishes faster than it does, so it stops lowering resolution and render distance to fit the Switch's clocks. - + GPU Unswizzle - + Accelerates BCn 3D texture decoding using GPU compute. Disable if experiencing crashes or graphical glitches. - + GPU Unswizzle Max Texture Size - + Sets the maximum size (MiB) for GPU-based texture unswizzling. While the GPU is faster for medium and large textures, the CPU may be more efficient for very small ones. Adjust this to find the balance between GPU acceleration and CPU overhead. - + GPU Unswizzle Stream Size - + Sets the maximum amount of texture data (in MiB) processed per frame. Higher values can reduce stutter during texture loading but may impact frame consistency. - + GPU Unswizzle Chunk Size - + Determines the number of depth slices processed in a single dispatch. Increasing this can improve throughput on high-end GPUs but may cause TDR or driver timeouts on weaker hardware. - + Use Vulkan pipeline cache Vulkan pipeline önbelleği kullan - + Enables GPU vendor-specific pipeline cache. This option can improve shader loading time significantly in cases where the Vulkan driver does not store pipeline cache files internally. Grafik kartı üreticisine özel işlem hattı önbelleğini etkinleştirir. Bu seçenek, Vulkan sürücüsünün işlem hattı önbellek dosyalarını dahili olarak saklamadığı durumlarda gölgelendirici yükleme süresini önemli ölçüde iyileştirebilir. - + Enable Compute Pipelines (Intel Vulkan Only) Hesaplama İşlem Hatlarını Etkinleştir (Yalnızca Intel Vulkan) - + Required by some games. This setting only exists for Intel proprietary drivers and may crash if enabled. Compute pipelines are always enabled on all other drivers. Bazı oyunlar için gereklidir. Bu ayar yalnızca Intel'in tescilli sürücüleri için mevcuttur ve etkinleştirilirse çökmeye neden olabilir. Hesaplama işlem hatları diğer tüm sürücülerde her zaman etkindir. - + Enable Reactive Flushing Reaktif Temizlemeyi Etkinleştir - + Uses reactive flushing instead of predictive flushing, allowing more accurate memory syncing. Tahminli temizleme yerine reaktif temizleme kullanarak daha doğru bellek senkronizasyonu sağlar. - + Sync to framerate of video playback Video oynatma kare hızına senkronize et - + Run the game at normal speed during video playback, even when the framerate is unlocked. Kare hızı kilidi açık olsa bile video oynatımı sırasında oyunu normal hızda çalıştırır. - + Barrier feedback loops Bariyer geri besleme döngüleri - + Improves rendering of transparency effects in specific games. Belirli oyunlarda şeffaflık efektlerinin oluşturulmasını iyileştirir. - + Enable buffer history - + Enables access to previous buffer states. This option may improve rendering quality and performance consistency in some games. - + Fix bloom effects - + Removes bloom in Burnout. - + + Enable Legacy Rescale Pass + + + + + May fix rescale issues in some games by relying on behavior from the previous implementation. +Legacy behavior workaround that fixes line artifacts on AMD and Intel GPUs, and grey texture flicker on Nvidia GPUs in Luigis Mansion 3. + + + + Extended Dynamic State Genişletilmiş Dinamik Durum - + Controls the number of features that can be used in Extended Dynamic State. Higher states allow for more features and can increase performance, but may cause additional graphical issues. Genişletilmiş Dinamik Durumda kullanılabilecek özelliklerin sayısını kontrol eder. Daha yüksek durumlar daha fazla özelliğe izin verir ve performansı artırabilir, ancak ek grafik sorunlarına neden olabilir. - + Vertex Input Dynamic State Vertex Dinamik Durumu - + Enables vertex input dynamic state feature for better quality and performance. Daha iyi kalite ve performans için Vertex dinamik durum özelliğini etkinleştirir. - + Sample Shading Örnek Gölgelendirme - + Allows the fragment shader to execute per sample in a multi-sampled fragment instead of once per fragment. Improves graphics quality at the cost of performance. Higher values improve quality but degrade performance. Parça gölgelendiricinin, her parça için bir kez yerine çoklu örneklenmiş bir parçadaki her örnek için yürütülmesine olanak tanır. Performans pahasına grafik kalitesini artırır. Daha yüksek değerler kaliteyi artırır ancak performansı düşürür. - + RNG Seed RNG çekirdeği - + Controls the seed of the random number generator. Mainly used for speedrunning. Rastgele sayı üretecinin tohumunu kontrol eder. Esas olarak hızlı bitirme denemeleri için kullanılır. - + Device Name Cihaz İsmi - + The name of the console. Konsolun adı - + Homebrew Args - + Command-line arguments passed to homebrew at launch (e.g. -noglsl). - + Custom RTC Date: Özel RTC Tarihi - + This option allows to change the clock of the console. Can be used to manipulate time in games. Bu seçenek konsolun saatini değiştirmeye olanak tanır. Oyunlarda zamanı manipüle etmek için kullanılabilir. - + The number of seconds from the current unix time Mevcut unix zamanından itibaren saniye sayısı - + Language: Dil: - + This option can be overridden when region setting is auto-select Bölge ayarı otomatik seçim olduğunda bu seçenek geçersiz kılınabilir. - + Region: Bölge: - + The region of the console. Konsolun bölgesi - + Time Zone: Saat Dilimi: - + The time zone of the console. Konsolun saat dilimi - + Sound Output Mode: Ses Çıkış Modu: - + Console Mode: Konsol Modu: - + Selects if the console is in Docked or Handheld mode. Games will change their resolution, details and supported controllers and depending on this setting. Setting to Handheld can help improve performance for low end systems. Konsolun Yerleşik veya El Modunda olup olmadığını seçer. Oyunlar bu ayara bağlı olarak çözünürlüklerini, detaylarını ve desteklenen kontrolcülerini değiştirecektir. El Moduna ayarlamak, düşük seviyeli sistemler için performansı artırmaya yardımcı olabilir. - + Prompt for user profile on boot Açılışta kullanıcı profili için sor - + Useful if multiple people use the same PC. Aynı bilgisayarı birden fazla kişi kullanıyorsa yararlıdır. - + Pause when not in focus Odaklı değilken duraklat - + Pauses emulation when focusing on other windows. Diğer pencerelere odaklanıldığında emülasyonu duraklatır. - + Confirm before stopping emulation Emülasyonu durdurmadan önce onayla - + Overrides prompts asking to confirm stopping the emulation. Enabling it bypasses such prompts and directly exits the emulation. Emülasyonu durdurma onayı isteklerini/istemlerini geçersiz kılar. Etkinleştirildiğinde, bu tür istekleri/istemleri atlar ve emülasyonu doğrudan/dirket olarak kapatır. - + Hide mouse on inactivity Hareketsizlik durumunda imleci gizle - + Hides the mouse after 2.5s of inactivity. 2,5 saniye hareketsizlikten sonra fareyi gizler. - + + Disable controller applet + Kontrolcü aplikasyonunu devre dışı bırak + + + + Forcibly disables the use of the controller applet in emulated programs. +When a program attempts to open the controller applet, it is immediately closed. + Emüle edilen programlarda kontrolcü aplikasyonunun kullanımını zorla devre dışı bırakır. Bir program kontrolcü aplikasyonunu açmaya çalıştığında, aplikasyon anında kapatılır. + + + Check for updates Güncellemeleri Kontrol Et - + Whether or not to check for updates upon startup. Başlangıçta güncellemelerin kontrol edilip edilmeyeceği. - + Enable Gamemode Oyun Modunu/Gamemode Etkinleştir - + Force X11 as Graphics Backend Grafik arka ucu olarak X11'i zorla - + Custom frontend Özel ön yüz - + Real applet Gerçek aplikasyon - - - Disabled - Devre Dışı - - - + Never Asla - + On Load Yüklemede - + Always Her zaman - + CPU CPU - + GPU GPU - + CPU Asynchronous Asenkron CPU - + Uncompressed (Best quality) Sıkıştırılmamış (En iyi kalite) - + BC1 (Low quality) BC1 (Düşük kalite) - + BC3 (Medium quality) BC3 (Orta kalite) - - + + Auto Otomatik - + 30 FPS - + 60 FPS - + 90 FPS - + 120 FPS - + Conservative Muhafazakar - + Aggressive Agresif - + Vulkan Vulkan - + OpenGL GLSL - + OpenGL GLASM (Assembly Shaders, NVIDIA Only) - + OpenGL SPIR-V (Experimental, AMD/Mesa Only) - + Null Boş - + Fast Hızlı - - - + + + Accurate Doğru - - - + + + Default Varsayılan - + Unsafe (fast) Güvenli Değil (hızlı) - + Safe (stable) Güvenli (Stabil) - + Immediate - + Balanced Dengeli - + + Strict + + + + Unsafe Güvensiz - + Paranoid (disables most optimizations) Paranoya (çoğu optimizasyonu kapatır) - + Debugging Hata ayıklama - + Dynarmic Dinamik - + NCE NCE - + Borderless Windowed Kenarlıksız Tam Ekran - + Exclusive Fullscreen Ayrılmış Tam Ekran - + No Video Output Video Çıkışı Yok - + CPU Video Decoding CPU Video Decoding - + GPU Video Decoding (Default) GPU Video Decoding (Varsayılan) - + 0.25X (180p/270p) [EXPERIMENTAL] 0.25X (180p/270p) [DENEYSEL] - + 0.5X (360p/540p) [EXPERIMENTAL] 0.5X (360p/540p) [DENEYSEL] - + 0.75X (540p/810p) [EXPERIMENTAL] 0.75X (540p/810p) [DENEYSEL] - + 1X (720p/1080p) 1X (720p/1080p) - + 1.25X (900p/1350p) [EXPERIMENTAL] 1.25X (900p/1350p) [DENEYSEL] - + 1.5X (1080p/1620p) [EXPERIMENTAL] 1.5X (1080p/1620p) [DENEYSEL] - + 2X (1440p/2160p) 2X (1440p/2160p) - + 3X (2160p/3240p) 3X (2160p/3240p) - + 4X (2880p/4320p) 4X (2880p/4320p) - + 5X (3600p/5400p) 5X (3600p/5400p) - + 6X (4320p/6480p) 6X (4320p/6480p) - + 7X (5040p/7560p) 7X (5040p/7560p) - + 8X (5760p/8640p) 8X (5760p/8640p) - + Nearest Neighbor En Yakın Komşu Algoritması - + Bilinear Bilinear - + Bicubic Bicubic - + Gaussian Gausyen - + Lanczos Lanczos - + ScaleForce ScaleForce - + AMD FidelityFX Super Resolution AMD FidelityFX Süper Çözünürlük - + Area Area - + MMPX MMPX - + Zero-Tangent Zero-Tangent - + B-Spline B-Spline - + Mitchell Mitchell - + Spline-1 Spline-1 - + Snapdragon Game Super Resolution - + Snapdragon Game Super Resolution EdgeDir - + None Yok - + FXAA FXAA - + SMAA SMAA - + Default (16:9) Varsayılan (16:9) - + Force 4:3 4:3'e Zorla - + Force 21:9 21:9'a Zorla - + Force 16:10 16:10'a Zorla - + Stretch to Window Ekrana Sığdır - + Automatic Otomatik - + 2x 2x - + 4x 4x - + 8x 8x - + 16x 16x - + Japanese (日本語) Japonca (日本語) - + American English Amerikan İngilizcesi - + French (français) Fransızca (français) - + German (Deutsch) Almanca (Deutsch) - + Italian (italiano) İtalyanca (italiano) - + Spanish (español) İspanyolca (español) - + Chinese Çince - + Korean (한국어) Korece (한국어) - + Dutch (Nederlands) Flemenkçe (Nederlands) - + Portuguese (português) Portekizce (português) - + Russian (Русский) Rusça (Русский) - + Taiwanese Tayvanca - + British English İngiliz İngilizcesi - + Canadian French Kanada Fransızcası - + Latin American Spanish Latin Amerika İspanyolcası - + Simplified Chinese Basitleştirilmiş Çince - + Traditional Chinese (正體中文) Geleneksel Çince (正體中文) - + Brazilian Portuguese (português do Brasil) Brezilya Portekizcesi (português do Brasil) - + Polish (polska) - + Thai (แบบไทย) - - + + Japan Japonya - + USA ABD - + Europe Avrupa - + Australia Avustralya - + China Çin - + Korea Kore - + Taiwan Tayvan - + Auto (%1) Auto select time zone Otomatik (%1) - + Default (%1) Default time zone Varsayılan (%1) - + CET CET - + CST6CDT CST6CDT - + Cuba Küba - + EET EET - + Egypt Mısır - + Eire İrlanda - + EST EST - + EST5EDT EST5EDT - + GB GB - + GB-Eire GB-İrlanda - + GMT GMT - + GMT+0 GMT+0 - + GMT-0 MT-0 - + GMT0 GMT0 - + Greenwich Greenwich - + Hongkong Hong Kong - + HST HST - + Iceland İzlanda - + Iran İran - + Israel İsrail - + Jamaica Jamaika - + Kwajalein Kwajalein - + Libya Libya - + MET MET - + MST MST - + MST7MDT MST7MDT - + Navajo Navaho - + NZ Yeni Zelanda - + NZ-CHAT Chatham Adaları - + Poland Polonya - + Portugal Portekiz - + PRC PRC - + PST8PDT PST8PDT - + ROC ROC - + ROK ROK - + Singapore Singapur - + Turkey Türkiye - + UCT UCT - + Universal Evrensel - + UTC UTC - + W-SU W-SU - + WET WET - + Zulu Zulu - + Mono Mono - + Stereo Stereo - + Surround Surround - + 4GB DRAM (Default) 4GB DRAM (Varsayılan) - + 6GB DRAM (Unsafe) 6GB DRAM (Güvenli Değil) - + 8GB DRAM 8GB DRAM - + 10GB DRAM (Unsafe) 10GB DRAM (Güvenli Değil) - + 12GB DRAM (Unsafe) 12GB DRAM (Güvenli Değil) - + Docked Dock Modu Aktif - + Handheld Taşınabilir + + + + Normal + + - Normal + Boost - Boost - - - - - Overclock - + Always ask (Default) Her zaman sor (Varsayılan) - + Only if game specifies not to stop Sadece oyun durdurulmamasını belirtirse - + Never ask Asla sorma - + Very Small (16 MB) - + Small (32 MB) - + Normal (128 MB) - + Large (256 MB) - + Very Large (512 MB) - + Very Low (4 MB) - + Low (8 MB) - + Normal (16 MB) - + Medium (32 MB) - + High (64 MB) - + Very Low (32) - + Low (64) - + Normal (128) - + Medium (256) Orta (256) - + High (512) Yüksek (512) - + + Disabled + Devre Dışı + + + ExtendedDynamicState 1 Genişletilmiş Dinamik Durum 1 - + ExtendedDynamicState 2 Genişletilmiş Dinamik Durum 2 - + ExtendedDynamicState 3 Genişletilmiş Dinamik Durum 3 - + Tree View - + Grid View @@ -3220,38 +3228,33 @@ Eski kayıt verilerini silmek ister misiniz? Arkaplan Rengi: - + % FSR/SGSR sharpening percentage (e.g. 50%) - - Configure Effects... - - - - + Off Kapalı - + VSync Off VSync Kapalı - + Recommended Önerilen - + On Açık - + VSync On Vsync Açık @@ -4864,130 +4867,6 @@ Once deleted, these can NOT be recovered. Are you 100% sure you want to delete t - - ConfigurePostProcessing - - - Post-Processing Effects - - - - - Changes apply immediately while a game is running. - - - - - Enable post-processing - - - - - Preset: - - - - - Apply - - - - - Reset Values - - - - - Return every effect to the values the preset ships with. - - - - - Save As... - - - - - Save Preset - - - - - Preset name: - - - - - Clear - - - - - Remove every effect in use and deselect the preset. - - - - - Add Effect - - - - - None - - - - - No effects in use. Pick a preset and press Apply, or add effects one by one. - - - - - Custom chain. Pick a preset above and press Apply to replace it. - - - - - Active preset: %1 (modified). Press Reset Values to go back to how it ships. - - - - - Active preset: %1 - - - - - Enabled - - - - - Disabled - - - - - Reset to defaults - - - - - Effect '%1' was not found. - - - - - Effect failed to compile: -%1 - - - - - No usable ReShade FX effects were found. Place .fx files in the post_shaders folder. - - - ConfigureProfileManager @@ -6073,50 +5952,50 @@ Please go to Configure -> System -> Network and make a selection. GRenderWindow - - + + OpenGL not available! OpenGL kullanıma uygun değil! - + OpenGL shared contexts are not supported. OpenGL paylaşılan bağlam desteklenmiyor. - + Eden has not been compiled with OpenGL support. - - - + + + Error while initializing OpenGL! OpenGl başlatılırken bir hata oluştu! - + Your GPU may not support OpenGL, or you do not have the latest graphics driver. GPU'nuz OpenGL desteklemiyor veya güncel bir grafik sürücüsüne sahip değilsiniz. - + Error while initializing OpenGL 4.6! OpenGl 4.6 başlatılırken bir hata oluştu! - + Your GPU may not support OpenGL 4.6, or you do not have the latest graphics driver.<br><br>GL Renderer:<br>%1 GPU'nuz OpenGL 4.6'yı desteklemiyor veya güncel bir grafik sürücüsüne sahip değilsiniz.<br><br>GL Renderer:<br>%1 - + Your GPU may not support one or more required OpenGL extensions. Please ensure you have the latest graphics driver.<br><br>GL Renderer:<br>%1<br><br>Unsupported extensions:<br>%2 GPU'nuz gereken bir yada daha fazla OpenGL eklentisini desteklemiyor Lütfen güncel bir grafik sürücüsüne sahip olduğunuzdan emin olun.<br><br>GL Renderer:<br>%1<br><br> Desteklenmeyen Eklentiler:<br>%2 - + This build doesn't have OpenGL support. @@ -6937,42 +6816,42 @@ Debug Message: Pencere Boyutunu 1080p'ye Sıfırla - + &Multiplayer &Çok Oyunculu - + &Tools &Aletler - + Am&iibo - + Launch &Applet - + &TAS &TAS - + &Create Home Menu Shortcut - + Install &Firmware - + &Help &Yardım @@ -6998,7 +6877,7 @@ Debug Message: - + &Pause &Duraklat @@ -7099,176 +6978,176 @@ Debug Message: - &User Handbook - + Open &Quickstart Guide + &Hızlı Başlangıç Kılavuzunu Aç - + + &FAQ + &SSS + + + &Capture Screenshot &Ekran Görüntüsü Al - + &Album - + &Set Nickname and Owner - + &Delete Game Data - + &Restore Amiibo - + &Format Amiibo - + &Mii Editor - + &Configure TAS... &TAS'i Ayarla... - + Configure C&urrent Game... &Geçerli Oyunu Yapılandır... - - + + &Start B&aşlat - + &Reset &Sıfırla - - + + R&ecord K&aydet - + Open &Controller Menu - + Install Decryption &Keys - + &Home Menu - + &Desktop - + &Application Menu - + &Root Data Folder - + &NAND Folder - + &SDMC Folder - + &Mod Folder - + &Log Folder - + From Folder - + From ZIP - + &Eden Dependencies - + &Data Manager - + &Tree View - + &Grid View - + Game Icon Size - - + + None - + Show Game &Name - - - Show &Performance Overlay - - - Post-Processing &Shaders... + Show &Performance Overlay @@ -7277,737 +7156,722 @@ Debug Message: - + Small (32x32) - + Standard (64x64) - + Large (128x128) - + Full Size (256x256) - + Broken Vulkan Installation Detected Bozuk Vulkan Kurulumu Algılandı - + Vulkan initialization failed during boot. Açılış sırasında Vulkan başlatma işlemi başarısız oldu. - + Running a game TRANSLATORS: This string is shown to the user to explain why yuzu needs to prevent the computer from sleeping Bir oyun çalıştırılıyor - + Loading Web Applet... Web Uygulaması Yükleniyor... - - + + Disable Web Applet Web Uygulamasını Devre Dışı Bırak - + Disabling the web applet can lead to undefined behavior and should only be used with Super Mario 3D All-Stars. Are you sure you want to disable the web applet? (This can be re-enabled in the Debug settings.) - + The amount of shaders currently being built - + The current selected resolution scaling multiplier. - + Current emulation speed. Values higher or lower than 100% indicate emulation is running faster or slower than a Switch. - + How many frames per second the game is currently displaying. This will vary from game to game and scene to scene. - + Time taken to emulate a Switch frame, not counting framelimiting or v-sync. For full-speed emulation this should be at most 16.67 ms. - + Unmute Sesi aç - + Mute Sessize al - + Reset Volume Sesi Sıfırla - - Configure Effects... - - - - + &Clear Recent Files &Son Dosyaları Temizle - + &Continue - + Warning: Outdated Game Format - + You are using the deconstructed ROM directory format for this game, which is an outdated format that has been superseded by others such as NCA, NAX, XCI, or NSP. Deconstructed ROM directories lack icons, metadata, and update support.<br>For an explanation of the various Switch formats Eden supports, out our user handbook. This message will not be shown again. - - + + Error while loading ROM! - + The ROM format is not supported. - + An error occurred initializing the video core. - - This is usually caused by outdated GPU drivers. Please see the log for more details. See: <a href='https://git.eden-emu.dev/eden-emu/eden/src/branch/master/docs/user/HowToAccessLogs.md'>How to access log files</a>. + + Eden has encountered an error while running the video core. This is usually caused by outdated GPU drivers, including integrated ones. Please see the log for more details. For more information on accessing the log, please see the following page: <a href='https://yuzu-mirror.github.io/help/reference/log-files/'>How to Upload the Log File</a>. - + Error while loading ROM! %1 %1 signifies a numeric error code. - + %1<br>Please redump your files or ask on Discord/Stoat for help. %1 signifies an error string. - + An unknown error occurred. Please see the log for more details. - - + + (64-bit) - - + + (32-bit) - - + + %1 %2 %1 is the title name. %2 indicates if the title is 64-bit or 32-bit - + Closing software... - + Save Data - + Mod Data - + Error Opening %1 Folder - - + + Folder does not exist! - + Remove Installed Game Contents? - + Remove Installed Game Update? - + Remove Installed Game DLC? - + Remove Entry - + Delete OpenGL Transferable Shader Cache? - + Delete Vulkan Transferable Shader Cache? - + Delete All Transferable Shader Caches? - + Remove Custom Game Configuration? - + Remove Cache Storage? - + Remove File - + Remove Play Time Data - + Reset play time? - - + + RomFS Extraction Failed! - + There was an error copying the RomFS files or the user cancelled the operation. - + Full - + Skeleton - + Select RomFS Dump Mode - + Please select the how you would like the RomFS dumped.<br>Full will copy all of the files into the new directory while <br>skeleton will only create the directory structure. - + There is not enough free space at %1 to extract the RomFS. Please free up space or select a different dump directory at Emulation > Configure > System > Filesystem > Dump Root - + Extracting RomFS... - - + + Cancel - + RomFS Extraction Succeeded! - + The operation completed successfully. - + Error Opening %1 - + Select Directory - + Properties - + The game properties could not be loaded. - + Switch Executable (%1);;All Files (*.*) %1 is an identifier for the Switch executable file extensions. - + Load File - + Open Extracted ROM Directory - + Invalid Directory Selected - + The directory you have selected does not contain a 'main' file. - + Installable Switch File (*.nca *.nsp *.xci);;Nintendo Content Archive (*.nca);;Nintendo Submission Package (*.nsp);;NX Cartridge Image (*.xci) - + Install Files - + %n file(s) remaining - + Installing file "%1"... - - + + Install Results - + To avoid possible conflicts, we discourage users from installing base games to the NAND. Please, only use this feature to install updates and DLC. - + %n file(s) were newly installed - + %n file(s) were overwritten - + %n file(s) failed to install - + System Application - + System Archive - + System Application Update - + Firmware Package (Type A) - + Firmware Package (Type B) - + Game - + Game Update - + Game DLC - + Delta Title - + Select NCA Install Type... - + Please select the type of title you would like to install this NCA as: (In most instances, the default 'Game' is fine.) - + Failed to Install - + The title type you selected for the NCA is invalid. - + File not found - + File "%1" not found - + OK - + Function Disabled - + Compatibility list reporting is currently disabled. Check back later! - + Error opening URL URL açılırken hata oluştu - + Unable to open the URL "%1". - + TAS Recording TAS İşlemi Kaydı - + Overwrite file of player 1? - + Invalid config detected - + Handheld controller can't be used on docked mode. Pro controller will be selected. - - + + Amiibo Amiibo - - + + The current amiibo has been removed Mevcut Amiibo kaldırıldı - + Error - - + + The current game is not looking for amiibos - + Amiibo File (%1);; All Files (*.*) - + Load Amiibo - + Error loading Amiibo data - + The selected file is not a valid amiibo - + The selected file is already on use - + An unknown error occurred - + No firmware available - + Firmware Corrupted Donanım Yazılımı/Firmware Bozuk - + Unknown applet - + Applet doesn't map to a known value. - + Record not found - + Applet not found. Please reinstall firmware. - + Capture Screenshot - + PNG Image (*.png) - + TAS state: Running %1/%2 TAS durumu: %1/%2 Çalışıyor - + TAS state: Recording %1 - + TAS state: Idle %1/%2 - + TAS State: Invalid - + &Stop Running - + Stop R&ecording - + Building: %n shader(s) - + Scale: %1x %1 is the resolution scaling factor Ölçek: %1x - + Speed: %1% / %2% - + Speed: %1% - + Game: %1 FPS - + Frame: %1 ms - + NO AA - - NO FX - - - - - FX - - - - + VOLUME: MUTE - + VOLUME: %1% Volume percentage (e.g. 50%) - + Derivation Components Missing - + Decryption keys are missing. Install them now? - + Wayland Detected! - + Wayland is known to have significant performance issues and mysterious bugs. It's recommended to use X11 instead. @@ -8015,74 +7879,74 @@ Would you like to force it for future launches? - + Use X11 - + Continue with Wayland - + Don't show again - + Restart Required - + Restart Eden to apply the X11 backend. - + Slow - + Turbo - + Unlocked - + Select RomFS Dump Target - + Please select which RomFS you would like to dump. - + Are you sure you want to close Eden? - - - + + + Eden - + Are you sure you want to stop the emulation? Any unsaved progress will be lost. - + The currently running application has requested Eden to not exit. Would you like to bypass this and exit anyway? @@ -9269,275 +9133,275 @@ p, li { white-space: pre-wrap; } - This game may require firmware to function properly, and you don't have any installed. Please install firmware before launching, or press "OK" to launch anyways. + The game you are trying to launch requires firmware to boot or to get past the opening menu. Please <a href='https://yuzu-mirror.github.io/help/quickstart'>dump and install firmware</a>, or press "OK" to launch anyways. - + Installing Firmware... - - - - - + + + + + Cancel - + Firmware Install Failed - + Firmware Install Succeeded - + Firmware integrity verification failed! - - + + Verification failed for the following files: %1 - - + + Verifying integrity... - - - - Integrity verification succeeded! - - + Integrity verification succeeded! + + + + + The operation completed successfully. - - + + Integrity verification failed! - + File contents may be corrupt or missing. - + Integrity verification couldn't be performed - + Firmware installation cancelled, firmware may be in a bad state or corrupted. File contents could not be checked for validity. - + Select Dumped Keys Location - + Decryption Keys install succeeded - + Decryption Keys install failed - + Orphaned Profiles Detected! - + UNEXPECTED BAD THINGS MAY HAPPEN IF YOU DON'T READ THIS!<br>Eden has detected the following save directories with no attached profile:<br>%1<br><br>The following profiles are valid:<br>%2<br><br>Click "OK" to open your save folder and fix up your profiles.<br>Hint: copy the contents of the largest or last-modified folder elsewhere, delete all orphaned profiles, and move your copied contents to the good profile.<br><br>Still confused? See the <a href='https://git.eden-emu.dev/eden-emu/eden/src/branch/master/docs/user/Orphaned.md'>help page</a>.<br> - + Really clear data? - + Important data may be lost! - + Are you REALLY sure? - + Once deleted, your data will NOT come back! Only do this if you're 100% sure you want to delete this data. - + Clearing... - + Select Export Location - + %1.zip - - - + + + Zipped Archives (*.zip) - + Exporting data. This may take a while... - + Exporting - + Exported Successfully - + Data was exported successfully. - + Export Cancelled - + Export was cancelled by the user. - + Export Failed - + Ensure you have write permissions on the targeted directory and try again. - + Select Import Location - + Import Warning - + All previous data in this directory will be deleted. Are you sure you wish to proceed? - + Importing data. This may take a while... - + Importing - + Imported Successfully - + Data was imported successfully. - + Import Cancelled - + Import was cancelled by the user. - + Import Failed - + Ensure you have read permissions on the targeted directory and try again. - + Keys not installed - + Install decryption keys and restart Eden before attempting to install firmware. - + Select Dumped Firmware Source Location - + Select Dumped Firmware ZIP - + Firmware cleanup failed - + Failed to clean up extracted firmware cache. Check write permissions in the system temp directory and try again. OS reported error: %1 diff --git a/dist/languages/uk.ts b/dist/languages/uk.ts index fd166bc4f9..b1df1267f4 100644 --- a/dist/languages/uk.ts +++ b/dist/languages/uk.ts @@ -429,14 +429,13 @@ Can help reduce stuttering at lower framerates. CPU Clocks - Тактові частоти ЦП + Raises the clock the emulated CPU reports, which removes some FPS limiters. Weaker CPUs may see reduced performance, and certain games may behave improperly. - Збільшує тактову частоту, про яку повідомляє емульований ЦП, завдяки чому прибираються деякі обмеження частоти кадрів. -На слабших ЦП це може спричинити зменшення продуктивності, а деякі ігри можуть неправильно відтворюватися. + @@ -594,22 +593,12 @@ SMAA забезпечує найкращу якість. FXAA може створювати стабільніше зображення при низьких роздільностях. - - Enable post-processing effects - Увімкнути ефекти постобробки - - - - Applies post-processing effects to the final image. - Застосовує ефекти постобробки до фінального зображення. - - - + Fullscreen Mode: Повноекранний режим: - + The method used to render the window in fullscreen. Borderless offers the best compatibility with the on-screen keyboard that some games request for input. Exclusive fullscreen may offer better performance and better Freesync/Gsync support. @@ -618,12 +607,12 @@ Exclusive fullscreen may offer better performance and better Freesync/Gsync supp «Ексклюзивний повноекранний» може надати кращі продуктивність і підтримку Freesync/Gsync. - + Aspect Ratio: Співвідношення сторін: - + Stretches the renderer to fit the specified aspect ratio. Most games only support 16:9, so modifications are required to get other ratios. Also controls the aspect ratio of captured screenshots. @@ -632,36 +621,36 @@ Also controls the aspect ratio of captured screenshots. Також керує співвідношеням сторін знімків екрана. - + Use persistent pipeline cache Використовувати стійкий кеш конвеєра - + Allows saving shaders to storage for faster loading on following game boots. Disabling it is only intended for debugging. Дозволяє зберігати шейдери на накопичувачі для швидшого завантаження під час наступних запусків гри. Вимкнення цього налаштування задумане лише для зневадження. - + Use asynchronous GPU emulation Використовувати асинхронну емуляцію ГП - + Uses an extra CPU thread for rendering. This option should always remain enabled. Використовує додатковий потік ЦП для візуалізації. Це налаштування повинно завжди залишатися увімкненим. - + NVDEC emulation: Емуляція NVDEC: - + Specifies how videos should be decoded. It can either use the CPU or the GPU for decoding, or perform no decoding at all (black screen on videos). In most cases, GPU decoding provides the best performance. @@ -670,12 +659,12 @@ In most cases, GPU decoding provides the best performance. У більшості випадків декодування за допомогою ГП забезпечує найкращу продуктивність. - + ASTC Decoding Method: Метод декодування ASTC: - + This option controls how ASTC textures should be decoded. CPU: Use the CPU for decoding. GPU: Use the GPU's compute shaders to decode ASTC textures (recommended). @@ -687,12 +676,12 @@ stuttering but may present artifacts. Асинхронно ЦП: Використання ЦП для декодування ASTC-текстур по мірі їх викликів. Повністю усуває затримки декодування ASTC ціною проблем з візуалізацією, поки текстури декодуються. - + ASTC Recompression Method: Метод перестиснення ASTC: - + Most GPUs lack support for ASTC textures and must decompress to anintermediate format: RGBA8. BC1/BC3: The intermediate format will be recompressed to BC1 or BC3 format, saving VRAM but degrading image quality. @@ -700,64 +689,44 @@ BC1/BC3: The intermediate format will be recompressed to BC1 or BC3 format, BC1/BC3: Проміжний формат буде перепаковано у формат BC1 або BC3 для збереження відеопам’яті, але це негатривно вплине на якість зображення. - + Frame Pacing Mode (Vulkan only) Режим виведення кадрів (лише Vulkan) - + Controls how the emulator manages frame pacing to reduce stuttering and make the frame rate smoother and more consistent. Керує тим, як емулятор виконує виведення кадрів, щоб зменшити затримки й забезпечити плавнішу й стабільнішу частоту кадрів. - + VRAM Usage Mode: Режим використання відеопам’яті: - + Selects whether the emulator should prefer to conserve memory or make maximum usage of available video memory for performance. Aggressive mode may impact performance of other applications such as recording software. Це налаштування вибирає, чи повинен емулятор надавати перевагу заощадженню пам’яті, чи по максимуму використовувати доступну відеопам’ять задля продуктивності. Режим «Агресивно» може вплинути на продуктивність інших застосунків, як-от засоби запису. - + Skip CPU Inner Invalidation Пропускати внутрішнє анулювання ЦП - + Skips certain cache invalidations during memory updates, reducing CPU usage and improving latency. This may cause soft-crashes. Пропускає деякі анулювання кешу під час оновлень пам’яті, зменшуючи використання ЦП й виправляючи затримки. Це може спричинити збої. - - GPU Readback Before NCE Invalidation - - - - - Flushes GPU buffer data back to guest memory before NCE invalidates the whole guest page, preserving it while the CPU store proceeds. - - - - - Patch Runtime NROs for NCE - - - - - Applies NCE code patches to runtime-loaded NRO modules.This is required for some games to run correctly. - - - - + VSync Mode: Режим вертикальної синхронізації: - + FIFO (VSync) does not drop frames or exhibit tearing but is limited by the screen refresh rate. FIFO Relaxed allows tearing as it recovers from a slow down. Mailbox can have lower latency than FIFO and does not tear but may drop frames. @@ -768,12 +737,12 @@ Mailbox може мати меншу затримку, ніж FIFO, і не ма Immediate (без синхронізації) показує всі кадри й може створювати розриви. - + Sync Memory Operations Синхронізувати операції з пам’яттю - + Ensures data consistency between compute and memory operations. This option fixes issues in games, but may degrade performance. Unreal Engine 4 games often see the most significant changes thereof. @@ -782,44 +751,44 @@ Unreal Engine 4 games often see the most significant changes thereof. Ігри на Unreal Engine 4 часто зазнають найзначніших змін. - + Enable asynchronous presentation (Vulkan only) Увімкнути асинхронне подання (лише Vulkan) - + Slightly improves performance by moving presentation to a separate CPU thread. Трохи покращує продуктивність завдяки переміщенню подання на окремий потік ЦП. - + Force maximum clocks (Vulkan only) Примусово максимальна тактова частота (лише Vulkan) - + Runs work in the background while waiting for graphics commands to keep the GPU from lowering its clock speed. Виконує роботу у фоновому режимі в очікуванні графічних команд, не даючи змоги ГП знижувати тактову частоту. - + Anisotropic Filtering: Анізотропна фільтрація: - + Controls the quality of texture rendering at oblique angles. Safe to set at 16x on most GPUs. Керує якістю візуалізації текстур під непрямими кутами. Для більшості ГП можна вільно вибирати 16x. - + GPU Mode: Режим ГП: - + Controls the GPU emulation mode. Most games render fine with Fast, but Accurate is still required for some. Particles tend to only render correctly with Accurate mode. @@ -828,70 +797,82 @@ Particles tend to only render correctly with Accurate mode. Частинки зазвичай правильно візуалізуються лише з режимом «Точно». - + DMA Accuracy: Точність DMA: - + Controls the DMA read mode. Unsafe is faster, while Safe is more stable and can fix issues in some games. Default follows the GPU Accuracy setting. - + GPU Fence Behavior: - + Controls the GPU fence synchronization behavior. Immediate is the fastest option, but can introduce some issues. Balanced offers better compatibility and may fix issues in some games. Accurate further improves compatibility at the cost of some performance. -Default follows the GPU Mode setting. +Strict is the slowest option, but can fix issues that require stricter synchronization. +Default follows the GPU Accuracy setting. - + + Enable GPU buffer readback + + + + + Preserves GPU-modified data by reading it back before uploading. +Some games require this to render certain effects properly. + + + + Enable asynchronous shader compilation Увімкнути асинхронну компіляцію шейдерів - + May reduce shader stutter. Може зменшити шейдерні затримки. - + GPU Clocks - + Makes the game believe GPU work finishes faster than it does, so it stops lowering resolution and render distance to fit the Switch's clocks. - + GPU Unswizzle Розпакування за допомогою ГП - + Accelerates BCn 3D texture decoding using GPU compute. Disable if experiencing crashes or graphical glitches. Прискорює декодування 3D-текстур BCn застосовуючи обчислення за допомогою ГП. Вимкніть у разі збоїв або проблем із графікою. - + GPU Unswizzle Max Texture Size Максимальний розмір текстур для розпакування за допомогою ГП - + Sets the maximum size (MiB) for GPU-based texture unswizzling. While the GPU is faster for medium and large textures, the CPU may be more efficient for very small ones. Adjust this to find the balance between GPU acceleration and CPU overhead. @@ -900,48 +881,48 @@ Adjust this to find the balance between GPU acceleration and CPU overhead. - + GPU Unswizzle Stream Size Розмір потоку розпакування за допомогою ГП - + Sets the maximum amount of texture data (in MiB) processed per frame. Higher values can reduce stutter during texture loading but may impact frame consistency. Встановлює максимальний обсяг даних текстур (у МіБ) для обробки на кадр. Вищі значення здатні зменшити затримки під час завантаження текстур, але можуть вплинути на стабільність кадрів. - + GPU Unswizzle Chunk Size Розмір блоків розпакування за допомогою ГП - + Determines the number of depth slices processed in a single dispatch. Increasing this can improve throughput on high-end GPUs but may cause TDR or driver timeouts on weaker hardware. Визначає кількість зрізів глибини, оброблених за одне відправлення. Збільшення здатне покращити пропускну здатність на потужних ГП, але може призвести до TDR або затримок драйвера зі слабшим устаткуванням. - + Use Vulkan pipeline cache Використовувати кеш конвеєра Vulkan - + Enables GPU vendor-specific pipeline cache. This option can improve shader loading time significantly in cases where the Vulkan driver does not store pipeline cache files internally. Вмикає особливий для різних виробників ГП кеш конвеєра. Це налаштування може значно зменшити час завантаження шейдерів у випадках, коли драйвер Vulkan не зберігає власний кеш конвеєра. - + Enable Compute Pipelines (Intel Vulkan Only) Увімкнути обчислювальні конвеєри (лише Intel Vulkan) - + Required by some games. This setting only exists for Intel proprietary drivers and may crash if enabled. Compute pipelines are always enabled on all other drivers. @@ -950,182 +931,194 @@ Compute pipelines are always enabled on all other drivers. Обчислювальні конвеєри завжди увімкнені у всіх інших драйверах. - + Enable Reactive Flushing Увімкнути реактивне очищення - + Uses reactive flushing instead of predictive flushing, allowing more accurate memory syncing. Використовує реактивне очищення замість прогнозованого, забезпечуючи точнішу синхронізацію пам’яті. - + Sync to framerate of video playback Синхронізувати частоту кадрів з відтворенням відео - + Run the game at normal speed during video playback, even when the framerate is unlocked. Відтворювати гру з нормальною швидкістю під час відтворення відео навіть при розблокованій частоті кадрів. - + Barrier feedback loops Бар’єрні цикли відгуку - + Improves rendering of transparency effects in specific games. Покращує візуалізацію ефектів прозорості в деяких іграх. - + Enable buffer history Увімкнути історію буфера - + Enables access to previous buffer states. This option may improve rendering quality and performance consistency in some games. Вмикає доступ до попередніх станів буфера. Цей параметр може покращити якість візуалізації та стабільну продуктивність у деяких іграх. - + Fix bloom effects Виправити ефекти світіння - + Removes bloom in Burnout. Прибирає світіння в Burnout. - + + Enable Legacy Rescale Pass + Увімкнути застаріле масштабування + + + + May fix rescale issues in some games by relying on behavior from the previous implementation. +Legacy behavior workaround that fixes line artifacts on AMD and Intel GPUs, and grey texture flicker on Nvidia GPUs in Luigis Mansion 3. + Може виправити проблеми з масштабуванням в іграх, покладаючись на поведінку з попередньої імплементації. +Застаріле масштабування виправляє артефакти з лініями на ГП від AMD та Intel, а також сіре блимання текстур на ГП від Nvidia в Luigis Mansion 3. + + + Extended Dynamic State Розширений динамічний стан - + Controls the number of features that can be used in Extended Dynamic State. Higher states allow for more features and can increase performance, but may cause additional graphical issues. Керує кількістю функцій, які можна використовувати в «Розширеному динамічному стані». Вищі значення допускають більше функцій і можуть збільшити продуктивність, але можуть спричинити додаткові проблеми з графікою. - + Vertex Input Dynamic State Динамічний стан введення вершин - + Enables vertex input dynamic state feature for better quality and performance. Вмикає можливість динамічного стану введення вершин для кращих якості й продуктивності. - + Sample Shading Шейдинг зразків - + Allows the fragment shader to execute per sample in a multi-sampled fragment instead of once per fragment. Improves graphics quality at the cost of performance. Higher values improve quality but degrade performance. Дозволяє виконувати фрагмент шейдера для кожного зразка в багатозразковому фрагменті замість одного разу для кожного фрагмента. Покращує якість графікі ціною втрати продуктивності. Вищі значення покращують якість, але погіршують продуктивність. - + RNG Seed Початкове значення RNG - + Controls the seed of the random number generator. Mainly used for speedrunning. Керує початковим значення генератора випадкових чисел. Зазвичай використовується в спідранах. - + Device Name Назва пристрою - + The name of the console. Назва консолі. - + Homebrew Args Параметри запуску Homebrew - + Command-line arguments passed to homebrew at launch (e.g. -noglsl). Параметри командного рядка, що передаються Homebrew при запуску (як-от noglsl). - + Custom RTC Date: Користувацька дата RTC: - + This option allows to change the clock of the console. Can be used to manipulate time in games. Це налаштування дозволяє змінити час годинника консолі. Можна використовувати для маніпуляцій із часом в іграх. - + The number of seconds from the current unix time Кількість секунд від поточного unix-часу. - + Language: Мова: - + This option can be overridden when region setting is auto-select Це налаштування може перевизначитися, якщо налаштування регіону вибирається автоматично - + Region: Регіон: - + The region of the console. Регіон консолі. - + Time Zone: Часовий пояс: - + The time zone of the console. Часовий пояс консолі. - + Sound Output Mode: Режим виведення звуку: - + Console Mode: Режим консолі: - + Selects if the console is in Docked or Handheld mode. Games will change their resolution, details and supported controllers and depending on this setting. Setting to Handheld can help improve performance for low end systems. @@ -1134,1026 +1127,1042 @@ Setting to Handheld can help improve performance for low end systems. Налаштування «Портативний» може покращити продуктивність на слабких системах. - + Prompt for user profile on boot Запитувати профіль користувача під час запуску - + Useful if multiple people use the same PC. Корисно, якщо одним комп’ютером користуються кілька користувачів. - + Pause when not in focus Призупиняти, якщо не у фокусі - + Pauses emulation when focusing on other windows. Призупиняє емуляцію при фокусування на інших вікнах. - + Confirm before stopping emulation Підтверджувати зупинку емуляції - + Overrides prompts asking to confirm stopping the emulation. Enabling it bypasses such prompts and directly exits the emulation. Перевизначає запити на підтвердження зупинки емуляції. Увімкнення обходить такі запити й одразу зупиняє емуляцію. - + Hide mouse on inactivity Приховувати курсор миші при бездіяльності - + Hides the mouse after 2.5s of inactivity. Приховує курсор миші після 2,5 с її бездіяльності. - + + Disable controller applet + Вимкнути аплет контролера + + + + Forcibly disables the use of the controller applet in emulated programs. +When a program attempts to open the controller applet, it is immediately closed. + Примусово вимикає використання в емульованих програмах аплета контролера. +Якщо програма спробує відкрити аплет контролера, він одразу закриється. + + + Check for updates Перевіряти оновлення - + Whether or not to check for updates upon startup. Чи перевіряти оновлення при запуску. - + Enable Gamemode Увімкнути ігровий режим - + Force X11 as Graphics Backend Примусово використовувати X11 як графічний бекенд - + Custom frontend Користувацький фронтенд - + Real applet Справжній аплет - - - Disabled - Вимкнено - - - + Never Ніколи - + On Load При завантаженні - + Always Завжди - + CPU ЦП - + GPU ГП - + CPU Asynchronous Асинхронно ЦП - + Uncompressed (Best quality) Без стиснення (Найкраща якість) - + BC1 (Low quality) ВС1 (Низька якість) - + BC3 (Medium quality) ВС3 (Середня якість) - - + + Auto Автоматично - + 30 FPS 30 к/с - + 60 FPS 60 к/с - + 90 FPS 90 к/с - + 120 FPS 120 к/с - + Conservative Заощадження - + Aggressive Агресивно - + Vulkan Vulkan - + OpenGL GLSL OpenGL GLSL - + OpenGL GLASM (Assembly Shaders, NVIDIA Only) OpenGL GLASM (асемблерні шейдери, лише NVIDIA) - + OpenGL SPIR-V (Experimental, AMD/Mesa Only) OpenGL SPIR-V (експериментально, лише AMD/Mesa) - + Null Нічого - + Fast Швидко - - - + + + Accurate Точно - - - + + + Default Стандартно - + Unsafe (fast) Небезпечно (швидко) - + Safe (stable) Безпечно (стабільно) - + Immediate - + Balanced Збалансовано - + + Strict + + + + Unsafe Небезпечно - + Paranoid (disables most optimizations) Параноїк (вимикає більшість оптимізацій) - + Debugging Зневадження - + Dynarmic Динамічно - + NCE NCE - + Borderless Windowed Безрамкове вікно - + Exclusive Fullscreen Ексклюзивний повноекранний - + No Video Output Виведення відео відсутнє - + CPU Video Decoding Декодування відео на ЦП - + GPU Video Decoding (Default) Декодування відео на ГП (стандатно) - + 0.25X (180p/270p) [EXPERIMENTAL] 0.25X (180p/270p) [ЕКСПЕРИМЕНТАЛЬНО] - + 0.5X (360p/540p) [EXPERIMENTAL] 0.5X (360p/540p) [ЕКСПЕРИМЕНТАЛЬНО] - + 0.75X (540p/810p) [EXPERIMENTAL] 0.75X (540p/810p) [ЕКСПЕРИМЕНТАЛЬНО] - + 1X (720p/1080p) 1X (720p/1080p) - + 1.25X (900p/1350p) [EXPERIMENTAL] 1.25X (900p/1350p) [ЕКСПЕРИМЕНТАЛЬНО] - + 1.5X (1080p/1620p) [EXPERIMENTAL] 1.5X (1080p/1620p) [ЕКСПЕРИМЕНТАЛЬНО] - + 2X (1440p/2160p) 2X (1440p/2160p) - + 3X (2160p/3240p) 3X (2160p/3240p) - + 4X (2880p/4320p) 4X (2880p/4320p) - + 5X (3600p/5400p) 5X (3600p/5400p) - + 6X (4320p/6480p) 6X (4320p/6480p) - + 7X (5040p/7560p) 7X (5040p/7560p) - + 8X (5760p/8640p) 8X (5760p/8640p) - + Nearest Neighbor Найближчий сусід - + Bilinear Білінійний - + Bicubic Бікубічний - + Gaussian Ґаусса - + Lanczos Ланцоша - + ScaleForce ScaleForce - + AMD FidelityFX Super Resolution AMD FidelityFX Super Resolution - + Area Області - + MMPX MMPX - + Zero-Tangent Нульовий тангенс - + B-Spline B-Spline - + Mitchell Мітчелла - + Spline-1 Spline-1 - + Snapdragon Game Super Resolution Snapdragon Game Super Resolution - + Snapdragon Game Super Resolution EdgeDir Snapdragon Game Super Resolution EdgeDir - + None Немає - + FXAA FXAA - + SMAA SMAA - + Default (16:9) Стандартно (16:9) - + Force 4:3 Примусово 4:3 - + Force 21:9 Примусово 21:9 - + Force 16:10 Примусово 16:10 - + Stretch to Window Розтягнути до вікна - + Automatic Автоматично - + 2x 2x - + 4x 4x - + 8x 8x - + 16x 16x - + Japanese (日本語) Японська (日本語) - + American English Американська англійська - + French (français) Французька (français) - + German (Deutsch) Німецька (Deutsch) - + Italian (italiano) Італійська (italiano) - + Spanish (español) Іспанська (español) - + Chinese Китайська - + Korean (한국어) Корейська (한국어) - + Dutch (Nederlands) Нідерландська (Nederlands) - + Portuguese (português) Португальська (português) - + Russian (Русский) Російська (Русский) - + Taiwanese Тайванська - + British English Британська англійська - + Canadian French Канадська французька - + Latin American Spanish Латиноамериканська іспанська - + Simplified Chinese Спрощена китайська - + Traditional Chinese (正體中文) Традиційна китайська (正體中文) - + Brazilian Portuguese (português do Brasil) Бразильська португальська (português do Brasil) - + Polish (polska) Польська (polska) - + Thai (แบบไทย) Тайська (แบบไทย) - - + + Japan Японія - + USA США - + Europe Європа - + Australia Австралія - + China Китай - + Korea Корея - + Taiwan Тайвань - + Auto (%1) Auto select time zone Автоматично (%1) - + Default (%1) Default time zone Стандартно (%1) - + CET CET - + CST6CDT CST6CDT - + Cuba Куба - + EET EET - + Egypt Єгипет - + Eire Ейре - + EST EST - + EST5EDT EST5EDT - + GB GB - + GB-Eire GB-Eire - + GMT GMT - + GMT+0 GMT+0 - + GMT-0 GMT-0 - + GMT0 GMT0 - + Greenwich Гринвіч - + Hongkong Гонконг - + HST HST - + Iceland Ісландія - + Iran Іран - + Israel Ізраїль - + Jamaica Ямайка - + Kwajalein Кваджалейн - + Libya Лівія - + MET MET - + MST MST - + MST7MDT MST7MDT - + Navajo Навахо - + NZ NZ - + NZ-CHAT NZ-CHAT - + Poland Польща - + Portugal Португалія - + PRC PRC - + PST8PDT PST8PDT - + ROC ROC - + ROK ROK - + Singapore Сінгапур - + Turkey Туреччина - + UCT UCT - + Universal Універсальний - + UTC UTC - + W-SU W-SU - + WET WET - + Zulu Зулу - + Mono Моно - + Stereo Стерео - + Surround Об’ємний - + 4GB DRAM (Default) 4GB DRAM (стандартно) - + 6GB DRAM (Unsafe) 6GB DRAM (небезпечно) - + 8GB DRAM 8GB DRAM - + 10GB DRAM (Unsafe) 10GB DRAM (небезпечно) - + 12GB DRAM (Unsafe) 12GB DRAM (небезпечно) - + Docked У докстанції - + Handheld Портативний + + + + Normal + + - Normal + Boost - Boost - - - - - Overclock - + Always ask (Default) Завжди запитувати (стандартно) - + Only if game specifies not to stop Лише якщо гра вказує не зупиняти - + Never ask Ніколи не запитувати - + Very Small (16 MB) Дуже малий (16 МБ) - + Small (32 MB) Малий (32 МБ) - + Normal (128 MB) Нормальний (128 МБ) - + Large (256 MB) Великий (256 МБ) - + Very Large (512 MB) Дуже великий (512 МБ) - + Very Low (4 MB) Дуже низький (4 МБ) - + Low (8 MB) Низький (8 МБ) - + Normal (16 MB) Нормальний (16 МБ) - + Medium (32 MB) Середній (32 МБ) - + High (64 MB) Високий (64 МБ) - + Very Low (32) Дуже низький (32) - + Low (64) Низький (64) - + Normal (128) Нормальний (128) - + Medium (256) Середньо (256) - + High (512) Високо (512) - + + Disabled + Вимкнено + + + ExtendedDynamicState 1 Розширений динамічний стан 1 - + ExtendedDynamicState 2 Розширений динамічний стан 2 - + ExtendedDynamicState 3 Розширений динамічний стан 3 - + Tree View Дерево вибору - + Grid View Таблиця @@ -3265,38 +3274,33 @@ Would you like to delete the old save data? Колір тла: - + % FSR/SGSR sharpening percentage (e.g. 50%) % - - Configure Effects... - - - - + Off Вимкнено - + VSync Off Вертикальну синхронізацію вимкнено - + Recommended Рекомендовано - + On Увімкнено - + VSync On Вертикальну синхронізацію увімкнено @@ -4914,130 +4918,6 @@ Once deleted, these can NOT be recovered. Are you 100% sure you want to delete t [&O] Відкрити у файловому менеджері - - ConfigurePostProcessing - - - Post-Processing Effects - - - - - Changes apply immediately while a game is running. - - - - - Enable post-processing - - - - - Preset: - - - - - Apply - - - - - Reset Values - - - - - Return every effect to the values the preset ships with. - - - - - Save As... - - - - - Save Preset - - - - - Preset name: - - - - - Clear - - - - - Remove every effect in use and deselect the preset. - - - - - Add Effect - - - - - None - - - - - No effects in use. Pick a preset and press Apply, or add effects one by one. - - - - - Custom chain. Pick a preset above and press Apply to replace it. - - - - - Active preset: %1 (modified). Press Reset Values to go back to how it ships. - - - - - Active preset: %1 - - - - - Enabled - - - - - Disabled - - - - - Reset to defaults - - - - - Effect '%1' was not found. - - - - - Effect failed to compile: -%1 - - - - - No usable ReShade FX effects were found. Place .fx files in the post_shaders folder. - - - ConfigureProfileManager @@ -6125,50 +6005,50 @@ Please go to Configure -> System -> Network and make a selection. GRenderWindow - - + + OpenGL not available! OpenGL недоступний! - + OpenGL shared contexts are not supported. Спільні контексти OpenGL не підтримуються. - + Eden has not been compiled with OpenGL support. Eden не скомпільовано з підтримкою OpenGL. - - - + + + Error while initializing OpenGL! Помилка під час ініціалізації OpenGL! - + Your GPU may not support OpenGL, or you do not have the latest graphics driver. Ваш ГП може не підтримувати OpenGL або у вас встановлено застарілий графічний драйвер. - + Error while initializing OpenGL 4.6! Помилка під час ініціалізації OpenGL 4.6! - + Your GPU may not support OpenGL 4.6, or you do not have the latest graphics driver.<br><br>GL Renderer:<br>%1 Ваш ГП може не підтримувати OpenGL 4.6 або у вас встановлено застарілий графічний драйвер.<br><br>Візуалізатор GL:<br>%1 - + Your GPU may not support one or more required OpenGL extensions. Please ensure you have the latest graphics driver.<br><br>GL Renderer:<br>%1<br><br>Unsupported extensions:<br>%2 Ваш ГП може не підтримувати одне або кілька розширень, необхідних для OpenGL. Переконайтеся, що у вас встановлено останній графічний драйвер.<br><br>Візуалізатор GL:<br>%1<br><br>Непідтримувані розширення:<br>%2 - + This build doesn't have OpenGL support. Ця збірка не підтримує OpenGL. @@ -6990,42 +6870,42 @@ Debug Message: Скинути розмір вікна до 1080p - + &Multiplayer [&M] Багатоосібна гра - + &Tools [&T] Інструменти - + Am&iibo [&I] Amiibo - + Launch &Applet [&A] Запустити аплет - + &TAS [&T] TAS - + &Create Home Menu Shortcut [&C] Створити ярлик меню-домівки - + Install &Firmware [&F] Встановити прошивку - + &Help [&H] Допомога @@ -7051,7 +6931,7 @@ Debug Message: - + &Pause [&P] Призупинити @@ -7152,583 +7032,578 @@ Debug Message: - &User Handbook - + Open &Quickstart Guide + [&Q] Відкрити посібник користувача - + + &FAQ + [&F] ЧаПи + + + &Capture Screenshot [&C] Зробити знімок екрана - + &Album [&A] Альбом - + &Set Nickname and Owner [&S] Указати псевдонім і власника - + &Delete Game Data [&D] Видалити дані гри - + &Restore Amiibo [&R] Відновити amiibo - + &Format Amiibo [&F] Форматувати amiibo - + &Mii Editor [&M] Редактор Mii - + &Configure TAS... [&C] Налаштувати TAS... - + Configure C&urrent Game... [&U] Налаштувати поточну гру... - - + + &Start [&S] Запустити - + &Reset [&S] Скинути - - + + R&ecord [&E] Запис - + Open &Controller Menu [&C] Відкрити меню контролерів - + Install Decryption &Keys [&K] Встановити ключі дешифрування - + &Home Menu [&H] Меню-домівка - + &Desktop [&D] Стільниця - + &Application Menu [&A] Меню застосунків - + &Root Data Folder [&R] Коренева тека даних - + &NAND Folder [&N] Тека NAND - + &SDMC Folder [&S] Тека SDMC - + &Mod Folder [&M] Тека модів - + &Log Folder [&L] Тека журналу - + From Folder З теки - + From ZIP Із ZIP - + &Eden Dependencies [&E] Залежності Eden - + &Data Manager [&D] Керування даними - + &Tree View [&T] Дерево вибору - + &Grid View [&G] Таблиця - + Game Icon Size Розмір значків ігор - - + + None Жодного - + Show Game &Name [&N] Показати назву гри - + Show &Performance Overlay [&P] Показати оверлей продуктивності - - - Post-Processing &Shaders... - - &Carousel View - + Small (32x32) Маленький (32х32) - + Standard (64x64) Стандартний (64х64) - + Large (128x128) Великий (128х128) - + Full Size (256x256) Повнорозмірний (256х256) - + Broken Vulkan Installation Detected Виявлено пошкоджене встановлення Vulkan - + Vulkan initialization failed during boot. Не вдалося ініціалізувати Vulkan під час запуску. - + Running a game TRANSLATORS: This string is shown to the user to explain why yuzu needs to prevent the computer from sleeping Запущено гру - + Loading Web Applet... Завантаження вебаплета... - - + + Disable Web Applet Вимкнути вебаплет - + Disabling the web applet can lead to undefined behavior and should only be used with Super Mario 3D All-Stars. Are you sure you want to disable the web applet? (This can be re-enabled in the Debug settings.) Вимкнення вебапплета може призвести до несподіваної поведінки, і це слід робити лише для Super Mario 3D All-Stars. Ви впевнені, що хочете вимкнути вебапплет? (Його можна знову увімкнути в налаштуваннях зневадження.) - + The amount of shaders currently being built Кількість наразі створених шейдерів - + The current selected resolution scaling multiplier. Наразі вибраний множник масштабування роздільності. - + Current emulation speed. Values higher or lower than 100% indicate emulation is running faster or slower than a Switch. Поточна швидкість емуляції. Значення вище або нижче 100% вказують на те, що емуляція йде швидше або повільніше, ніж на Switch. - + How many frames per second the game is currently displaying. This will vary from game to game and scene to scene. Частота кадрів, яку наразі показує гра. Значення змінюватиметься залежно від гри та з кожною сценою. - + Time taken to emulate a Switch frame, not counting framelimiting or v-sync. For full-speed emulation this should be at most 16.67 ms. Час, потрібний для емуляції 1 кадру Switch, не враховуючи обмеження частоти кадрів або вертикальну синхронізацію. Для повношвидкісної емуляції значення повинно бути не вище 16,67 мс. - + Unmute Увімкнути звук - + Mute Вимкнути звук - + Reset Volume Скинути гучність - - Configure Effects... - - - - + &Clear Recent Files [&C] Очистити нещодавні файли - + &Continue [&C] Продовжити - + Warning: Outdated Game Format Увага: Застарілий формат гри - + You are using the deconstructed ROM directory format for this game, which is an outdated format that has been superseded by others such as NCA, NAX, XCI, or NSP. Deconstructed ROM directories lack icons, metadata, and update support.<br>For an explanation of the various Switch formats Eden supports, out our user handbook. This message will not be shown again. Для цієї гри ви використовуєте формат теки з деконструйованим ROM, який є застарілим форматом, заміненим на інші, як-от NCA, NAX, XCI, або NSP. У тек із деконструйованими ROM немає значків, метаданих, а також вони не підтримують оновлення.<br>Для подробиць стосовно різноманітних форматів Switch, які підтримує Eden, ознайомтеся з нашим посібником користувача. Це повідомлення не буде показано знову. - - + + Error while loading ROM! Помилка під час завантаження ROM! - + The ROM format is not supported. Непідтримуваний формат ROM. - + An error occurred initializing the video core. Сталася помилка під час ініціалізації відеоядра. - - This is usually caused by outdated GPU drivers. Please see the log for more details. See: <a href='https://git.eden-emu.dev/eden-emu/eden/src/branch/master/docs/user/HowToAccessLogs.md'>How to access log files</a>. - + + Eden has encountered an error while running the video core. This is usually caused by outdated GPU drivers, including integrated ones. Please see the log for more details. For more information on accessing the log, please see the following page: <a href='https://yuzu-mirror.github.io/help/reference/log-files/'>How to Upload the Log File</a>. + В Eden сталася помилка під час роботи відеоядра. Зазвичай це відбувається через застарілі драйвери ГП, зокрема інтегрованих. Для подробиць перегляньте журнал. Для додаткової інформації стосовно доступу до журналу перегляньте таку сторінку: <a href='https://yuzu-mirror.github.io/help/reference/log-files/'>Як відвантажити файл журналу</a>. - + Error while loading ROM! %1 %1 signifies a numeric error code. Помилка під час завантаження ROM! %1 - + %1<br>Please redump your files or ask on Discord/Stoat for help. %1 signifies an error string. %1<br>Створіть новий дамп файлів або зверніться по допомогу в Discord/Stoat. - + An unknown error occurred. Please see the log for more details. Сталася невідома помилка. Ознайомтеся з журналом, щоб дізнатися подробиці. - - + + (64-bit) (64-бітовий) - - + + (32-bit) (32-бітовий) - - + + %1 %2 %1 is the title name. %2 indicates if the title is 64-bit or 32-bit %1 %2 - + Closing software... Закриття програмного засобу... - + Save Data Дані збережень - + Mod Data Дані модів - + Error Opening %1 Folder Помилка під час відкриття теки «%1» - - + + Folder does not exist! Теки не існує! - + Remove Installed Game Contents? Вилучити встановлений вміст гри? - + Remove Installed Game Update? Вилучити встановлені оновлення гри? - + Remove Installed Game DLC? Вилучити встановлені доповнення гри? - + Remove Entry Вилучити запис - + Delete OpenGL Transferable Shader Cache? Видалити переміщуваний кеш шейдерів OpenGL? - + Delete Vulkan Transferable Shader Cache? Видалити переміщуваний кеш шейдерів Vulkan? - + Delete All Transferable Shader Caches? Видалити весь переміщуваний кеш шейдерів? - + Remove Custom Game Configuration? Вилучити користувацькі налаштування гри? - + Remove Cache Storage? Вилучити сховище кешу? - + Remove File Вилучити файл - + Remove Play Time Data Вилучити дані награного часу - + Reset play time? Скинути награний час? - - + + RomFS Extraction Failed! Не вдалося видобути RomFS! - + There was an error copying the RomFS files or the user cancelled the operation. Під час копіювання файлів RomFS сталася помилка або користувач скасував операцію. - + Full Повний - + Skeleton Скелет - + Select RomFS Dump Mode Виберіть режим створення дампу RomFS - + Please select the how you would like the RomFS dumped.<br>Full will copy all of the files into the new directory while <br>skeleton will only create the directory structure. Виберіть, як ви хочете виконати дамп RomFS <br>Повний скопіює всі файли до нової теки, тоді як <br>скелет створить лише структуру тек. - + There is not enough free space at %1 to extract the RomFS. Please free up space or select a different dump directory at Emulation > Configure > System > Filesystem > Dump Root За адресою «%1» недостатньо вільного місця для видобування RomFS. Звільніть місце або виберіть іншу теку для створення дампу в «Емуляція» → «Налаштувати» → «Система» → «Файлова система» → «Коренева тека дампів». - + Extracting RomFS... Видобування RomFS... - - + + Cancel Скасувати - + RomFS Extraction Succeeded! RomFS видобуто успішно! - + The operation completed successfully. Операцію успішно виконано. - + Error Opening %1 Помилка під час відкриття «%1» - + Select Directory Вибрати теку - + Properties Властивості - + The game properties could not be loaded. Неможливо завантажити властивості гри. - + Switch Executable (%1);;All Files (*.*) %1 is an identifier for the Switch executable file extensions. Виконуваний файл Switch (%1);;Усі файли (*.*) - + Load File Завантажити файл - + Open Extracted ROM Directory Відкрити теку видобутого ROM - + Invalid Directory Selected Вибрано неправильну теку - + The directory you have selected does not contain a 'main' file. Вибрана тека не містить файлу «main». - + Installable Switch File (*.nca *.nsp *.xci);;Nintendo Content Archive (*.nca);;Nintendo Submission Package (*.nsp);;NX Cartridge Image (*.xci) Встановлюваний файл Switch (*.nca, *.nsp, *.xci);;Архів вмісту Nintendo (*.nca);;Пакет подання Nintendo (*.nsp);;Образ картриджа NX (*.xci) - + Install Files Встановити файли - + %n file(s) remaining Лишився 1 файлЛишилося %n файлиЛишилося %n файлівЛишилося %n файлів - + Installing file "%1"... Встановлення файлу «%1»... - - + + Install Results Результати встановлення - + To avoid possible conflicts, we discourage users from installing base games to the NAND. Please, only use this feature to install updates and DLC. Щоб уникнути можливих конфліктів, ми не радимо користувачам встановлювати ігри в NAND. Користуйтеся цією функцією лише для встановлення оновлень і доповнень. - + %n file(s) were newly installed Щойно встановлено %n файл @@ -7738,7 +7613,7 @@ Please, only use this feature to install updates and DLC. - + %n file(s) were overwritten Перезаписано %n файл @@ -7748,7 +7623,7 @@ Please, only use this feature to install updates and DLC. - + %n file(s) failed to install Не вдалося встановити %n файл @@ -7758,324 +7633,314 @@ Please, only use this feature to install updates and DLC. - + System Application Системний застосунок - + System Archive Системний архів - + System Application Update Оновлення системного застосунку - + Firmware Package (Type A) Пакет прошивки (Тип А) - + Firmware Package (Type B) Пакет прошивки (Тип Б) - + Game Гра - + Game Update Оновлення гри - + Game DLC Доповнення гри - + Delta Title Проєкт «Дельта» - + Select NCA Install Type... Виберіть тип встановлення NCA... - + Please select the type of title you would like to install this NCA as: (In most instances, the default 'Game' is fine.) Виберіть тип проєкту, який ви хочете встановити для цього NCA: (У більшості випадків підходить стандартний вибір «Гра».) - + Failed to Install Не вдалося встановити - + The title type you selected for the NCA is invalid. Тип проєкту, який ви вибрали для NCA, неправильний. - + File not found Файл не виявлено - + File "%1" not found Файл «%1» не виявлено - + OK Гаразд - + Function Disabled Функцію вимкнену - + Compatibility list reporting is currently disabled. Check back later! Звітування для переліку сумісності наразі вимкнено. Зазирніть пізніше! - + Error opening URL Помилка під час відкриття URL - + Unable to open the URL "%1". Не вдалося відкрити URL: «%1». - + TAS Recording Записування TAS - + Overwrite file of player 1? Перезаписати файл гравця 1? - + Invalid config detected Виявлено неправильне налаштування - + Handheld controller can't be used on docked mode. Pro controller will be selected. Портативний контролер неможливо використовувати в режимі докстанції. Буде вибрано контролер Pro. - - + + Amiibo Amiibo - - + + The current amiibo has been removed Поточний amiibo вилучено - + Error Помилка - - + + The current game is not looking for amiibos Поточна гра не очікує amiibo - + Amiibo File (%1);; All Files (*.*) Файл amiibo (%1);; Усі файли (*.*) - + Load Amiibo Завантажити amiibo - + Error loading Amiibo data Помилка під час завантаження даних amiibo - + The selected file is not a valid amiibo Вибраний файл не є дійсним amiibo - + The selected file is already on use Вибраний файл уже використовується - + An unknown error occurred Сталася невідома помилка - + No firmware available Немає доступних прошивок - + Firmware Corrupted Прошивка пошкоджена - + Unknown applet Невідомий аплет - + Applet doesn't map to a known value. Аплет не призначено до відомого значення. - + Record not found Запис не виявлено - + Applet not found. Please reinstall firmware. Аплет не виявлено. Перевстановіть прошивку. - + Capture Screenshot Зробити знімок екрана - + PNG Image (*.png) Зображення PNG (*.png) - + TAS state: Running %1/%2 Стан TAS: Працює %1/%2 - + TAS state: Recording %1 Стан TAS: Триває запис %1 - + TAS state: Idle %1/%2 Стан TAS: Бездіяльність %1/%2 - + TAS State: Invalid Стан TAS: Неправильний - + &Stop Running [&S] Зупинити - + Stop R&ecording [&E] Зупинити запис - + Building: %n shader(s) Компіляція: %n шейдерКомпіляція: %n шейдериКомпіляція: %n шейдерівКомпіляція: %n шейдерів - + Scale: %1x %1 is the resolution scaling factor Масштаб: %1x - + Speed: %1% / %2% Швидкість: %1% / %2% - + Speed: %1% Швидкість: %1% - + Game: %1 FPS Гра: %1 к/с - + Frame: %1 ms Кадр: %1 мс - + NO AA БЕЗ ЗГЛАДЖУВАННЯ - - NO FX - - - - - FX - - - - + VOLUME: MUTE ГУЧНІСТЬ: ВИМКНЕНО - + VOLUME: %1% Volume percentage (e.g. 50%) ГУЧНІСТЬ: %1% - + Derivation Components Missing Відсутні компоненти виведення - + Decryption keys are missing. Install them now? Відсутні ключі шифрування. Встановити їх зараз? - + Wayland Detected! Виявлено Wayland! - + Wayland is known to have significant performance issues and mysterious bugs. It's recommended to use X11 instead. @@ -8086,74 +7951,74 @@ Would you like to force it for future launches? Хочете примусово увімкнути його для наступних запусків? - + Use X11 Використовувати X11 - + Continue with Wayland Продовжити з Wayland - + Don't show again Не показувати знову - + Restart Required Потрібен перезапуск - + Restart Eden to apply the X11 backend. Перезапуск Eden для застосування бекенду X11. - + Slow Сповільнення - + Turbo Прискорення - + Unlocked Розблоковано - + Select RomFS Dump Target Виберіть розташування для створення дампу RomFS - + Please select which RomFS you would like to dump. Виберіть, який дамп RomFS ви хочете створити. - + Are you sure you want to close Eden? Ви впевнені, що хочете закрити Eden? - - - + + + Eden Eden - + Are you sure you want to stop the emulation? Any unsaved progress will be lost. Ви впевнені, що хочете зупинити емуляцію? Увесь незбережений поступ буде втрачено. - + The currently running application has requested Eden to not exit. Would you like to bypass this and exit anyway? @@ -9355,41 +9220,41 @@ p, li { white-space: pre-wrap; } - This game may require firmware to function properly, and you don't have any installed. Please install firmware before launching, or press "OK" to launch anyways. - + The game you are trying to launch requires firmware to boot or to get past the opening menu. Please <a href='https://yuzu-mirror.github.io/help/quickstart'>dump and install firmware</a>, or press "OK" to launch anyways. + Гра, яку ви намагаєтеся запустити, потребує прошивку, щоб запуститися або пройти меню запуску. <a href='https://yuzu-mirror.github.io/help/quickstart'>Створіть дамп і встановіть прошивку</a> або натисніть «Гаразд», щоб однаково запустити. - + Installing Firmware... Встановлення прошивки... - - - - - + + + + + Cancel Скасувати - + Firmware Install Failed Не вдалося встановити прошивку - + Firmware Install Succeeded Прошивку успішно встановлено - + Firmware integrity verification failed! Не вдалося перевірити цілісність прошивки! - - + + Verification failed for the following files: %1 @@ -9398,235 +9263,235 @@ p, li { white-space: pre-wrap; } %1 - - + + Verifying integrity... Перевірка цілісності... - - + + Integrity verification succeeded! Перевірка цілісності успішна! - - + + The operation completed successfully. Операцію успішно завершено. - - + + Integrity verification failed! Не вдалося перевірити цілісність! - + File contents may be corrupt or missing. Файли вмісту можуть бути пошкоджені або відсутні. - + Integrity verification couldn't be performed Неможливо виконати перевірку цілісності - + Firmware installation cancelled, firmware may be in a bad state or corrupted. File contents could not be checked for validity. Встановлення прошивки скасовано. Можливо, прошивка в поганому стані або пошкоджена. Неможливо перевірити на дійсність файли вмісту. - + Select Dumped Keys Location Виберіть розатшування дампу ключів - + Decryption Keys install succeeded Ключі дешифрування успішно встановлено - + Decryption Keys install failed Не вдалося встановити ключі дешифрування - + Orphaned Profiles Detected! Виявлено покинуті профілі! - + UNEXPECTED BAD THINGS MAY HAPPEN IF YOU DON'T READ THIS!<br>Eden has detected the following save directories with no attached profile:<br>%1<br><br>The following profiles are valid:<br>%2<br><br>Click "OK" to open your save folder and fix up your profiles.<br>Hint: copy the contents of the largest or last-modified folder elsewhere, delete all orphaned profiles, and move your copied contents to the good profile.<br><br>Still confused? See the <a href='https://git.eden-emu.dev/eden-emu/eden/src/branch/master/docs/user/Orphaned.md'>help page</a>.<br> ЯКЩО ВИ ЦЕ НЕ ПРОЧИТАЄТЕ, МОЖУТЬ СТАТИСЯ НЕОЧІКУВАНІ ПОГАНІ РЕЧІ!<br>Eden виявив такі теки збережень без прикріпленого профілю:<br>%1<br><br>Є такі дійсні профілі:<br>%2<br><br>Натисніть «ОК», щоб відкрити теку збережень і полагодити свої профілі.<br>Порада: скопіюйте у будь-яке інше місце вміст найбільшої теки, у якій нещодавно були зміни, видаліть профілі, що лишилися та перемістіть скопійований вміст до провильного профілю.<br><br>Досі не розумієте, що робити? Перегляньте <a href='https://git.eden-emu.dev/eden-emu/eden/src/branch/master/docs/user/Orphaned.md'>сторінку допомоги</a>.<br> - + Really clear data? Дійсно очистити дані? - + Important data may be lost! Може бути втрачено важливі дані! - + Are you REALLY sure? Ви ДІЙСНО впевнені? - + Once deleted, your data will NOT come back! Only do this if you're 100% sure you want to delete this data. Після видалення ваші дані буде НЕМОЖЛИВО повернути! Виконуйте цю дію, лише якщо ви на 100% упевнені, що хочете видалити ці дані. - + Clearing... Очищення... - + Select Export Location Виберіть розташування для експортування - + %1.zip %1.zip - - - + + + Zipped Archives (*.zip) Zip-архіви (*.zip) - + Exporting data. This may take a while... Експортування даних. Це може тривати певний час... - + Exporting Експортування - + Exported Successfully Успішно експортовано - + Data was exported successfully. Дані успішно експортовано. - + Export Cancelled Експортування скасовано - + Export was cancelled by the user. Експортування скасовано користувачем. - + Export Failed Не вдалося експортувати - + Ensure you have write permissions on the targeted directory and try again. Запевніться, що у вас є дозволи на записування до вказаної теки й спробуйте знову. - + Select Import Location Виберіть розташування для імпортування - + Import Warning Попередження щодо імпортування - + All previous data in this directory will be deleted. Are you sure you wish to proceed? Усі попередні в цій теці будуть видалені. Ви впевнені, що хочете продовжити? - + Importing data. This may take a while... Імпортування даних. Це може тривати певний час... - + Importing Імпортування - + Imported Successfully Успішно імпортовано - + Data was imported successfully. Дані успішно імпортовано. - + Import Cancelled Імпортування скасовано - + Import was cancelled by the user. Імпортування скасовано користувачем. - + Import Failed Не вдалося імпортувати - + Ensure you have read permissions on the targeted directory and try again. Запевніться, що у вас є дозволи на читання зі вказаної теки й спробуйте знову. - + Keys not installed Ключі не встановлено - + Install decryption keys and restart Eden before attempting to install firmware. Встановіть ключі дешифрування та перезапустіть Eden, перш ніж спробувати встановити прошивку. - + Select Dumped Firmware Source Location Виберіть розташування дампу прошивки - + Select Dumped Firmware ZIP Виберіть ZIP із дампом прошивки - + Firmware cleanup failed Не вдалося очистити прошивку - + Failed to clean up extracted firmware cache. Check write permissions in the system temp directory and try again. OS reported error: %1 diff --git a/dist/languages/vi.ts b/dist/languages/vi.ts index f0a7e591bd..8821619815 100644 --- a/dist/languages/vi.ts +++ b/dist/languages/vi.ts @@ -571,80 +571,70 @@ FXAA can produce a more stable picture in lower resolutions. - - Enable post-processing effects - - - - - Applies post-processing effects to the final image. - - - - + Fullscreen Mode: Chế độ toàn màn hình: - + The method used to render the window in fullscreen. Borderless offers the best compatibility with the on-screen keyboard that some games request for input. Exclusive fullscreen may offer better performance and better Freesync/Gsync support. - + Aspect Ratio: Tỉ lệ khung hình: - + Stretches the renderer to fit the specified aspect ratio. Most games only support 16:9, so modifications are required to get other ratios. Also controls the aspect ratio of captured screenshots. - + Use persistent pipeline cache - + Allows saving shaders to storage for faster loading on following game boots. Disabling it is only intended for debugging. - + Use asynchronous GPU emulation - + Uses an extra CPU thread for rendering. This option should always remain enabled. - + NVDEC emulation: Giả lập NVDEC: - + Specifies how videos should be decoded. It can either use the CPU or the GPU for decoding, or perform no decoding at all (black screen on videos). In most cases, GPU decoding provides the best performance. - + ASTC Decoding Method: - + This option controls how ASTC textures should be decoded. CPU: Use the CPU for decoding. GPU: Use the GPU's compute shaders to decode ASTC textures (recommended). @@ -653,75 +643,55 @@ stuttering but may present artifacts. - + ASTC Recompression Method: - + Most GPUs lack support for ASTC textures and must decompress to anintermediate format: RGBA8. BC1/BC3: The intermediate format will be recompressed to BC1 or BC3 format, saving VRAM but degrading image quality. - + Frame Pacing Mode (Vulkan only) - + Controls how the emulator manages frame pacing to reduce stuttering and make the frame rate smoother and more consistent. - + VRAM Usage Mode: - + Selects whether the emulator should prefer to conserve memory or make maximum usage of available video memory for performance. Aggressive mode may impact performance of other applications such as recording software. - + Skip CPU Inner Invalidation - + Skips certain cache invalidations during memory updates, reducing CPU usage and improving latency. This may cause soft-crashes. - - GPU Readback Before NCE Invalidation - - - - - Flushes GPU buffer data back to guest memory before NCE invalidates the whole guest page, preserving it while the CPU store proceeds. - - - - - Patch Runtime NROs for NCE - - - - - Applies NCE code patches to runtime-loaded NRO modules.This is required for some games to run correctly. - - - - + VSync Mode: Chế độ Vsync: - + FIFO (VSync) does not drop frames or exhibit tearing but is limited by the screen refresh rate. FIFO Relaxed allows tearing as it recovers from a slow down. Mailbox can have lower latency than FIFO and does not tear but may drop frames. @@ -729,1371 +699,1409 @@ Immediate (no synchronization) presents whatever is available and can exhibit te - + Sync Memory Operations - + Ensures data consistency between compute and memory operations. This option fixes issues in games, but may degrade performance. Unreal Engine 4 games often see the most significant changes thereof. - + Enable asynchronous presentation (Vulkan only) Bật hiển thị bất đồng bộ (chỉ cho Vulkan) - + Slightly improves performance by moving presentation to a separate CPU thread. - + Force maximum clocks (Vulkan only) Buộc chạy ở xung nhịp tối đa (chỉ cho Vulkan) - + Runs work in the background while waiting for graphics commands to keep the GPU from lowering its clock speed. Chạy các công việc trong nền trong khi đang chờ lệnh đồ họa để giữ cho GPU không giảm xung nhịp. - + Anisotropic Filtering: Lọc bất đẳng hướng: - + Controls the quality of texture rendering at oblique angles. Safe to set at 16x on most GPUs. - + GPU Mode: - + Controls the GPU emulation mode. Most games render fine with Fast, but Accurate is still required for some. Particles tend to only render correctly with Accurate mode. - + DMA Accuracy: - + Controls the DMA read mode. Unsafe is faster, while Safe is more stable and can fix issues in some games. Default follows the GPU Accuracy setting. - + GPU Fence Behavior: - + Controls the GPU fence synchronization behavior. Immediate is the fastest option, but can introduce some issues. Balanced offers better compatibility and may fix issues in some games. Accurate further improves compatibility at the cost of some performance. -Default follows the GPU Mode setting. +Strict is the slowest option, but can fix issues that require stricter synchronization. +Default follows the GPU Accuracy setting. - + + Enable GPU buffer readback + + + + + Preserves GPU-modified data by reading it back before uploading. +Some games require this to render certain effects properly. + + + + Enable asynchronous shader compilation - + May reduce shader stutter. - + GPU Clocks - + Makes the game believe GPU work finishes faster than it does, so it stops lowering resolution and render distance to fit the Switch's clocks. - + GPU Unswizzle - + Accelerates BCn 3D texture decoding using GPU compute. Disable if experiencing crashes or graphical glitches. - + GPU Unswizzle Max Texture Size - + Sets the maximum size (MiB) for GPU-based texture unswizzling. While the GPU is faster for medium and large textures, the CPU may be more efficient for very small ones. Adjust this to find the balance between GPU acceleration and CPU overhead. - + GPU Unswizzle Stream Size - + Sets the maximum amount of texture data (in MiB) processed per frame. Higher values can reduce stutter during texture loading but may impact frame consistency. - + GPU Unswizzle Chunk Size - + Determines the number of depth slices processed in a single dispatch. Increasing this can improve throughput on high-end GPUs but may cause TDR or driver timeouts on weaker hardware. - + Use Vulkan pipeline cache Dùng bộ nhớ đệm pipeline Vulkan - + Enables GPU vendor-specific pipeline cache. This option can improve shader loading time significantly in cases where the Vulkan driver does not store pipeline cache files internally. - + Enable Compute Pipelines (Intel Vulkan Only) - + Required by some games. This setting only exists for Intel proprietary drivers and may crash if enabled. Compute pipelines are always enabled on all other drivers. - + Enable Reactive Flushing Bật xả tương ứng - + Uses reactive flushing instead of predictive flushing, allowing more accurate memory syncing. - + Sync to framerate of video playback Đồng bộ hóa với tốc độ khung hình khi phát video - + Run the game at normal speed during video playback, even when the framerate is unlocked. Chạy game với tốc độ bình thường trong quá trình phát video, ngay cả khi tốc độ khung hình được mở khóa. - + Barrier feedback loops Vòng lặp phản hồi rào cản - + Improves rendering of transparency effects in specific games. Cải thiện hiệu quả kết xuất của hiệu ứng trong suốt trong một số game. - + Enable buffer history - + Enables access to previous buffer states. This option may improve rendering quality and performance consistency in some games. - + Fix bloom effects - + Removes bloom in Burnout. - + + Enable Legacy Rescale Pass + + + + + May fix rescale issues in some games by relying on behavior from the previous implementation. +Legacy behavior workaround that fixes line artifacts on AMD and Intel GPUs, and grey texture flicker on Nvidia GPUs in Luigis Mansion 3. + + + + Extended Dynamic State - + Controls the number of features that can be used in Extended Dynamic State. Higher states allow for more features and can increase performance, but may cause additional graphical issues. - + Vertex Input Dynamic State - + Enables vertex input dynamic state feature for better quality and performance. - + Sample Shading - + Allows the fragment shader to execute per sample in a multi-sampled fragment instead of once per fragment. Improves graphics quality at the cost of performance. Higher values improve quality but degrade performance. - + RNG Seed Hạt giống RNG - + Controls the seed of the random number generator. Mainly used for speedrunning. - + Device Name Tên thiết bị - + The name of the console. - + Homebrew Args - + Command-line arguments passed to homebrew at launch (e.g. -noglsl). - + Custom RTC Date: - + This option allows to change the clock of the console. Can be used to manipulate time in games. - + The number of seconds from the current unix time - + Language: - + This option can be overridden when region setting is auto-select - + Region: Vùng: - + The region of the console. - + Time Zone: Múi giờ: - + The time zone of the console. - + Sound Output Mode: Chế độ đầu ra âm thanh: - + Console Mode: - + Selects if the console is in Docked or Handheld mode. Games will change their resolution, details and supported controllers and depending on this setting. Setting to Handheld can help improve performance for low end systems. - + Prompt for user profile on boot - + Useful if multiple people use the same PC. - + Pause when not in focus - + Pauses emulation when focusing on other windows. - + Confirm before stopping emulation - + Overrides prompts asking to confirm stopping the emulation. Enabling it bypasses such prompts and directly exits the emulation. - + Hide mouse on inactivity Ẩn con trỏ chuột khi không dùng - + Hides the mouse after 2.5s of inactivity. - + + Disable controller applet + Vô hiệu hoá applet tay cầm + + + + Forcibly disables the use of the controller applet in emulated programs. +When a program attempts to open the controller applet, it is immediately closed. + + + + Check for updates - + Whether or not to check for updates upon startup. - + Enable Gamemode - + Force X11 as Graphics Backend - + Custom frontend - + Real applet - - - Disabled - - - - + Never - + On Load - + Always - + CPU CPU - + GPU - + CPU Asynchronous - + Uncompressed (Best quality) Không nén (Chất lượng tốt nhất) - + BC1 (Low quality) BC1 (Chất lượng thấp) - + BC3 (Medium quality) BC3 (Chất lượng trung bình) - - + + Auto Tự động - + 30 FPS - + 60 FPS - + 90 FPS - + 120 FPS - + Conservative - + Aggressive - + Vulkan Vulkan - + OpenGL GLSL - + OpenGL GLASM (Assembly Shaders, NVIDIA Only) - + OpenGL SPIR-V (Experimental, AMD/Mesa Only) - + Null Null - + Fast - - - + + + Accurate Chính xác - - - + + + Default Mặc định - + Unsafe (fast) - + Safe (stable) - + Immediate - + Balanced - + + Strict + + + + Unsafe Không an toàn - + Paranoid (disables most optimizations) Paranoid (vô hiệu hoá hầu hết sự tối ưu) - + Debugging - + Dynarmic - + NCE - + Borderless Windowed Cửa sổ không viền - + Exclusive Fullscreen Toàn màn hình - + No Video Output Không có đầu ra video - + CPU Video Decoding Giải mã video bằng CPU - + GPU Video Decoding (Default) Giải mã video bằng GPU (Mặc định) - + 0.25X (180p/270p) [EXPERIMENTAL] - + 0.5X (360p/540p) [EXPERIMENTAL] - + 0.75X (540p/810p) [EXPERIMENTAL] 0.75X (540p/810p) [THỬ NGHIỆM] - + 1X (720p/1080p) 1X (720p/1080p) - + 1.25X (900p/1350p) [EXPERIMENTAL] - + 1.5X (1080p/1620p) [EXPERIMENTAL] 1.5X (1080p/1620p) [THỬ NGHIỆM] - + 2X (1440p/2160p) 2X (1440p/2160p) - + 3X (2160p/3240p) 3X (2160p/3240p) - + 4X (2880p/4320p) 4X (2880p/4320p) - + 5X (3600p/5400p) 5X (3600p/5400p) - + 6X (4320p/6480p) 6X (4320p/6480p) - + 7X (5040p/7560p) 7X (5040p/7560p) - + 8X (5760p/8640p) 8X (5760p/8640p) - + Nearest Neighbor Nearest Neighbor - + Bilinear Bilinear - + Bicubic Bicubic - + Gaussian Gaussian - + Lanczos - + ScaleForce ScaleForce - + AMD FidelityFX Super Resolution - + Area - + MMPX - + Zero-Tangent - + B-Spline - + Mitchell - + Spline-1 - + Snapdragon Game Super Resolution - + Snapdragon Game Super Resolution EdgeDir - + None Không có - + FXAA FXAA - + SMAA SMAA - + Default (16:9) Mặc định (16:9) - + Force 4:3 Dùng 4:3 - + Force 21:9 Dùng 21:9 - + Force 16:10 Dùng 16:10 - + Stretch to Window Mở rộng đến cửa sổ - + Automatic Tự động - + 2x 2x - + 4x 4x - + 8x 8x - + 16x 16x - + Japanese (日本語) Tiếng Nhật (日本語) - + American English Tiếng Anh Mỹ - + French (français) Tiếng Pháp (French) - + German (Deutsch) Tiếng Đức (Deutsch) - + Italian (italiano) Tiếng Ý (italiano) - + Spanish (español) Tiếng Tây Ban Nha (Español) - + Chinese Tiếng Trung - + Korean (한국어) Tiếng Hàn (한국어) - + Dutch (Nederlands) Tiếng Hà Lan (Nederlands) - + Portuguese (português) Tiếng Bồ Đào Nha (Portuguese) - + Russian (Русский) Tiếng Nga (Русский) - + Taiwanese Tiếng Đài Loan - + British English Tiếng Anh Anh - + Canadian French Tiếng Pháp Canada - + Latin American Spanish Tiếng Tây Ban Nha Mỹ Latinh - + Simplified Chinese Tiếng Trung giản thể - + Traditional Chinese (正體中文) Tiếng Trung phồn thể (正體中文) - + Brazilian Portuguese (português do Brasil) Tiếng Bồ Đào Nha Brasil (Português do Brasil) - + Polish (polska) - + Thai (แบบไทย) - - + + Japan Nhật Bản - + USA Hoa Kỳ - + Europe Châu Âu - + Australia Úc - + China Trung Quốc - + Korea Hàn Quốc - + Taiwan Đài Loan - + Auto (%1) Auto select time zone Tự động (%1) - + Default (%1) Default time zone Mặc định (%1) - + CET CET - + CST6CDT CST6CDT - + Cuba Cuba - + EET EET - + Egypt Ai Cập - + Eire Eire - + EST EST - + EST5EDT EST5EDT - + GB GB - + GB-Eire GB-Eire - + GMT GMT - + GMT+0 GMT+0 - + GMT-0 GMT-0 - + GMT0 GMT0 - + Greenwich Greenwich - + Hongkong Hồng Kông - + HST HST - + Iceland Iceland - + Iran Iran - + Israel Israel - + Jamaica Jamaica - + Kwajalein Kwajalein - + Libya Libya - + MET MET - + MST MST - + MST7MDT MST7MDT - + Navajo Navajo - + NZ NZ - + NZ-CHAT NZ-CHAT - + Poland Ba Lan - + Portugal Bồ Đào Nha - + PRC PRC - + PST8PDT PST8PDT - + ROC ROC - + ROK ROK - + Singapore Singapore - + Turkey Thổ Nhĩ Kỳ - + UCT UCT - + Universal Quốc tế - + UTC UTC - + W-SU W-SU - + WET WET - + Zulu Zulu - + Mono Mono - + Stereo Stereo - + Surround Surround - + 4GB DRAM (Default) - + 6GB DRAM (Unsafe) - + 8GB DRAM - + 10GB DRAM (Unsafe) - + 12GB DRAM (Unsafe) - + Docked Docked - + Handheld Handheld + + + + Normal + + - Normal + Boost - Boost - - - - - Overclock - + Always ask (Default) - + Only if game specifies not to stop - + Never ask - + Very Small (16 MB) - + Small (32 MB) - + Normal (128 MB) - + Large (256 MB) - + Very Large (512 MB) - + Very Low (4 MB) - + Low (8 MB) - + Normal (16 MB) - + Medium (32 MB) - + High (64 MB) - + Very Low (32) - + Low (64) - + Normal (128) - + Medium (256) - + High (512) - + + Disabled + + + + ExtendedDynamicState 1 - + ExtendedDynamicState 2 - + ExtendedDynamicState 3 - + Tree View - + Grid View @@ -3193,38 +3201,33 @@ Would you like to delete the old save data? Màu nền: - + % FSR/SGSR sharpening percentage (e.g. 50%) - - Configure Effects... - - - - + Off Tắt - + VSync Off Tắt Vsync - + Recommended Đề xuất - + On Bật - + VSync On Bật Vsync @@ -4837,130 +4840,6 @@ Once deleted, these can NOT be recovered. Are you 100% sure you want to delete t - - ConfigurePostProcessing - - - Post-Processing Effects - - - - - Changes apply immediately while a game is running. - - - - - Enable post-processing - - - - - Preset: - - - - - Apply - - - - - Reset Values - - - - - Return every effect to the values the preset ships with. - - - - - Save As... - - - - - Save Preset - - - - - Preset name: - - - - - Clear - - - - - Remove every effect in use and deselect the preset. - - - - - Add Effect - - - - - None - - - - - No effects in use. Pick a preset and press Apply, or add effects one by one. - - - - - Custom chain. Pick a preset above and press Apply to replace it. - - - - - Active preset: %1 (modified). Press Reset Values to go back to how it ships. - - - - - Active preset: %1 - - - - - Enabled - - - - - Disabled - - - - - Reset to defaults - - - - - Effect '%1' was not found. - - - - - Effect failed to compile: -%1 - - - - - No usable ReShade FX effects were found. Place .fx files in the post_shaders folder. - - - ConfigureProfileManager @@ -6046,50 +5925,50 @@ Please go to Configure -> System -> Network and make a selection. GRenderWindow - - + + OpenGL not available! OpenGL không khả dụng! - + OpenGL shared contexts are not supported. Các ngữ cảnh OpenGL chung không được hỗ trợ. - + Eden has not been compiled with OpenGL support. - - - + + + Error while initializing OpenGL! Lỗi khi khởi tạo OpenGL! - + Your GPU may not support OpenGL, or you do not have the latest graphics driver. GPU của bạn có thể không hỗ trợ OpenGL, hoặc bạn không có driver đồ hoạ mới nhất. - + Error while initializing OpenGL 4.6! Lỗi khi khởi tạo OpenGL 4.6! - + Your GPU may not support OpenGL 4.6, or you do not have the latest graphics driver.<br><br>GL Renderer:<br>%1 GPU của bạn có thể không hỗ trợ OpenGL 4.6, hoặc bạn không có driver đồ hoạ mới nhất.<br><br>GL Renderer:<br>%1 - + Your GPU may not support one or more required OpenGL extensions. Please ensure you have the latest graphics driver.<br><br>GL Renderer:<br>%1<br><br>Unsupported extensions:<br>%2 GPU của bạn có thể không hỗ trợ một hoặc nhiều tiện ích OpenGL cần thiết. Vui lòng đảm bảo bạn có driver đồ hoạ mới nhất.<br><br>GL Renderer:<br>%1<br><br>Tiện ích không hỗ trợ:<br>%2 - + This build doesn't have OpenGL support. @@ -6910,42 +6789,42 @@ Debug Message: Đặt lại kích thước cửa sổ về 1080p - + &Multiplayer &Nhiều người chơi - + &Tools &Công cụ - + Am&iibo - + Launch &Applet - + &TAS &TAS - + &Create Home Menu Shortcut - + Install &Firmware - + &Help &Trợ giúp @@ -6971,7 +6850,7 @@ Debug Message: - + &Pause &Tạm dừng @@ -7072,176 +6951,176 @@ Debug Message: - &User Handbook - + Open &Quickstart Guide + Mở &Hướng dẫn nhanh - + + &FAQ + &FAQ + + + &Capture Screenshot &Chụp ảnh màn hình - + &Album - + &Set Nickname and Owner - + &Delete Game Data - + &Restore Amiibo - + &Format Amiibo - + &Mii Editor - + &Configure TAS... &Cấu hình TAS... - + Configure C&urrent Game... Cấu hình game h&iện tại... - - + + &Start &Bắt đầu - + &Reset &Đặt lại - - + + R&ecord G&hi lại - + Open &Controller Menu - + Install Decryption &Keys - + &Home Menu - + &Desktop - + &Application Menu - + &Root Data Folder - + &NAND Folder - + &SDMC Folder - + &Mod Folder - + &Log Folder - + From Folder - + From ZIP - + &Eden Dependencies - + &Data Manager - + &Tree View - + &Grid View - + Game Icon Size - - + + None - + Show Game &Name - - - Show &Performance Overlay - - - Post-Processing &Shaders... + Show &Performance Overlay @@ -7250,737 +7129,722 @@ Debug Message: - + Small (32x32) - + Standard (64x64) - + Large (128x128) - + Full Size (256x256) - + Broken Vulkan Installation Detected - + Vulkan initialization failed during boot. - + Running a game TRANSLATORS: This string is shown to the user to explain why yuzu needs to prevent the computer from sleeping - + Loading Web Applet... - - + + Disable Web Applet - + Disabling the web applet can lead to undefined behavior and should only be used with Super Mario 3D All-Stars. Are you sure you want to disable the web applet? (This can be re-enabled in the Debug settings.) - + The amount of shaders currently being built - + The current selected resolution scaling multiplier. - + Current emulation speed. Values higher or lower than 100% indicate emulation is running faster or slower than a Switch. - + How many frames per second the game is currently displaying. This will vary from game to game and scene to scene. - + Time taken to emulate a Switch frame, not counting framelimiting or v-sync. For full-speed emulation this should be at most 16.67 ms. - + Unmute - + Mute - + Reset Volume - - Configure Effects... - - - - + &Clear Recent Files - + &Continue - + Warning: Outdated Game Format - + You are using the deconstructed ROM directory format for this game, which is an outdated format that has been superseded by others such as NCA, NAX, XCI, or NSP. Deconstructed ROM directories lack icons, metadata, and update support.<br>For an explanation of the various Switch formats Eden supports, out our user handbook. This message will not be shown again. - - + + Error while loading ROM! - + The ROM format is not supported. - + An error occurred initializing the video core. - - This is usually caused by outdated GPU drivers. Please see the log for more details. See: <a href='https://git.eden-emu.dev/eden-emu/eden/src/branch/master/docs/user/HowToAccessLogs.md'>How to access log files</a>. + + Eden has encountered an error while running the video core. This is usually caused by outdated GPU drivers, including integrated ones. Please see the log for more details. For more information on accessing the log, please see the following page: <a href='https://yuzu-mirror.github.io/help/reference/log-files/'>How to Upload the Log File</a>. - + Error while loading ROM! %1 %1 signifies a numeric error code. - + %1<br>Please redump your files or ask on Discord/Stoat for help. %1 signifies an error string. - + An unknown error occurred. Please see the log for more details. - - + + (64-bit) - - + + (32-bit) - - + + %1 %2 %1 is the title name. %2 indicates if the title is 64-bit or 32-bit - + Closing software... - + Save Data - + Mod Data - + Error Opening %1 Folder - - + + Folder does not exist! - + Remove Installed Game Contents? - + Remove Installed Game Update? - + Remove Installed Game DLC? - + Remove Entry - + Delete OpenGL Transferable Shader Cache? - + Delete Vulkan Transferable Shader Cache? - + Delete All Transferable Shader Caches? - + Remove Custom Game Configuration? - + Remove Cache Storage? - + Remove File - + Remove Play Time Data - + Reset play time? - - + + RomFS Extraction Failed! - + There was an error copying the RomFS files or the user cancelled the operation. - + Full - + Skeleton - + Select RomFS Dump Mode - + Please select the how you would like the RomFS dumped.<br>Full will copy all of the files into the new directory while <br>skeleton will only create the directory structure. - + There is not enough free space at %1 to extract the RomFS. Please free up space or select a different dump directory at Emulation > Configure > System > Filesystem > Dump Root - + Extracting RomFS... - - + + Cancel - + RomFS Extraction Succeeded! - + The operation completed successfully. - + Error Opening %1 - + Select Directory - + Properties - + The game properties could not be loaded. - + Switch Executable (%1);;All Files (*.*) %1 is an identifier for the Switch executable file extensions. - + Load File - + Open Extracted ROM Directory - + Invalid Directory Selected - + The directory you have selected does not contain a 'main' file. - + Installable Switch File (*.nca *.nsp *.xci);;Nintendo Content Archive (*.nca);;Nintendo Submission Package (*.nsp);;NX Cartridge Image (*.xci) - + Install Files - + %n file(s) remaining - + Installing file "%1"... - - + + Install Results - + To avoid possible conflicts, we discourage users from installing base games to the NAND. Please, only use this feature to install updates and DLC. - + %n file(s) were newly installed - + %n file(s) were overwritten - + %n file(s) failed to install - + System Application - + System Archive - + System Application Update - + Firmware Package (Type A) - + Firmware Package (Type B) - + Game - + Game Update - + Game DLC - + Delta Title - + Select NCA Install Type... - + Please select the type of title you would like to install this NCA as: (In most instances, the default 'Game' is fine.) - + Failed to Install - + The title type you selected for the NCA is invalid. - + File not found - + File "%1" not found - + OK - + Function Disabled - + Compatibility list reporting is currently disabled. Check back later! - + Error opening URL - + Unable to open the URL "%1". - + TAS Recording - + Overwrite file of player 1? - + Invalid config detected - + Handheld controller can't be used on docked mode. Pro controller will be selected. - - + + Amiibo - - + + The current amiibo has been removed - + Error - - + + The current game is not looking for amiibos - + Amiibo File (%1);; All Files (*.*) - + Load Amiibo - + Error loading Amiibo data - + The selected file is not a valid amiibo - + The selected file is already on use - + An unknown error occurred - + No firmware available - + Firmware Corrupted - + Unknown applet - + Applet doesn't map to a known value. - + Record not found - + Applet not found. Please reinstall firmware. - + Capture Screenshot - + PNG Image (*.png) - + TAS state: Running %1/%2 - + TAS state: Recording %1 - + TAS state: Idle %1/%2 - + TAS State: Invalid - + &Stop Running - + Stop R&ecording - + Building: %n shader(s) - + Scale: %1x %1 is the resolution scaling factor - + Speed: %1% / %2% - + Speed: %1% - + Game: %1 FPS - + Frame: %1 ms - + NO AA - - NO FX - - - - - FX - - - - + VOLUME: MUTE - + VOLUME: %1% Volume percentage (e.g. 50%) - + Derivation Components Missing - + Decryption keys are missing. Install them now? - + Wayland Detected! - + Wayland is known to have significant performance issues and mysterious bugs. It's recommended to use X11 instead. @@ -7988,74 +7852,74 @@ Would you like to force it for future launches? - + Use X11 - + Continue with Wayland - + Don't show again - + Restart Required - + Restart Eden to apply the X11 backend. - + Slow - + Turbo - + Unlocked - + Select RomFS Dump Target - + Please select which RomFS you would like to dump. - + Are you sure you want to close Eden? - - - + + + Eden - + Are you sure you want to stop the emulation? Any unsaved progress will be lost. - + The currently running application has requested Eden to not exit. Would you like to bypass this and exit anyway? @@ -9242,275 +9106,275 @@ p, li { white-space: pre-wrap; } - This game may require firmware to function properly, and you don't have any installed. Please install firmware before launching, or press "OK" to launch anyways. + The game you are trying to launch requires firmware to boot or to get past the opening menu. Please <a href='https://yuzu-mirror.github.io/help/quickstart'>dump and install firmware</a>, or press "OK" to launch anyways. - + Installing Firmware... - - - - - + + + + + Cancel - + Firmware Install Failed - + Firmware Install Succeeded - + Firmware integrity verification failed! - - + + Verification failed for the following files: %1 - - + + Verifying integrity... - - - - Integrity verification succeeded! - - + Integrity verification succeeded! + + + + + The operation completed successfully. - - + + Integrity verification failed! - + File contents may be corrupt or missing. - + Integrity verification couldn't be performed - + Firmware installation cancelled, firmware may be in a bad state or corrupted. File contents could not be checked for validity. - + Select Dumped Keys Location - + Decryption Keys install succeeded - + Decryption Keys install failed - + Orphaned Profiles Detected! - + UNEXPECTED BAD THINGS MAY HAPPEN IF YOU DON'T READ THIS!<br>Eden has detected the following save directories with no attached profile:<br>%1<br><br>The following profiles are valid:<br>%2<br><br>Click "OK" to open your save folder and fix up your profiles.<br>Hint: copy the contents of the largest or last-modified folder elsewhere, delete all orphaned profiles, and move your copied contents to the good profile.<br><br>Still confused? See the <a href='https://git.eden-emu.dev/eden-emu/eden/src/branch/master/docs/user/Orphaned.md'>help page</a>.<br> - + Really clear data? - + Important data may be lost! - + Are you REALLY sure? - + Once deleted, your data will NOT come back! Only do this if you're 100% sure you want to delete this data. - + Clearing... - + Select Export Location - + %1.zip - - - + + + Zipped Archives (*.zip) - + Exporting data. This may take a while... - + Exporting - + Exported Successfully - + Data was exported successfully. - + Export Cancelled - + Export was cancelled by the user. - + Export Failed - + Ensure you have write permissions on the targeted directory and try again. - + Select Import Location - + Import Warning - + All previous data in this directory will be deleted. Are you sure you wish to proceed? - + Importing data. This may take a while... - + Importing - + Imported Successfully - + Data was imported successfully. - + Import Cancelled - + Import was cancelled by the user. - + Import Failed - + Ensure you have read permissions on the targeted directory and try again. - + Keys not installed - + Install decryption keys and restart Eden before attempting to install firmware. - + Select Dumped Firmware Source Location - + Select Dumped Firmware ZIP - + Firmware cleanup failed - + Failed to clean up extracted firmware cache. Check write permissions in the system temp directory and try again. OS reported error: %1 diff --git a/dist/languages/vi_VN.ts b/dist/languages/vi_VN.ts index 51156ca9c8..fe2cd1d2c7 100644 --- a/dist/languages/vi_VN.ts +++ b/dist/languages/vi_VN.ts @@ -571,80 +571,70 @@ FXAA can produce a more stable picture in lower resolutions. - - Enable post-processing effects - - - - - Applies post-processing effects to the final image. - - - - + Fullscreen Mode: Chế độ Toàn màn hình: - + The method used to render the window in fullscreen. Borderless offers the best compatibility with the on-screen keyboard that some games request for input. Exclusive fullscreen may offer better performance and better Freesync/Gsync support. - + Aspect Ratio: Tỉ lệ khung hình: - + Stretches the renderer to fit the specified aspect ratio. Most games only support 16:9, so modifications are required to get other ratios. Also controls the aspect ratio of captured screenshots. - + Use persistent pipeline cache - + Allows saving shaders to storage for faster loading on following game boots. Disabling it is only intended for debugging. - + Use asynchronous GPU emulation - + Uses an extra CPU thread for rendering. This option should always remain enabled. - + NVDEC emulation: Giả lập NVDEC - + Specifies how videos should be decoded. It can either use the CPU or the GPU for decoding, or perform no decoding at all (black screen on videos). In most cases, GPU decoding provides the best performance. - + ASTC Decoding Method: - + This option controls how ASTC textures should be decoded. CPU: Use the CPU for decoding. GPU: Use the GPU's compute shaders to decode ASTC textures (recommended). @@ -653,75 +643,55 @@ stuttering but may present artifacts. - + ASTC Recompression Method: - + Most GPUs lack support for ASTC textures and must decompress to anintermediate format: RGBA8. BC1/BC3: The intermediate format will be recompressed to BC1 or BC3 format, saving VRAM but degrading image quality. - + Frame Pacing Mode (Vulkan only) - + Controls how the emulator manages frame pacing to reduce stuttering and make the frame rate smoother and more consistent. - + VRAM Usage Mode: - + Selects whether the emulator should prefer to conserve memory or make maximum usage of available video memory for performance. Aggressive mode may impact performance of other applications such as recording software. - + Skip CPU Inner Invalidation - + Skips certain cache invalidations during memory updates, reducing CPU usage and improving latency. This may cause soft-crashes. - - GPU Readback Before NCE Invalidation - - - - - Flushes GPU buffer data back to guest memory before NCE invalidates the whole guest page, preserving it while the CPU store proceeds. - - - - - Patch Runtime NROs for NCE - - - - - Applies NCE code patches to runtime-loaded NRO modules.This is required for some games to run correctly. - - - - + VSync Mode: Chế độ Vsync: - + FIFO (VSync) does not drop frames or exhibit tearing but is limited by the screen refresh rate. FIFO Relaxed allows tearing as it recovers from a slow down. Mailbox can have lower latency than FIFO and does not tear but may drop frames. @@ -729,1371 +699,1409 @@ Immediate (no synchronization) presents whatever is available and can exhibit te - + Sync Memory Operations - + Ensures data consistency between compute and memory operations. This option fixes issues in games, but may degrade performance. Unreal Engine 4 games often see the most significant changes thereof. - + Enable asynchronous presentation (Vulkan only) Bật hiển thị bất đồng bộ (chỉ dành cho Vulkan) - + Slightly improves performance by moving presentation to a separate CPU thread. - + Force maximum clocks (Vulkan only) Buộc chạy ở xung nhịp tối đa (chỉ Vulkan) - + Runs work in the background while waiting for graphics commands to keep the GPU from lowering its clock speed. Chạy các công việc trong nền trong khi đang chờ lệnh đồ họa để giữ cho GPU không giảm xung nhịp. - + Anisotropic Filtering: Bộ lọc góc nghiêng: - + Controls the quality of texture rendering at oblique angles. Safe to set at 16x on most GPUs. - + GPU Mode: - + Controls the GPU emulation mode. Most games render fine with Fast, but Accurate is still required for some. Particles tend to only render correctly with Accurate mode. - + DMA Accuracy: - + Controls the DMA read mode. Unsafe is faster, while Safe is more stable and can fix issues in some games. Default follows the GPU Accuracy setting. - + GPU Fence Behavior: - + Controls the GPU fence synchronization behavior. Immediate is the fastest option, but can introduce some issues. Balanced offers better compatibility and may fix issues in some games. Accurate further improves compatibility at the cost of some performance. -Default follows the GPU Mode setting. +Strict is the slowest option, but can fix issues that require stricter synchronization. +Default follows the GPU Accuracy setting. - + + Enable GPU buffer readback + + + + + Preserves GPU-modified data by reading it back before uploading. +Some games require this to render certain effects properly. + + + + Enable asynchronous shader compilation - + May reduce shader stutter. - + GPU Clocks - + Makes the game believe GPU work finishes faster than it does, so it stops lowering resolution and render distance to fit the Switch's clocks. - + GPU Unswizzle - + Accelerates BCn 3D texture decoding using GPU compute. Disable if experiencing crashes or graphical glitches. - + GPU Unswizzle Max Texture Size - + Sets the maximum size (MiB) for GPU-based texture unswizzling. While the GPU is faster for medium and large textures, the CPU may be more efficient for very small ones. Adjust this to find the balance between GPU acceleration and CPU overhead. - + GPU Unswizzle Stream Size - + Sets the maximum amount of texture data (in MiB) processed per frame. Higher values can reduce stutter during texture loading but may impact frame consistency. - + GPU Unswizzle Chunk Size - + Determines the number of depth slices processed in a single dispatch. Increasing this can improve throughput on high-end GPUs but may cause TDR or driver timeouts on weaker hardware. - + Use Vulkan pipeline cache Dùng Vulkan pipeline cache - + Enables GPU vendor-specific pipeline cache. This option can improve shader loading time significantly in cases where the Vulkan driver does not store pipeline cache files internally. - + Enable Compute Pipelines (Intel Vulkan Only) - + Required by some games. This setting only exists for Intel proprietary drivers and may crash if enabled. Compute pipelines are always enabled on all other drivers. - + Enable Reactive Flushing Bật xả tương ứng - + Uses reactive flushing instead of predictive flushing, allowing more accurate memory syncing. - + Sync to framerate of video playback Đồng bộ hóa với tốc độ khung hình khi phát video - + Run the game at normal speed during video playback, even when the framerate is unlocked. Chạy game với tốc độ bình thường trong quá trình phát video, ngay cả khi tốc độ khung hình được mở khóa. - + Barrier feedback loops Vòng lặp phản hồi rào cản - + Improves rendering of transparency effects in specific games. Cải thiện hiệu quả hiển thị của hiệu ứng trong suốt trong một số trò chơi. - + Enable buffer history - + Enables access to previous buffer states. This option may improve rendering quality and performance consistency in some games. - + Fix bloom effects - + Removes bloom in Burnout. - + + Enable Legacy Rescale Pass + + + + + May fix rescale issues in some games by relying on behavior from the previous implementation. +Legacy behavior workaround that fixes line artifacts on AMD and Intel GPUs, and grey texture flicker on Nvidia GPUs in Luigis Mansion 3. + + + + Extended Dynamic State - + Controls the number of features that can be used in Extended Dynamic State. Higher states allow for more features and can increase performance, but may cause additional graphical issues. - + Vertex Input Dynamic State - + Enables vertex input dynamic state feature for better quality and performance. - + Sample Shading - + Allows the fragment shader to execute per sample in a multi-sampled fragment instead of once per fragment. Improves graphics quality at the cost of performance. Higher values improve quality but degrade performance. - + RNG Seed Hạt giống RNG - + Controls the seed of the random number generator. Mainly used for speedrunning. - + Device Name Tên thiết bị - + The name of the console. - + Homebrew Args - + Command-line arguments passed to homebrew at launch (e.g. -noglsl). - + Custom RTC Date: - + This option allows to change the clock of the console. Can be used to manipulate time in games. - + The number of seconds from the current unix time - + Language: - + This option can be overridden when region setting is auto-select - + Region: Vùng: - + The region of the console. - + Time Zone: Múi giờ: - + The time zone of the console. - + Sound Output Mode: Chế độ đầu ra âm thanh - + Console Mode: - + Selects if the console is in Docked or Handheld mode. Games will change their resolution, details and supported controllers and depending on this setting. Setting to Handheld can help improve performance for low end systems. - + Prompt for user profile on boot - + Useful if multiple people use the same PC. - + Pause when not in focus - + Pauses emulation when focusing on other windows. - + Confirm before stopping emulation - + Overrides prompts asking to confirm stopping the emulation. Enabling it bypasses such prompts and directly exits the emulation. - + Hide mouse on inactivity Ẩn con trỏ chuột khi không dùng - + Hides the mouse after 2.5s of inactivity. - + + Disable controller applet + Vô hiệu hoá applet tay cầm + + + + Forcibly disables the use of the controller applet in emulated programs. +When a program attempts to open the controller applet, it is immediately closed. + + + + Check for updates - + Whether or not to check for updates upon startup. - + Enable Gamemode - + Force X11 as Graphics Backend - + Custom frontend - + Real applet - - - Disabled - - - - + Never - + On Load - + Always - + CPU CPU - + GPU - + CPU Asynchronous - + Uncompressed (Best quality) Không nén (Chất lượng tốt nhất) - + BC1 (Low quality) BC1 (Chất lượng thấp) - + BC3 (Medium quality) BC3 (Chất lượng trung bình) - - + + Auto Tự động - + 30 FPS - + 60 FPS - + 90 FPS - + 120 FPS - + Conservative - + Aggressive - + Vulkan Vulkan - + OpenGL GLSL - + OpenGL GLASM (Assembly Shaders, NVIDIA Only) - + OpenGL SPIR-V (Experimental, AMD/Mesa Only) - + Null Null - + Fast - - - + + + Accurate Tuyệt đối - - - + + + Default Mặc định - + Unsafe (fast) - + Safe (stable) - + Immediate - + Balanced - + + Strict + + + + Unsafe Tương đối - + Paranoid (disables most optimizations) Paranoid (vô hiệu hoá hầu hết sự tối ưu) - + Debugging - + Dynarmic - + NCE - + Borderless Windowed Cửa sổ không viền - + Exclusive Fullscreen Toàn màn hình - + No Video Output Không Video Đầu Ra - + CPU Video Decoding Giải mã video bằng CPU - + GPU Video Decoding (Default) Giải mã video bằng GPU (Mặc định) - + 0.25X (180p/270p) [EXPERIMENTAL] - + 0.5X (360p/540p) [EXPERIMENTAL] - + 0.75X (540p/810p) [EXPERIMENTAL] 0.75X (540p/810p) [THỬ NGHIỆM] - + 1X (720p/1080p) 1X (720p/1080p) - + 1.25X (900p/1350p) [EXPERIMENTAL] - + 1.5X (1080p/1620p) [EXPERIMENTAL] 1.5X (1080p/1620p) [THỬ NGHIỆM] - + 2X (1440p/2160p) 2X (1440p/2160p) - + 3X (2160p/3240p) 3X (2160p/3240p) - + 4X (2880p/4320p) 4X (2880p/4320p) - + 5X (3600p/5400p) 5X (3600p/5400p) - + 6X (4320p/6480p) 6X (4320p/6480p) - + 7X (5040p/7560p) 7X (5040p/7560p) - + 8X (5760p/8640p) 8X (5760p/8640p) - + Nearest Neighbor Nearest Neighbor - + Bilinear Bilinear - + Bicubic Bicubic - + Gaussian ScaleForce - + Lanczos - + ScaleForce ScaleForce - + AMD FidelityFX Super Resolution - + Area - + MMPX - + Zero-Tangent - + B-Spline - + Mitchell - + Spline-1 - + Snapdragon Game Super Resolution - + Snapdragon Game Super Resolution EdgeDir - + None Trống - + FXAA FXAA - + SMAA SMAA - + Default (16:9) Mặc định (16:9) - + Force 4:3 Dùng 4:3 - + Force 21:9 Dùng 21:9 - + Force 16:10 Dung 16:10 - + Stretch to Window Kéo dãn đến cửa sổ phần mềm - + Automatic Tự động - + 2x 2x - + 4x 4x - + 8x 8x - + 16x 16x - + Japanese (日本語) Tiếng Nhật (日本語) - + American English Tiếng Anh Mỹ - + French (français) Tiếng Pháp (French) - + German (Deutsch) Tiếng Đức (Deutsch) - + Italian (italiano) Tiếng Ý (italiano) - + Spanish (español) Tiếng Tây Ban Nha (Spanish) - + Chinese Tiếng Trung - + Korean (한국어) Tiếng Hàn (한국어) - + Dutch (Nederlands) Tiếng Hà Lan (Dutch) - + Portuguese (português) Tiếng Bồ Đào Nha (Portuguese) - + Russian (Русский) Tiếng Nga (Русский) - + Taiwanese Tiếng Đài Loan - + British English Tiếng Anh UK (British English) - + Canadian French Tiếng Pháp Canada - + Latin American Spanish Tiếng Mỹ La-tinh - + Simplified Chinese Tiếng Trung giản thể - + Traditional Chinese (正體中文) Tiếng Trung phồn thể (正體中文) - + Brazilian Portuguese (português do Brasil) Tiếng Bồ Đào Nha của người Brazil (Português do Brasil) - + Polish (polska) - + Thai (แบบไทย) - - + + Japan Nhật Bản - + USA Hoa Kỳ - + Europe Châu Âu - + Australia Châu Úc - + China Trung Quốc - + Korea Hàn Quốc - + Taiwan Đài Loan - + Auto (%1) Auto select time zone Tự động (%1) - + Default (%1) Default time zone Mặc định (%1) - + CET CET - + CST6CDT CST6CDT - + Cuba Cuba - + EET EET - + Egypt Ai Cập - + Eire Eire - + EST EST - + EST5EDT EST5EDT - + GB GB - + GB-Eire GB-Eire - + GMT GMT - + GMT+0 GMT+0 - + GMT-0 GMT-0 - + GMT0 GMT0 - + Greenwich Greenwich - + Hongkong Hồng Kông - + HST HST - + Iceland Iceland - + Iran Iran - + Israel Israel - + Jamaica Jamaica - + Kwajalein Kwajalein - + Libya Libya - + MET MET - + MST MST - + MST7MDT MST7MDT - + Navajo Navajo - + NZ NZ - + NZ-CHAT NZ-CHAT - + Poland Ba Lan - + Portugal Bồ Đào Nha - + PRC PRC - + PST8PDT PST8PDT - + ROC ROC - + ROK ROK - + Singapore Singapore - + Turkey Thổ Nhĩ Kỳ - + UCT UCT - + Universal Quốc tế - + UTC UTC - + W-SU W-SU - + WET WET - + Zulu Zulu - + Mono Mono - + Stereo Stereo - + Surround Surround - + 4GB DRAM (Default) - + 6GB DRAM (Unsafe) - + 8GB DRAM - + 10GB DRAM (Unsafe) - + 12GB DRAM (Unsafe) - + Docked Chế độ cắm TV - + Handheld Cầm tay + + + + Normal + + - Normal + Boost - Boost - - - - - Overclock - + Always ask (Default) - + Only if game specifies not to stop - + Never ask - + Very Small (16 MB) - + Small (32 MB) - + Normal (128 MB) - + Large (256 MB) - + Very Large (512 MB) - + Very Low (4 MB) - + Low (8 MB) - + Normal (16 MB) - + Medium (32 MB) - + High (64 MB) - + Very Low (32) - + Low (64) - + Normal (128) - + Medium (256) - + High (512) - + + Disabled + + + + ExtendedDynamicState 1 - + ExtendedDynamicState 2 - + ExtendedDynamicState 3 - + Tree View - + Grid View @@ -3193,38 +3201,33 @@ Would you like to delete the old save data? Màu nền: - + % FSR/SGSR sharpening percentage (e.g. 50%) - - Configure Effects... - - - - + Off Tắt - + VSync Off Tắt Vsync - + Recommended Đề xuất - + On Bật - + VSync On Bật Vsync @@ -4837,130 +4840,6 @@ Once deleted, these can NOT be recovered. Are you 100% sure you want to delete t - - ConfigurePostProcessing - - - Post-Processing Effects - - - - - Changes apply immediately while a game is running. - - - - - Enable post-processing - - - - - Preset: - - - - - Apply - - - - - Reset Values - - - - - Return every effect to the values the preset ships with. - - - - - Save As... - - - - - Save Preset - - - - - Preset name: - - - - - Clear - - - - - Remove every effect in use and deselect the preset. - - - - - Add Effect - - - - - None - - - - - No effects in use. Pick a preset and press Apply, or add effects one by one. - - - - - Custom chain. Pick a preset above and press Apply to replace it. - - - - - Active preset: %1 (modified). Press Reset Values to go back to how it ships. - - - - - Active preset: %1 - - - - - Enabled - - - - - Disabled - - - - - Reset to defaults - - - - - Effect '%1' was not found. - - - - - Effect failed to compile: -%1 - - - - - No usable ReShade FX effects were found. Place .fx files in the post_shaders folder. - - - ConfigureProfileManager @@ -6046,50 +5925,50 @@ Please go to Configure -> System -> Network and make a selection. GRenderWindow - - + + OpenGL not available! Không có sẵn OpenGL! - + OpenGL shared contexts are not supported. Các ngữ cảnh OpenGL chung không được hỗ trợ. - + Eden has not been compiled with OpenGL support. - - - + + + Error while initializing OpenGL! Đã xảy ra lỗi khi khởi tạo OpenGL! - + Your GPU may not support OpenGL, or you do not have the latest graphics driver. GPU của bạn có thể không hỗ trợ OpenGL, hoặc bạn không có driver đồ hoạ mới nhất. - + Error while initializing OpenGL 4.6! Lỗi khi khởi tạo OpenGL 4.6! - + Your GPU may not support OpenGL 4.6, or you do not have the latest graphics driver.<br><br>GL Renderer:<br>%1 GPU của bạn có thể không hỗ trợ OpenGL 4.6, hoặc bạn không có driver đồ hoạ mới nhất.<br><br>GL Renderer:<br>%1 - + Your GPU may not support one or more required OpenGL extensions. Please ensure you have the latest graphics driver.<br><br>GL Renderer:<br>%1<br><br>Unsupported extensions:<br>%2 GPU của bạn có thể không hỗ trợ một hoặc nhiều tiện ích OpenGL cần thiết. Vui lòng đảm bảo bạn có driver đồ hoạ mới nhất.<br><br>GL Renderer:<br>%1<br><br>Tiện ích không hỗ trợ:<br>%2 - + This build doesn't have OpenGL support. @@ -6910,42 +6789,42 @@ Debug Message: Đặt lại kích thước cửa sổ về 1080p - + &Multiplayer &Nhiều người chơi - + &Tools &Công cụ - + Am&iibo - + Launch &Applet - + &TAS &TAS - + &Create Home Menu Shortcut - + Install &Firmware - + &Help &Trợ giúp @@ -6971,7 +6850,7 @@ Debug Message: - + &Pause &Tạm dừng @@ -7072,176 +6951,176 @@ Debug Message: - &User Handbook - + Open &Quickstart Guide + Mở &Hướng dẫn nhanh - + + &FAQ + &FAQ + + + &Capture Screenshot &Chụp ảnh màn hình - + &Album - + &Set Nickname and Owner - + &Delete Game Data - + &Restore Amiibo - + &Format Amiibo - + &Mii Editor - + &Configure TAS... &Cấu hình TAS... - + Configure C&urrent Game... Cấu hình game hiện tại... - - + + &Start &Bắt đầu - + &Reset &Đặt lại - - + + R&ecord G&hi - + Open &Controller Menu - + Install Decryption &Keys - + &Home Menu - + &Desktop - + &Application Menu - + &Root Data Folder - + &NAND Folder - + &SDMC Folder - + &Mod Folder - + &Log Folder - + From Folder - + From ZIP - + &Eden Dependencies - + &Data Manager - + &Tree View - + &Grid View - + Game Icon Size - - + + None - + Show Game &Name - - - Show &Performance Overlay - - - Post-Processing &Shaders... + Show &Performance Overlay @@ -7250,737 +7129,722 @@ Debug Message: - + Small (32x32) - + Standard (64x64) - + Large (128x128) - + Full Size (256x256) - + Broken Vulkan Installation Detected - + Vulkan initialization failed during boot. - + Running a game TRANSLATORS: This string is shown to the user to explain why yuzu needs to prevent the computer from sleeping - + Loading Web Applet... - - + + Disable Web Applet - + Disabling the web applet can lead to undefined behavior and should only be used with Super Mario 3D All-Stars. Are you sure you want to disable the web applet? (This can be re-enabled in the Debug settings.) - + The amount of shaders currently being built - + The current selected resolution scaling multiplier. - + Current emulation speed. Values higher or lower than 100% indicate emulation is running faster or slower than a Switch. - + How many frames per second the game is currently displaying. This will vary from game to game and scene to scene. - + Time taken to emulate a Switch frame, not counting framelimiting or v-sync. For full-speed emulation this should be at most 16.67 ms. - + Unmute - + Mute - + Reset Volume - - Configure Effects... - - - - + &Clear Recent Files - + &Continue - + Warning: Outdated Game Format - + You are using the deconstructed ROM directory format for this game, which is an outdated format that has been superseded by others such as NCA, NAX, XCI, or NSP. Deconstructed ROM directories lack icons, metadata, and update support.<br>For an explanation of the various Switch formats Eden supports, out our user handbook. This message will not be shown again. - - + + Error while loading ROM! - + The ROM format is not supported. - + An error occurred initializing the video core. - - This is usually caused by outdated GPU drivers. Please see the log for more details. See: <a href='https://git.eden-emu.dev/eden-emu/eden/src/branch/master/docs/user/HowToAccessLogs.md'>How to access log files</a>. + + Eden has encountered an error while running the video core. This is usually caused by outdated GPU drivers, including integrated ones. Please see the log for more details. For more information on accessing the log, please see the following page: <a href='https://yuzu-mirror.github.io/help/reference/log-files/'>How to Upload the Log File</a>. - + Error while loading ROM! %1 %1 signifies a numeric error code. - + %1<br>Please redump your files or ask on Discord/Stoat for help. %1 signifies an error string. - + An unknown error occurred. Please see the log for more details. - - + + (64-bit) - - + + (32-bit) - - + + %1 %2 %1 is the title name. %2 indicates if the title is 64-bit or 32-bit - + Closing software... - + Save Data - + Mod Data - + Error Opening %1 Folder - - + + Folder does not exist! - + Remove Installed Game Contents? - + Remove Installed Game Update? - + Remove Installed Game DLC? - + Remove Entry - + Delete OpenGL Transferable Shader Cache? - + Delete Vulkan Transferable Shader Cache? - + Delete All Transferable Shader Caches? - + Remove Custom Game Configuration? - + Remove Cache Storage? - + Remove File - + Remove Play Time Data - + Reset play time? - - + + RomFS Extraction Failed! - + There was an error copying the RomFS files or the user cancelled the operation. - + Full - + Skeleton - + Select RomFS Dump Mode - + Please select the how you would like the RomFS dumped.<br>Full will copy all of the files into the new directory while <br>skeleton will only create the directory structure. - + There is not enough free space at %1 to extract the RomFS. Please free up space or select a different dump directory at Emulation > Configure > System > Filesystem > Dump Root - + Extracting RomFS... - - + + Cancel - + RomFS Extraction Succeeded! - + The operation completed successfully. - + Error Opening %1 - + Select Directory - + Properties - + The game properties could not be loaded. - + Switch Executable (%1);;All Files (*.*) %1 is an identifier for the Switch executable file extensions. - + Load File - + Open Extracted ROM Directory - + Invalid Directory Selected - + The directory you have selected does not contain a 'main' file. - + Installable Switch File (*.nca *.nsp *.xci);;Nintendo Content Archive (*.nca);;Nintendo Submission Package (*.nsp);;NX Cartridge Image (*.xci) - + Install Files - + %n file(s) remaining - + Installing file "%1"... - - + + Install Results - + To avoid possible conflicts, we discourage users from installing base games to the NAND. Please, only use this feature to install updates and DLC. - + %n file(s) were newly installed - + %n file(s) were overwritten - + %n file(s) failed to install - + System Application - + System Archive - + System Application Update - + Firmware Package (Type A) - + Firmware Package (Type B) - + Game - + Game Update - + Game DLC - + Delta Title - + Select NCA Install Type... - + Please select the type of title you would like to install this NCA as: (In most instances, the default 'Game' is fine.) - + Failed to Install - + The title type you selected for the NCA is invalid. - + File not found - + File "%1" not found - + OK - + Function Disabled - + Compatibility list reporting is currently disabled. Check back later! - + Error opening URL - + Unable to open the URL "%1". - + TAS Recording - + Overwrite file of player 1? - + Invalid config detected - + Handheld controller can't be used on docked mode. Pro controller will be selected. - - + + Amiibo - - + + The current amiibo has been removed - + Error - - + + The current game is not looking for amiibos - + Amiibo File (%1);; All Files (*.*) - + Load Amiibo - + Error loading Amiibo data - + The selected file is not a valid amiibo - + The selected file is already on use - + An unknown error occurred - + No firmware available - + Firmware Corrupted - + Unknown applet - + Applet doesn't map to a known value. - + Record not found - + Applet not found. Please reinstall firmware. - + Capture Screenshot - + PNG Image (*.png) - + TAS state: Running %1/%2 - + TAS state: Recording %1 - + TAS state: Idle %1/%2 - + TAS State: Invalid - + &Stop Running - + Stop R&ecording - + Building: %n shader(s) - + Scale: %1x %1 is the resolution scaling factor - + Speed: %1% / %2% - + Speed: %1% - + Game: %1 FPS - + Frame: %1 ms - + NO AA - - NO FX - - - - - FX - - - - + VOLUME: MUTE - + VOLUME: %1% Volume percentage (e.g. 50%) - + Derivation Components Missing - + Decryption keys are missing. Install them now? - + Wayland Detected! - + Wayland is known to have significant performance issues and mysterious bugs. It's recommended to use X11 instead. @@ -7988,74 +7852,74 @@ Would you like to force it for future launches? - + Use X11 - + Continue with Wayland - + Don't show again - + Restart Required - + Restart Eden to apply the X11 backend. - + Slow - + Turbo - + Unlocked - + Select RomFS Dump Target - + Please select which RomFS you would like to dump. - + Are you sure you want to close Eden? - - - + + + Eden - + Are you sure you want to stop the emulation? Any unsaved progress will be lost. - + The currently running application has requested Eden to not exit. Would you like to bypass this and exit anyway? @@ -9242,275 +9106,275 @@ p, li { white-space: pre-wrap; } - This game may require firmware to function properly, and you don't have any installed. Please install firmware before launching, or press "OK" to launch anyways. + The game you are trying to launch requires firmware to boot or to get past the opening menu. Please <a href='https://yuzu-mirror.github.io/help/quickstart'>dump and install firmware</a>, or press "OK" to launch anyways. - + Installing Firmware... - - - - - + + + + + Cancel - + Firmware Install Failed - + Firmware Install Succeeded - + Firmware integrity verification failed! - - + + Verification failed for the following files: %1 - - + + Verifying integrity... - - - - Integrity verification succeeded! - - + Integrity verification succeeded! + + + + + The operation completed successfully. - - + + Integrity verification failed! - + File contents may be corrupt or missing. - + Integrity verification couldn't be performed - + Firmware installation cancelled, firmware may be in a bad state or corrupted. File contents could not be checked for validity. - + Select Dumped Keys Location - + Decryption Keys install succeeded - + Decryption Keys install failed - + Orphaned Profiles Detected! - + UNEXPECTED BAD THINGS MAY HAPPEN IF YOU DON'T READ THIS!<br>Eden has detected the following save directories with no attached profile:<br>%1<br><br>The following profiles are valid:<br>%2<br><br>Click "OK" to open your save folder and fix up your profiles.<br>Hint: copy the contents of the largest or last-modified folder elsewhere, delete all orphaned profiles, and move your copied contents to the good profile.<br><br>Still confused? See the <a href='https://git.eden-emu.dev/eden-emu/eden/src/branch/master/docs/user/Orphaned.md'>help page</a>.<br> - + Really clear data? - + Important data may be lost! - + Are you REALLY sure? - + Once deleted, your data will NOT come back! Only do this if you're 100% sure you want to delete this data. - + Clearing... - + Select Export Location - + %1.zip - - - + + + Zipped Archives (*.zip) - + Exporting data. This may take a while... - + Exporting - + Exported Successfully - + Data was exported successfully. - + Export Cancelled - + Export was cancelled by the user. - + Export Failed - + Ensure you have write permissions on the targeted directory and try again. - + Select Import Location - + Import Warning - + All previous data in this directory will be deleted. Are you sure you wish to proceed? - + Importing data. This may take a while... - + Importing - + Imported Successfully - + Data was imported successfully. - + Import Cancelled - + Import was cancelled by the user. - + Import Failed - + Ensure you have read permissions on the targeted directory and try again. - + Keys not installed - + Install decryption keys and restart Eden before attempting to install firmware. - + Select Dumped Firmware Source Location - + Select Dumped Firmware ZIP - + Firmware cleanup failed - + Failed to clean up extracted firmware cache. Check write permissions in the system temp directory and try again. OS reported error: %1 diff --git a/dist/languages/zh_CN.ts b/dist/languages/zh_CN.ts index 2b86a73843..ea35dae1ba 100644 --- a/dist/languages/zh_CN.ts +++ b/dist/languages/zh_CN.ts @@ -594,22 +594,12 @@ SMAA 提供最佳质量。 FXAA 可以在较低分辨率下产生更稳定的画面。 - - Enable post-processing effects - 开启后处理效果 - - - - Applies post-processing effects to the final image. - 给最终图像加上后处理效果。 - - - + Fullscreen Mode: 全屏模式: - + The method used to render the window in fullscreen. Borderless offers the best compatibility with the on-screen keyboard that some games request for input. Exclusive fullscreen may offer better performance and better Freesync/Gsync support. @@ -618,12 +608,12 @@ Exclusive fullscreen may offer better performance and better Freesync/Gsync supp 独占全屏提供更好的性能和 Freesync/Gsync 支持。 - + Aspect Ratio: 屏幕纵横比: - + Stretches the renderer to fit the specified aspect ratio. Most games only support 16:9, so modifications are required to get other ratios. Also controls the aspect ratio of captured screenshots. @@ -632,36 +622,36 @@ Also controls the aspect ratio of captured screenshots. 此设置同时控制捕获截图的高宽比。 - + Use persistent pipeline cache 使用持久管道缓存 - + Allows saving shaders to storage for faster loading on following game boots. Disabling it is only intended for debugging. 将生成的着色器保存到硬盘,提高后续游戏过程中的着色器加载速度。 请仅在调试时禁用此项。 - + Use asynchronous GPU emulation 使用异步 GPU 模拟 - + Uses an extra CPU thread for rendering. This option should always remain enabled. 使用额外的 CPU 线程进行渲染。 此选项应始终保持启用状态。 - + NVDEC emulation: NVDEC 模拟方式: - + Specifies how videos should be decoded. It can either use the CPU or the GPU for decoding, or perform no decoding at all (black screen on videos). In most cases, GPU decoding provides the best performance. @@ -670,12 +660,12 @@ In most cases, GPU decoding provides the best performance. 大多数情况下,使用 GPU 解码将提供最好的性能。 - + ASTC Decoding Method: ASTC 纹理解码方式: - + This option controls how ASTC textures should be decoded. CPU: Use the CPU for decoding. GPU: Use the GPU's compute shaders to decode ASTC textures (recommended). @@ -688,12 +678,12 @@ CPU 异步模拟:使用 CPU 在 ASTC 纹理到达时对其进行解码。 消除 ASTC 解码带来的卡顿,但在解码时可能出现渲染问题。 - + ASTC Recompression Method: ASTC 纹理重压缩方式: - + Most GPUs lack support for ASTC textures and must decompress to anintermediate format: RGBA8. BC1/BC3: The intermediate format will be recompressed to BC1 or BC3 format, saving VRAM but degrading image quality. @@ -702,64 +692,44 @@ BC1/BC3: 中间格式将被重新压缩为 BC1 或 BC3 格式,从而节省显存 但会降低图像质量。 - + Frame Pacing Mode (Vulkan only) 帧同步模式 (仅限 Vulkan) - + Controls how the emulator manages frame pacing to reduce stuttering and make the frame rate smoother and more consistent. 控制模拟器如何管理帧同步,以减少卡顿,使帧率表现更加平稳顺滑。 - + VRAM Usage Mode: VRAM 使用模式: - + Selects whether the emulator should prefer to conserve memory or make maximum usage of available video memory for performance. Aggressive mode may impact performance of other applications such as recording software. 选择模拟器是应优先节省内存还是最大限度地使用可用视频内存以提高性能。 激进模式可能会影响诸如录屏软件等其他应用程序的性能,。 - + Skip CPU Inner Invalidation 跳过 CPU 内部失效处理 - + Skips certain cache invalidations during memory updates, reducing CPU usage and improving latency. This may cause soft-crashes. 在内存更新期间跳过某些缓存失效,从而降低 CPU 使用率并改善延迟。这可能导致软件崩溃。 - - GPU Readback Before NCE Invalidation - - - - - Flushes GPU buffer data back to guest memory before NCE invalidates the whole guest page, preserving it while the CPU store proceeds. - - - - - Patch Runtime NROs for NCE - - - - - Applies NCE code patches to runtime-loaded NRO modules.This is required for some games to run correctly. - - - - + VSync Mode: 垂直同步模式: - + FIFO (VSync) does not drop frames or exhibit tearing but is limited by the screen refresh rate. FIFO Relaxed allows tearing as it recovers from a slow down. Mailbox can have lower latency than FIFO and does not tear but may drop frames. @@ -770,12 +740,12 @@ Mailbox 的延迟可能比 FIFO 低且不会导致撕裂,但可能会丢帧。 Immediate (不同步) 会呈现全部可用内容,并可能出现撕裂。 - + Sync Memory Operations 同步内存操作 - + Ensures data consistency between compute and memory operations. This option fixes issues in games, but may degrade performance. Unreal Engine 4 games often see the most significant changes thereof. @@ -784,44 +754,44 @@ Unreal Engine 4 games often see the most significant changes thereof. 虚幻 4 引擎的游戏通常会看到最显著的变化。 - + Enable asynchronous presentation (Vulkan only) 启用异步帧提交 (仅限 Vulkan) - + Slightly improves performance by moving presentation to a separate CPU thread. 将帧提交移动到单独的 CPU 线程,略微提高性能。 - + Force maximum clocks (Vulkan only) 强制最大时钟 (仅限 Vulkan) - + Runs work in the background while waiting for graphics commands to keep the GPU from lowering its clock speed. 在后台运行的同时等待图形命令,以防止 GPU 降低时钟速度。 - + Anisotropic Filtering: 各向异性过滤: - + Controls the quality of texture rendering at oblique angles. Safe to set at 16x on most GPUs. 控制在斜角下纹理渲染的质量。 大多数 GPU 上设置为 16 倍是安全的。 - + GPU Mode: GPU 模式: - + Controls the GPU emulation mode. Most games render fine with Fast, but Accurate is still required for some. Particles tend to only render correctly with Accurate mode. @@ -829,12 +799,12 @@ Particles tend to only render correctly with Accurate mode. 大多数游戏在“快速”模式下渲染效果良好,但有些游戏仍需使用“精确”模式。而粒子效果通常只有在“精确”模式下才能正确渲染。 - + DMA Accuracy: DMA 精度: - + Controls the DMA read mode. Unsafe is faster, while Safe is more stable and can fix issues in some games. Default follows the GPU Accuracy setting. @@ -843,57 +813,75 @@ Default follows the GPU Accuracy setting. 默认使用 GPU 精度设置。 - + GPU Fence Behavior: GPU 围栏行为: - + Controls the GPU fence synchronization behavior. Immediate is the fastest option, but can introduce some issues. Balanced offers better compatibility and may fix issues in some games. Accurate further improves compatibility at the cost of some performance. -Default follows the GPU Mode setting. - +Strict is the slowest option, but can fix issues that require stricter synchronization. +Default follows the GPU Accuracy setting. + 控制 GPU 围栏同步行为。 +“即时”是速度最快的选项,但可能会引入一些问题。 +“均衡”提供了更好的兼容性,可能修复某些游戏中的问题。 +“精确”在牺牲部分性能的前提下进一步提升兼容性。 +“严格”是速度最慢的选项,但可以修复那些要求更严格同步的问题。 +默认遵循 GPU “精确”设定。 - + + Enable GPU buffer readback + 开启 GPU 缓冲区回读 + + + + Preserves GPU-modified data by reading it back before uploading. +Some games require this to render certain effects properly. + 通过在上传前读取来保留 GPU 修改的数据。 +某些游戏需要这样才能正确渲染某些效果。 + + + Enable asynchronous shader compilation 开启异步着色器编译 - + May reduce shader stutter. 可能减少着色器卡顿。 - + GPU Clocks GPU 时钟频率 - + Makes the game believe GPU work finishes faster than it does, so it stops lowering resolution and render distance to fit the Switch's clocks. 通过让游戏误以为 GPU 的处理速度比实际更快,以避免游戏为了适应 Switch 的时钟频率而降低分辨率和渲染距离。 - + GPU Unswizzle GPU 还原 - + Accelerates BCn 3D texture decoding using GPU compute. Disable if experiencing crashes or graphical glitches. 利用 GPU 计算来加速 BCn 格式 3D 纹理的解码。如果遇到崩溃或画面花屏,请禁用此项。 - + GPU Unswizzle Max Texture Size GPU 还原最大纹理尺寸 - + Sets the maximum size (MiB) for GPU-based texture unswizzling. While the GPU is faster for medium and large textures, the CPU may be more efficient for very small ones. Adjust this to find the balance between GPU acceleration and CPU overhead. @@ -902,48 +890,48 @@ Adjust this to find the balance between GPU acceleration and CPU overhead. - + GPU Unswizzle Stream Size GPU 还原流大小 - + Sets the maximum amount of texture data (in MiB) processed per frame. Higher values can reduce stutter during texture loading but may impact frame consistency. 设置每帧处理的纹理数据最大量(单位:MiB)。 较高的数值可以减少纹理加载时的卡顿,但可能会影响帧率的稳定性(即造成帧时间波动)。 - + GPU Unswizzle Chunk Size GPU 还原块大小 - + Determines the number of depth slices processed in a single dispatch. Increasing this can improve throughput on high-end GPUs but may cause TDR or driver timeouts on weaker hardware. 确定在单次调度(Dispatch)中处理的深度切片(Depth Slices)数量。 增加此数值可以提高高端 GPU 的吞吐量(处理效率),但在性能较弱的硬件上可能会引发 TDR(驱动程序重置)或驱动超时。 - + Use Vulkan pipeline cache 启用 Vulkan 管线缓存 - + Enables GPU vendor-specific pipeline cache. This option can improve shader loading time significantly in cases where the Vulkan driver does not store pipeline cache files internally. 启用 GPU 供应商专用的管线缓存。 在 Vulkan 驱动程序内部不存储管线缓存的情况下,此选项可显著提高着色器加载速度。 - + Enable Compute Pipelines (Intel Vulkan Only) 启用计算管线 (仅限 Intel 显卡 Vulkan 模式) - + Required by some games. This setting only exists for Intel proprietary drivers and may crash if enabled. Compute pipelines are always enabled on all other drivers. @@ -952,181 +940,193 @@ Compute pipelines are always enabled on all other drivers. 在所有其他驱动程序上始终启用计算管线。 - + Enable Reactive Flushing 启用反应性刷新 - + Uses reactive flushing instead of predictive flushing, allowing more accurate memory syncing. 使用反应性刷新取代预测性刷新,从而更精确地同步内存。 - + Sync to framerate of video playback 播放视频时帧率同步 - + Run the game at normal speed during video playback, even when the framerate is unlocked. 在视频播放期间以正常速度运行游戏,即使帧率未锁定。 - + Barrier feedback loops 屏障反馈环路 - + Improves rendering of transparency effects in specific games. 改进某些游戏中透明效果的渲染。 - + Enable buffer history 启用缓冲区历史 - + Enables access to previous buffer states. This option may improve rendering quality and performance consistency in some games. 允许访问之前的缓冲状态。 这个选项可能会提升某些游戏的渲染质量和性能一致性。 - + Fix bloom effects 修复泛光效果 - + Removes bloom in Burnout. 去除《火爆狂飙》中的泛光特效。 - + + Enable Legacy Rescale Pass + 启用旧版缩放 + + + + May fix rescale issues in some games by relying on behavior from the previous implementation. +Legacy behavior workaround that fixes line artifacts on AMD and Intel GPUs, and grey texture flicker on Nvidia GPUs in Luigis Mansion 3. + 通过依赖之前实现的行为,可能会修复部分游戏的缩放重叠问题。 +修复 AMD 和 Intel 显卡上的线条伪影,以及《路易斯洋楼3》中 Nvidia 显卡的灰色纹理闪烁的遗留行为变通方法。 + + + Extended Dynamic State 扩展动态状态 - + Controls the number of features that can be used in Extended Dynamic State. Higher states allow for more features and can increase performance, but may cause additional graphical issues. 控制在扩展动态状态中可使用的函数数量。更高的数值允许启用更多功能,并可能提升性能,但同时也可能导致额外的图形问题。 - + Vertex Input Dynamic State 顶点输入动态状态 - + Enables vertex input dynamic state feature for better quality and performance. 开启顶点输入动态状态功能来获得更好的质量和性能。 - + Sample Shading 采样着色 - + Allows the fragment shader to execute per sample in a multi-sampled fragment instead of once per fragment. Improves graphics quality at the cost of performance. Higher values improve quality but degrade performance. 允许片段着色器在多重采样的片段中每个样本执行一次而不是每个片段执行一次。可以提高图形质量,但会降低性能。 更高的值可以提高质量但会降低性能。 - + RNG Seed 随机数生成器种子 - + Controls the seed of the random number generator. Mainly used for speedrunning. 控制随机数生成器的种子。 主要用于竞速游戏。 - + Device Name 设备名称 - + The name of the console. 主机的数量。 - + Homebrew Args 自制软件参数 - + Command-line arguments passed to homebrew at launch (e.g. -noglsl). 启动 homebrew 时需要传递的命令行参数 (例如 -noglsl)。 - + Custom RTC Date: 自定义系统时间: - + This option allows to change the clock of the console. Can be used to manipulate time in games. 此选项允许更改控制台的时钟。 可用于操纵游戏中的时间。 - + The number of seconds from the current unix time 来自当前 unix 时间的秒数。 - + Language: 语言: - + This option can be overridden when region setting is auto-select 当区域设置为自动选择时可以使用此选项替代。 - + Region: 地区: - + The region of the console. 主机的区域。 - + Time Zone: 时区: - + The time zone of the console. 主机的时区。 - + Sound Output Mode: 声音输出模式: - + Console Mode: 控制台模式: - + Selects if the console is in Docked or Handheld mode. Games will change their resolution, details and supported controllers and depending on this setting. Setting to Handheld can help improve performance for low end systems. @@ -1135,1026 +1135,1042 @@ Setting to Handheld can help improve performance for low end systems. 将设置为掌机模式可以帮助低端系统提高性能。 - + Prompt for user profile on boot 启动时提示选择用户账户 - + Useful if multiple people use the same PC. 在多人使用相同的 PC 时有效。 - + Pause when not in focus 在丢失焦点时暂停 - + Pauses emulation when focusing on other windows. 当焦点位于其它窗口时暂停模拟器。 - + Confirm before stopping emulation 停止模拟时需要确认 - + Overrides prompts asking to confirm stopping the emulation. Enabling it bypasses such prompts and directly exits the emulation. 替代提示以确认停止模拟。 启用它将绕过此类提示并直接退出模拟。 - + Hide mouse on inactivity 自动隐藏鼠标光标 - + Hides the mouse after 2.5s of inactivity. 在 2.5 秒无活动后隐藏鼠标。 - + + Disable controller applet + 禁用控制器小程序 + + + + Forcibly disables the use of the controller applet in emulated programs. +When a program attempts to open the controller applet, it is immediately closed. + 强制禁止在模拟程序中使用控制器小程序。 + 当程序尝试打开控制器小程序时,它会立即被关闭。 + + + Check for updates 检查更新 - + Whether or not to check for updates upon startup. 在启动时是否检查更新。 - + Enable Gamemode 启用游戏模式 - + Force X11 as Graphics Backend 强制使用 X11 作为图形后端 - + Custom frontend 自定义前端 - + Real applet 真实的小程序 - - - Disabled - 禁用 - - - + Never 永不 - + On Load 加载时 - + Always 总是 - + CPU CPU - + GPU GPU - + CPU Asynchronous CPU 异步模拟 - + Uncompressed (Best quality) 不压缩 (最高质量) - + BC1 (Low quality) BC1 (低质量) - + BC3 (Medium quality) BC3 (中等质量) - - + + Auto 自动 - + 30 FPS 30 FPS - + 60 FPS 60 FPS - + 90 FPS 90 FPS - + 120 FPS 120 FPS - + Conservative 保守模式 - + Aggressive 激进模式 - + Vulkan Vulkan - + OpenGL GLSL OpenGL GLSL - + OpenGL GLASM (Assembly Shaders, NVIDIA Only) OpenGL GLASM (汇编着色器,仅限 NVIDIA 显卡) - + OpenGL SPIR-V (Experimental, AMD/Mesa Only) OpenGL SPIR-V (实验性,仅限 AMD/Mesa) - + Null 无 - + Fast 高速 - - - + + + Accurate 高精度 - - - + + + Default 系统默认 - + Unsafe (fast) 不安全(快速) - + Safe (stable) 安全(稳定) - + Immediate 即时 - + Balanced 平衡 - + + Strict + 严格 + + + Unsafe 低精度 - + Paranoid (disables most optimizations) 偏执模式 (禁用绝大多数优化项) - + Debugging 调试 - + Dynarmic 动态编译 - + NCE 本机代码执行 - + Borderless Windowed 无边框窗口 - + Exclusive Fullscreen 独占全屏 - + No Video Output 无视频输出 - + CPU Video Decoding CPU 视频解码 - + GPU Video Decoding (Default) GPU 视频解码 (默认) - + 0.25X (180p/270p) [EXPERIMENTAL] 0.25X (180p/270p) [实验性] - + 0.5X (360p/540p) [EXPERIMENTAL] 0.5X (360p/540p) [实验性] - + 0.75X (540p/810p) [EXPERIMENTAL] 0.75X (540p/810p) [实验性] - + 1X (720p/1080p) 1X (720p/1080p) - + 1.25X (900p/1350p) [EXPERIMENTAL] 1.25X (900p/1350p) [实验性] - + 1.5X (1080p/1620p) [EXPERIMENTAL] 1.5X (1080p/1620p) [实验性] - + 2X (1440p/2160p) 2X (1440p/2160p) - + 3X (2160p/3240p) 3X (2160p/3240p) - + 4X (2880p/4320p) 4X (2880p/4320p) - + 5X (3600p/5400p) 5X (3600p/5400p) - + 6X (4320p/6480p) 6X (4320p/6480p) - + 7X (5040p/7560p) 7X (5040p/7560p) - + 8X (5760p/8640p) 8X (5760p/8640p) - + Nearest Neighbor 近邻取样 - + Bilinear 双线性过滤 - + Bicubic 双三线过滤 - + Gaussian 高斯模糊 - + Lanczos Lanczos - + ScaleForce 强制缩放 - + AMD FidelityFX Super Resolution AMD FidelityFX 超级分辨率 - + Area 区域 - + MMPX MMPX - + Zero-Tangent 零切线 - + B-Spline B-Spline - + Mitchell Mitchell - + Spline-1 Spline-1 - + Snapdragon Game Super Resolution 骁龙游戏超级分辨率 - + Snapdragon Game Super Resolution EdgeDir 骁龙游戏超级分辨率 EdgeDir - + None 无 - + FXAA 快速近似抗锯齿 - + SMAA 子像素形态学抗锯齿 - + Default (16:9) 默认 (16:9) - + Force 4:3 强制 4:3 - + Force 21:9 强制 21:9 - + Force 16:10 强制 16:10 - + Stretch to Window 拉伸窗口 - + Automatic 自动 - + 2x 2x - + 4x 4x - + 8x 8x - + 16x 16x - + Japanese (日本語) 日语 (日本語) - + American English 美式英语 - + French (français) 法语 (français) - + German (Deutsch) 德语 (Deutsch) - + Italian (italiano) 意大利语 (italiano) - + Spanish (español) 西班牙语 (español) - + Chinese 中文 - + Korean (한국어) 韩语 (한국어) - + Dutch (Nederlands) 荷兰语 (Nederlands) - + Portuguese (português) 葡萄牙语 (português) - + Russian (Русский) 俄语 (Русский) - + Taiwanese 台湾中文 - + British English 英式英语 - + Canadian French 加拿大法语 - + Latin American Spanish 拉美西班牙语 - + Simplified Chinese 简体中文 - + Traditional Chinese (正體中文) 繁体中文 (正體中文) - + Brazilian Portuguese (português do Brasil) 巴西-葡萄牙语 (português do Brasil) - + Polish (polska) 波兰语(波兰语) - + Thai (แบบไทย) 泰语 - - + + Japan 日本 - + USA 美国 - + Europe 欧洲 - + Australia 澳大利亚 - + China 中国 - + Korea 韩国 - + Taiwan 台湾地区 - + Auto (%1) Auto select time zone 自动 (%1) - + Default (%1) Default time zone 默认 (%1) - + CET 欧洲中部时间 - + CST6CDT 古巴标准时间&古巴夏令时 - + Cuba 古巴 - + EET 东欧时间 - + Egypt 埃及 - + Eire 爱尔兰 - + EST 东部标准时间 - + EST5EDT 东部标准时间&东部夏令时 - + GB 英国 - + GB-Eire 英国-爱尔兰时间 - + GMT GMT - + GMT+0 GMT+0 - + GMT-0 GMT-0 - + GMT0 GMT0 - + Greenwich 格林威治 - + Hongkong 香港 - + HST 美国夏威夷时间 - + Iceland 冰岛 - + Iran 伊朗 - + Israel 以色列 - + Jamaica 牙买加 - + Kwajalein 夸贾林环礁 - + Libya 利比亚 - + MET 中欧时间 - + MST 山区标准时间 (北美) - + MST7MDT 山区标准时间&山区夏令时 (北美) - + Navajo 纳瓦霍 - + NZ 新西兰时间 - + NZ-CHAT NZ-CHAT - + Poland 波兰 - + Portugal 葡萄牙 - + PRC 中国标准时间 - + PST8PDT 太平洋标准时间&太平洋夏令时 - + ROC 台湾时间 - + ROK 韩国时间 - + Singapore 新加坡 - + Turkey 土耳其 - + UCT UCT - + Universal 世界时间 - + UTC 协调世界时 - + W-SU 欧洲-莫斯科时间 - + WET 西欧时间 - + Zulu 祖鲁 - + Mono 单声道 - + Stereo 立体声 - + Surround 环绕声 - + 4GB DRAM (Default) 4GB DRAM (默认) - + 6GB DRAM (Unsafe) 6GB DRAM (不安全) - + 8GB DRAM 8GB DRAM - + 10GB DRAM (Unsafe) 10GB DRAM (不安全) - + 12GB DRAM (Unsafe) 12GB DRAM (不安全) - + Docked 主机模式 - + Handheld 掌机模式 - - + + Normal 正常 - - + + Boost 升频 - - + + Overclock 超频 - + Always ask (Default) 总是询问 (默认) - + Only if game specifies not to stop 仅当游戏不希望停止时 - + Never ask 从不询问 - + Very Small (16 MB) 很小 (16 MB) - + Small (32 MB) 较小 (32 MB) - + Normal (128 MB) 正常 (128 MB) - + Large (256 MB) 较大 (256 MB) - + Very Large (512 MB) 很大 (512 MB) - + Very Low (4 MB) 很低 (4 MB) - + Low (8 MB) 低 (8 MB) - + Normal (16 MB) 正常 (16 MB) - + Medium (32 MB) 中 (32 MB) - + High (64 MB) 高 (64 MB) - + Very Low (32) 很低 (32) - + Low (64) 低 (64) - + Normal (128) 正常 (128) - + Medium (256) 中(256) - + High (512) 高(512) - + + Disabled + 禁用 + + + ExtendedDynamicState 1 扩展动态状态 1 - + ExtendedDynamicState 2 扩展动态状态 2 - + ExtendedDynamicState 3 扩展动态状态 3 - + Tree View 树景视图 - + Grid View 网格视图 @@ -3254,38 +3270,33 @@ Would you like to delete the old save data? 背景颜色: - + % FSR/SGSR sharpening percentage (e.g. 50%) % - - Configure Effects... - 配置效果... - - - + Off 关闭 - + VSync Off 垂直同步关 - + Recommended 推荐 - + On 开启 - + VSync On 垂直同步开 @@ -4902,131 +4913,6 @@ Once deleted, these can NOT be recovered. Are you 100% sure you want to delete t 在文件管理器中打开(&O) - - ConfigurePostProcessing - - - Post-Processing Effects - 后处理效果 - - - - Changes apply immediately while a game is running. - 更改会在游戏运行时立即生效。 - - - - Enable post-processing - 开启后处理 - - - - Preset: - 预设: - - - - Apply - 应用 - - - - Reset Values - 重置值 - - - - Return every effect to the values the preset ships with. - 把每个效果恢复到预设的默认值 - - - - Save As... - 另存为... - - - - Save Preset - 保存预设 - - - - Preset name: - 预设名称: - - - - Clear - 清除 - - - - Remove every effect in use and deselect the preset. - 移除所有使用中的效果并取消选择预设。 - - - - Add Effect - 添加效果 - - - - None - 无 - - - - No effects in use. Pick a preset and press Apply, or add effects one by one. - 没有使用中的效果。请选择一个预设并点击应用,或一个一个地添加效果。 - - - - Custom chain. Pick a preset above and press Apply to replace it. - 自定义链。选择上面的预设并点击应用替换它。 - - - - Active preset: %1 (modified). Press Reset Values to go back to how it ships. - 活动的预设: %1 (已修改)。按重置值可以恢复出厂设置。 - - - - Active preset: %1 - 活动的预设: %1 - - - - Enabled - 开启 - - - - Disabled - 关闭 - - - - Reset to defaults - 重置为默认值 - - - - Effect '%1' was not found. - 找不到效果 '%1'。 - - - - Effect failed to compile: -%1 - 编译效果失败: -%1 - - - - No usable ReShade FX effects were found. Place .fx files in the post_shaders folder. - 找不到可用的 ReShade FX 效果。请将 .fx 文件放到 post_shaders 文件夹中。 - - ConfigureProfileManager @@ -6113,50 +5999,50 @@ Please go to Configure -> System -> Network and make a selection. GRenderWindow - - + + OpenGL not available! OpenGL 模式不可用! - + OpenGL shared contexts are not supported. 不支持 OpenGL 共享上下文。 - + Eden has not been compiled with OpenGL support. Eden 尚未编译为支持 OpenGL。 - - - + + + Error while initializing OpenGL! 初始化 OpenGL 时出错! - + Your GPU may not support OpenGL, or you do not have the latest graphics driver. 您的 GPU 可能不支持 OpenGL ,或者您没有安装最新的显卡驱动。 - + Error while initializing OpenGL 4.6! 初始化 OpenGL 4.6 时出错! - + Your GPU may not support OpenGL 4.6, or you do not have the latest graphics driver.<br><br>GL Renderer:<br>%1 您的 GPU 可能不支持 OpenGL 4.6 ,或者您没有安装最新的显卡驱动。<br><br>GL 渲染器:<br>%1 - + Your GPU may not support one or more required OpenGL extensions. Please ensure you have the latest graphics driver.<br><br>GL Renderer:<br>%1<br><br>Unsupported extensions:<br>%2 您的 GPU 可能不支持某些必需的 OpenGL 扩展。请确保您已经安装最新的显卡驱动。<br><br>GL 渲染器:<br>%1<br><br>不支持的扩展:<br>%2 - + This build doesn't have OpenGL support. 此版本不支持 OpenGL。 @@ -6977,42 +6863,42 @@ Debug Message: 重置窗口大小为1080p - + &Multiplayer 多人游戏 (&M) - + &Tools 工具 (&T) - + Am&iibo Am&iibo - + Launch &Applet 启动小程序 (&A) - + &TAS TAS (&T) - + &Create Home Menu Shortcut 创建主页菜单快捷方式(&C) - + Install &Firmware 安装固件(&F) - + &Help 帮助 (&H) @@ -7038,7 +6924,7 @@ Debug Message: - + &Pause 暂停 (&P) @@ -7139,920 +7025,905 @@ Debug Message: - &User Handbook - 用户手册(&U) + Open &Quickstart Guide + 查看快速导航 (&Q) - + + &FAQ + FAQ (&F) + + + &Capture Screenshot 捕获截图 (&C) - + &Album 相册 (&A) - + &Set Nickname and Owner 设置昵称及所有者 (&S) - + &Delete Game Data 删除游戏数据 (&D) - + &Restore Amiibo 重置 Amiibo (&R) - + &Format Amiibo 格式化 Amiibo (&F) - + &Mii Editor Mii 编辑器 (&M) - + &Configure TAS... 配置 TAS... (&C) - + Configure C&urrent Game... 配置当前游戏... (&U) - - + + &Start 开始 (&S) - + &Reset 重置 (&R) - - + + R&ecord 录制 (&E) - + Open &Controller Menu 打开控制器菜单 (&C) - + Install Decryption &Keys 安装解密密钥(&K) - + &Home Menu 主页 (&H) - + &Desktop 桌面(&D) - + &Application Menu 应用程序菜单(&A) - + &Root Data Folder 根数据文件夹(&R) - + &NAND Folder &NAND 文件夹 - + &SDMC Folder &SDMC 文件夹 - + &Mod Folder &Mod 文件夹 - + &Log Folder &Log 文件夹 - + From Folder 从文件夹 - + From ZIP 从 ZIP - + &Eden Dependencies &Eden 依赖项 - + &Data Manager 数据管理器(&D) - + &Tree View 树景视图 (&T) - + &Grid View 网格视图 (&G) - + Game Icon Size 游戏图标大小 - - + + None 无 - + Show Game &Name 显示游戏名称 (&N) - + Show &Performance Overlay 显示性能覆盖层 - - - Post-Processing &Shaders... - 后处理效果着色器(&S)... - &Carousel View 轮播视图(&C) - + Small (32x32) 小 (32x32) - + Standard (64x64) 标准 (64x64) - + Large (128x128) 大 (128x128) - + Full Size (256x256) 最大 (256x256) - + Broken Vulkan Installation Detected 检测到损坏的 Vulkan 安装 - + Vulkan initialization failed during boot. 在启动时初始化 Vulkan 失败。 - + Running a game TRANSLATORS: This string is shown to the user to explain why yuzu needs to prevent the computer from sleeping 运行游戏 - + Loading Web Applet... 正在加载 Web 小程序... - - + + Disable Web Applet 禁用 Web 小程序 - + Disabling the web applet can lead to undefined behavior and should only be used with Super Mario 3D All-Stars. Are you sure you want to disable the web applet? (This can be re-enabled in the Debug settings.) 禁用网页小程序可能会导致未定义的行为并且应仅在 超级马里奥 3D 全明星中使用。您确定要禁用网页小程序吗? (这可以在调试设置中重新启用。) - + The amount of shaders currently being built 当前正在构建的着色器数量 - + The current selected resolution scaling multiplier. 当前选择的分辨率缩放倍数。 - + Current emulation speed. Values higher or lower than 100% indicate emulation is running faster or slower than a Switch. 当前模拟速度。高于或低于 100% 的数值表示模拟运行比 Switch 快或慢。 - + How many frames per second the game is currently displaying. This will vary from game to game and scene to scene. 游戏当前显示的每秒帧数。这个数值会因游戏和场景的不同而有所变化。 - + Time taken to emulate a Switch frame, not counting framelimiting or v-sync. For full-speed emulation this should be at most 16.67 ms. 模拟 Switch 一帧所需的时间,不包括帧限制或垂直同步。为了全速模拟这个时间最多应为 16.67 毫秒。 - + Unmute 取消静音 - + Mute 静音 - + Reset Volume 重置音量 - - Configure Effects... - 配置效果... - - - + &Clear Recent Files 清除最近的文件(&C) - + &Continue 继续(&C) - + Warning: Outdated Game Format 警告: 游戏格式过时 - + You are using the deconstructed ROM directory format for this game, which is an outdated format that has been superseded by others such as NCA, NAX, XCI, or NSP. Deconstructed ROM directories lack icons, metadata, and update support.<br>For an explanation of the various Switch formats Eden supports, out our user handbook. This message will not be shown again. 您正在为此游戏使用解包 ROM 目录格式,这是一种已过时的格式,它已被 NCA、NAX、XCI 或 NSP 等其他格式取代。解包 ROM 目录缺少图标、元数据和更新支持。<br>有关 Eden 支持的各种 Switch 格式的说明请查阅我们的用户手册。此消息将不再显示。 - - + + Error while loading ROM! 加载 ROM 时出错! - + The ROM format is not supported. 不支持该 ROM 格式。 - + An error occurred initializing the video core. 初始化视频核心时发生错误。 - - This is usually caused by outdated GPU drivers. Please see the log for more details. See: <a href='https://git.eden-emu.dev/eden-emu/eden/src/branch/master/docs/user/HowToAccessLogs.md'>How to access log files</a>. - 这通常是因为过时的 GPU 驱动所导致的。具体情况请查看日志。请查阅: <a href='https://git.eden-emu.dev/eden-emu/eden/src/branch/master/docs/user/HowToAccessLogs.md'>如何访问日志文件</a>。 + + Eden has encountered an error while running the video core. This is usually caused by outdated GPU drivers, including integrated ones. Please see the log for more details. For more information on accessing the log, please see the following page: <a href='https://yuzu-mirror.github.io/help/reference/log-files/'>How to Upload the Log File</a>. + Eden 在运行视频核心时遇到了错误。通常这是由于 GPU 驱动程序过时引起的,包括集成显卡驱动程序。有关详细信息,请查看日志。有关如何访问日志的更多信息,请参阅以下页面:<a href="https://yuzu-mirror.github.io/help/reference/log-files/">如何上传日志文件</a>。 - + Error while loading ROM! %1 %1 signifies a numeric error code. 加载 ROM 时出错! %1 - + %1<br>Please redump your files or ask on Discord/Stoat for help. %1 signifies an error string. %1<br>请重新导出您的文件,或在 Discord/Stoat 上寻求帮助。 - + An unknown error occurred. Please see the log for more details. 发生未知错误。请查看日志以获取更多详情。 - - + + (64-bit) (64 位) - - + + (32-bit) (32 位) - - + + %1 %2 %1 is the title name. %2 indicates if the title is 64-bit or 32-bit %1 %2 - + Closing software... 正在关闭软件... - + Save Data 存档数据 - + Mod Data Mod 数据 - + Error Opening %1 Folder 打开 %1 文件夹出错 - - + + Folder does not exist! 文件夹不存在! - + Remove Installed Game Contents? 是否移除已安装的游戏内容? - + Remove Installed Game Update? 是否移除已安装的游戏更新? - + Remove Installed Game DLC? 是否移除已安装的游戏 DLC? - + Remove Entry 删除条目 - + Delete OpenGL Transferable Shader Cache? 要删除 OpenGL 可传输着色器缓存吗? - + Delete Vulkan Transferable Shader Cache? 要删除 Vulkan 可传输着色器缓存吗? - + Delete All Transferable Shader Caches? 删除所有可传输的着色器缓存? - + Remove Custom Game Configuration? 是否移除自定义游戏配置? - + Remove Cache Storage? 要清除缓存存储吗? - + Remove File 删除文件 - + Remove Play Time Data 删除游戏时间数据 - + Reset play time? 要重置播放时间吗? - - + + RomFS Extraction Failed! RomFS 提取失败! - + There was an error copying the RomFS files or the user cancelled the operation. 复制 RomFS 文件时出错或用户取消了操作。 - + Full 完整 - + Skeleton 结构 - + Select RomFS Dump Mode 选择 RomFS 转储模式 - + Please select the how you would like the RomFS dumped.<br>Full will copy all of the files into the new directory while <br>skeleton will only create the directory structure. 请选择您希望如何导出 RomFS。<br>&quot;完整&quot; 将把所有文件复制到新的目录中,而<br>&quot;结构&quot; 仅会创建目录结构。</br></br> - + There is not enough free space at %1 to extract the RomFS. Please free up space or select a different dump directory at Emulation > Configure > System > Filesystem > Dump Root %1 的可用空间不足,无法提取 RomFS。请释放空间或在模拟 > 配置 > 系统 > 文件系统 > 转储根目录,中选择其它目录 - + Extracting RomFS... 正在提取 RomFS... - - + + Cancel 取消 - + RomFS Extraction Succeeded! RomFS 提取成功! - + The operation completed successfully. 操作已成功完成。 - + Error Opening %1 打开 %1 时出错 - + Select Directory 选择目录 - + Properties 属性 - + The game properties could not be loaded. 无法加载游戏属性。 - + Switch Executable (%1);;All Files (*.*) %1 is an identifier for the Switch executable file extensions. Switch 可执行文件 (%1);;所有文件 (*.*) - + Load File 加载文件 - + Open Extracted ROM Directory 打开已提取的 ROM 目录 - + Invalid Directory Selected 选择的目录无效 - + The directory you have selected does not contain a 'main' file. 您选择的目录不包含 'main' 文件。 - + Installable Switch File (*.nca *.nsp *.xci);;Nintendo Content Archive (*.nca);;Nintendo Submission Package (*.nsp);;NX Cartridge Image (*.xci) 可安装的 Switch 文件 (*.nca *.nsp *.xci);;任天堂内容档案 (*.nca);;任天堂提交包 (*.nsp);;NX 卡带镜像 (*.xci) - + Install Files 安装文件 - + %n file(s) remaining 剩余 %n 个文件 - + Installing file "%1"... 正在安装文件 "%1"... - - + + Install Results 安装结果 - + To avoid possible conflicts, we discourage users from installing base games to the NAND. Please, only use this feature to install updates and DLC. 为了避免可能的冲突,我们不鼓励用户将基础游戏安装到 NAND。 请仅使用此功能来安装更新和 DLC。 - + %n file(s) were newly installed 已新安装 %n 个文件 - + %n file(s) were overwritten 已覆盖了 %n 个文件 - + %n file(s) failed to install %n 个文件安装失败 - + System Application 系统应用 - + System Archive 系统档案 - + System Application Update 系统应用更新 - + Firmware Package (Type A) 固件包 (类型 A) - + Firmware Package (Type B) 固件包 (类型 B) - + Game 游戏 - + Game Update 游戏更新 - + Game DLC 游戏可下载内容 - + Delta Title Delta 标题 - + Select NCA Install Type... 选择 NCA 安装类型... - + Please select the type of title you would like to install this NCA as: (In most instances, the default 'Game' is fine.) 请选择您希望将此 NCA 安装为的标题类型: (在大多数情况下,默认的 '游戏' 就可以。) - + Failed to Install 安装失败 - + The title type you selected for the NCA is invalid. 您为 NCA 选择的标题类型无效。 - + File not found 找不到文件 - + File "%1" not found 未找到文件 "%1" - + OK 确定 - + Function Disabled 功能已被关闭 - + Compatibility list reporting is currently disabled. Check back later! 兼容性列表报告目前已被禁用。请稍后再查看! - + Error opening URL 打开网址出错 - + Unable to open the URL "%1". 无法打开 URL "%1"。 - + TAS Recording TAS 录像 - + Overwrite file of player 1? 要覆盖玩家 1 的文件吗? - + Invalid config detected 检测到无效配置 - + Handheld controller can't be used on docked mode. Pro controller will be selected. 手柄在主机模式下无法使用。将选择 Pro 手柄。 - - + + Amiibo Amiibo - - + + The current amiibo has been removed 当前的 amiibo 已被移除 - + Error 错误 - - + + The current game is not looking for amiibos 当前游戏不支持寻找 amiibo - + Amiibo File (%1);; All Files (*.*) Amiibo 文件 (%1);; 所有文件 (*.*) - + Load Amiibo 读取 Amiibo - + Error loading Amiibo data 加载 Amiibo 数据出错 - + The selected file is not a valid amiibo 所选文件不是有效的 amiibo - + The selected file is already on use 所选文件正在使用中 - + An unknown error occurred 发生未知错误 - + No firmware available 没有可用的固件 - + Firmware Corrupted 固件已损坏 - + Unknown applet 未知小程序 - + Applet doesn't map to a known value. 无法识别该小程序对应的值。 - + Record not found 找不到记录程序 - + Applet not found. Please reinstall firmware. 找不到小程序。请重新安装固件。 - + Capture Screenshot 截取屏幕截图 - + PNG Image (*.png) PNG 图像 (*.png) - + TAS state: Running %1/%2 TAS 状态: 正在运行 %1/%2 - + TAS state: Recording %1 TAS 状态: 正在录制 %1 - + TAS state: Idle %1/%2 TAS 状态: 空闲 %1/%2 - + TAS State: Invalid TAS 状态: 无效 - + &Stop Running 停止运行(&S) - + Stop R&ecording 停止录制(&A) - + Building: %n shader(s) 正在编译:%n 个着色器 - + Scale: %1x %1 is the resolution scaling factor 缩放: %1x - + Speed: %1% / %2% 速度: %1% / %2% - + Speed: %1% 速度: %1% - + Game: %1 FPS 游戏: %1 FPS - + Frame: %1 ms 帧: %1 ms - + NO AA 无 AA - - NO FX - 无 FX - - - - FX - FX - - - + VOLUME: MUTE 音量: 静音 - + VOLUME: %1% Volume percentage (e.g. 50%) 音量: %1% - + Derivation Components Missing 缺少派生组件 - + Decryption keys are missing. Install them now? 缺少解密密钥。现在安装吗? - + Wayland Detected! 检测到 Wayland! - + Wayland is known to have significant performance issues and mysterious bugs. It's recommended to use X11 instead. @@ -8063,74 +7934,74 @@ Would you like to force it for future launches? 您想要在未来的启动中强制执行吗? - + Use X11 使用 X11 - + Continue with Wayland 继续使用 Wayland - + Don't show again 不再显示 - + Restart Required 需要重新启动 - + Restart Eden to apply the X11 backend. 重新启动 Eden 以应用 X11 后端。 - + Slow 慢速 - + Turbo 加速 - + Unlocked 解锁 - + Select RomFS Dump Target 选择 RomFS 转储目标 - + Please select which RomFS you would like to dump. 请选择您想要转储的 RomFS。 - + Are you sure you want to close Eden? 您确实要关闭 Eden 吗? - - - + + + Eden Eden - + Are you sure you want to stop the emulation? Any unsaved progress will be lost. 您确定要停止模拟吗?任何未保存的进度将会丢失。 - + The currently running application has requested Eden to not exit. Would you like to bypass this and exit anyway? @@ -9332,41 +9203,41 @@ p, li { white-space: pre-wrap; } - This game may require firmware to function properly, and you don't have any installed. Please install firmware before launching, or press "OK" to launch anyways. - 这个游戏可能需要固件才能正常运行,但您还没有安装任何固件。请在启动前安装固件,或者按 “确定” 继续启动。 + The game you are trying to launch requires firmware to boot or to get past the opening menu. Please <a href='https://yuzu-mirror.github.io/help/quickstart'>dump and install firmware</a>, or press "OK" to launch anyways. + 您正尝试启动的游戏需要固件才能启动或通过启动画面打开菜单。请 <a href='https://yuzu-mirror.github.io/help/quickstart'>转储并安装固件</a>, 或点击 "确定" 继续启动。 - + Installing Firmware... 正在安装固件…… - - - - - + + + + + Cancel 取消 - + Firmware Install Failed 安装固件失败 - + Firmware Install Succeeded 安装固件成功 - + Firmware integrity verification failed! 固件完整性验证失败! - - + + Verification failed for the following files: %1 @@ -9375,235 +9246,235 @@ p, li { white-space: pre-wrap; } %1 - - + + Verifying integrity... 正在验证完整性... - - + + Integrity verification succeeded! 完整性验证成功! - - + + The operation completed successfully. 操作成功完成。 - - + + Integrity verification failed! 完整性验证失败! - + File contents may be corrupt or missing. 文件内容可能缺失或已损坏。 - + Integrity verification couldn't be performed 无法执行完整性验证 - + Firmware installation cancelled, firmware may be in a bad state or corrupted. File contents could not be checked for validity. 固件安装失败。固件可能处于异常状态或已损坏,无法验证文件内容的有效性。 - + Select Dumped Keys Location 选择导出的密钥文件位置 - + Decryption Keys install succeeded 密钥文件安装成功 - + Decryption Keys install failed 密钥文件安装失败 - + Orphaned Profiles Detected! 检测到孤立的配置文件! - + UNEXPECTED BAD THINGS MAY HAPPEN IF YOU DON'T READ THIS!<br>Eden has detected the following save directories with no attached profile:<br>%1<br><br>The following profiles are valid:<br>%2<br><br>Click "OK" to open your save folder and fix up your profiles.<br>Hint: copy the contents of the largest or last-modified folder elsewhere, delete all orphaned profiles, and move your copied contents to the good profile.<br><br>Still confused? See the <a href='https://git.eden-emu.dev/eden-emu/eden/src/branch/master/docs/user/Orphaned.md'>help page</a>.<br> 如果您不阅读此内容,可能会发生意想不到的糟糕情况!<br>Eden 检测到以下存档目录没有附加的配置文件:<br>%1<br><br>下列配置是有效的:<br>%2<br><br>点击“确定”以打开您的存档文件夹并修复配置文件。<br>提示: 将最大或最近修改的文件夹内容复制到其他地方,删除所有孤立的配置文件,然后将复制的内容移到正确的配置文件中。<br><br>还是感到疑惑? 请查看 <a href='https://git.eden-emu.dev/eden-emu/eden/src/branch/master/docs/user/Orphaned.md'>帮助页</a>。<br> - + Really clear data? 确实要清除数据吗? - + Important data may be lost! 可能会丢失重要的数据! - + Are you REALLY sure? 您真的确定吗? - + Once deleted, your data will NOT come back! Only do this if you're 100% sure you want to delete this data. 在删除后,您将无法找回数据! 仅在您 100% 确认要删除此数据时才这样做。 - + Clearing... 正在清除... - + Select Export Location 选择导出位置 - + %1.zip %1.zip - - - + + + Zipped Archives (*.zip) 压缩档案 (*.zip) - + Exporting data. This may take a while... 正在导出数据。这可能需要一些时间... - + Exporting 正在导出 - + Exported Successfully 导出成功 - + Data was exported successfully. 数据已成功导出。 - + Export Cancelled 导出已被取消 - + Export was cancelled by the user. 导出已被用户取消。 - + Export Failed 导出失败 - + Ensure you have write permissions on the targeted directory and try again. 请确认您是否具有目标目录的写入权限然后再次尝试。 - + Select Import Location 选择导入位置 - + Import Warning 导入警告 - + All previous data in this directory will be deleted. Are you sure you wish to proceed? 此目录中的所有先前数据将被删除。您确定要继续吗? - + Importing data. This may take a while... 正在导入数据。这需要一些时间... - + Importing 正在导入 - + Imported Successfully 导入成功 - + Data was imported successfully. 数据已导入成功。 - + Import Cancelled 导入已被取消 - + Import was cancelled by the user. 导入已被用户取消。 - + Import Failed 导入失败 - + Ensure you have read permissions on the targeted directory and try again. 请确认是否您具有目标目录的读取权限然后再次尝试。 - + Keys not installed 未安装密钥 - + Install decryption keys and restart Eden before attempting to install firmware. 在尝试安装固件之前先安装解密密钥并重启 Eden。 - + Select Dumped Firmware Source Location 选择已转储的固件源位置 - + Select Dumped Firmware ZIP 选择已转储的固件 ZIP - + Firmware cleanup failed 清理固件失败 - + Failed to clean up extracted firmware cache. Check write permissions in the system temp directory and try again. OS reported error: %1 diff --git a/dist/languages/zh_TW.ts b/dist/languages/zh_TW.ts index 463d7fa2ed..34190d4db8 100644 --- a/dist/languages/zh_TW.ts +++ b/dist/languages/zh_TW.ts @@ -592,22 +592,12 @@ SMAA的品質最佳 FXAA在低解析度下可以產生較穩定的畫面 - - Enable post-processing effects - - - - - Applies post-processing effects to the final image. - - - - + Fullscreen Mode: 全螢幕模式: - + The method used to render the window in fullscreen. Borderless offers the best compatibility with the on-screen keyboard that some games request for input. Exclusive fullscreen may offer better performance and better Freesync/Gsync support. @@ -616,47 +606,47 @@ Exclusive fullscreen may offer better performance and better Freesync/Gsync supp 獨佔全螢幕將提供更好的性能以及更佳的FreeSync/G-Sync支援 - + Aspect Ratio: 長寬比: - + Stretches the renderer to fit the specified aspect ratio. Most games only support 16:9, so modifications are required to get other ratios. Also controls the aspect ratio of captured screenshots. - + Use persistent pipeline cache - + Allows saving shaders to storage for faster loading on following game boots. Disabling it is only intended for debugging. 將產生的著色器快取儲存至硬碟,讓遊戲在後續過程中不需再次產生以提高速度 建議僅在偵錯時才停用此選項 - + Use asynchronous GPU emulation - + Uses an extra CPU thread for rendering. This option should always remain enabled. - + NVDEC emulation: NVDEC 模擬: - + Specifies how videos should be decoded. It can either use the CPU or the GPU for decoding, or perform no decoding at all (black screen on videos). In most cases, GPU decoding provides the best performance. @@ -665,12 +655,12 @@ In most cases, GPU decoding provides the best performance. GPU解碼在大多數情況下提供最好的性能 - + ASTC Decoding Method: ASTC解碼方式: - + This option controls how ASTC textures should be decoded. CPU: Use the CPU for decoding. GPU: Use the GPU's compute shaders to decode ASTC textures (recommended). @@ -679,75 +669,55 @@ stuttering but may present artifacts. - + ASTC Recompression Method: ASTC重新壓縮方式: - + Most GPUs lack support for ASTC textures and must decompress to anintermediate format: RGBA8. BC1/BC3: The intermediate format will be recompressed to BC1 or BC3 format, saving VRAM but degrading image quality. - + Frame Pacing Mode (Vulkan only) - + Controls how the emulator manages frame pacing to reduce stuttering and make the frame rate smoother and more consistent. - + VRAM Usage Mode: VRAM 使用模式: - + Selects whether the emulator should prefer to conserve memory or make maximum usage of available video memory for performance. Aggressive mode may impact performance of other applications such as recording software. - + Skip CPU Inner Invalidation 跳過CPU內部失效處理 - + Skips certain cache invalidations during memory updates, reducing CPU usage and improving latency. This may cause soft-crashes. - - GPU Readback Before NCE Invalidation - - - - - Flushes GPU buffer data back to guest memory before NCE invalidates the whole guest page, preserving it while the CPU store proceeds. - - - - - Patch Runtime NROs for NCE - - - - - Applies NCE code patches to runtime-loaded NRO modules.This is required for some games to run correctly. - - - - + VSync Mode: 垂直同步: - + FIFO (VSync) does not drop frames or exhibit tearing but is limited by the screen refresh rate. FIFO Relaxed allows tearing as it recovers from a slow down. Mailbox can have lower latency than FIFO and does not tear but may drop frames. @@ -755,1372 +725,1410 @@ Immediate (no synchronization) presents whatever is available and can exhibit te - + Sync Memory Operations 同步記憶體操作 - + Ensures data consistency between compute and memory operations. This option fixes issues in games, but may degrade performance. Unreal Engine 4 games often see the most significant changes thereof. - + Enable asynchronous presentation (Vulkan only) 啟用非同步顯示(僅限Vulkan) - + Slightly improves performance by moving presentation to a separate CPU thread. 透過將畫面顯示移至獨立的CPU執行緒來略微提升性能。 - + Force maximum clocks (Vulkan only) 強制使用最大時脈(僅限Vulkan) - + Runs work in the background while waiting for graphics commands to keep the GPU from lowering its clock speed. 在等待圖形命令時於背景執行任務以防GPU降低時脈 - + Anisotropic Filtering: 各向異性過濾: - + Controls the quality of texture rendering at oblique angles. Safe to set at 16x on most GPUs. - + GPU Mode: - + Controls the GPU emulation mode. Most games render fine with Fast, but Accurate is still required for some. Particles tend to only render correctly with Accurate mode. - + DMA Accuracy: - + Controls the DMA read mode. Unsafe is faster, while Safe is more stable and can fix issues in some games. Default follows the GPU Accuracy setting. - + GPU Fence Behavior: - + Controls the GPU fence synchronization behavior. Immediate is the fastest option, but can introduce some issues. Balanced offers better compatibility and may fix issues in some games. Accurate further improves compatibility at the cost of some performance. -Default follows the GPU Mode setting. +Strict is the slowest option, but can fix issues that require stricter synchronization. +Default follows the GPU Accuracy setting. - + + Enable GPU buffer readback + + + + + Preserves GPU-modified data by reading it back before uploading. +Some games require this to render certain effects properly. + + + + Enable asynchronous shader compilation - + May reduce shader stutter. - + GPU Clocks - + Makes the game believe GPU work finishes faster than it does, so it stops lowering resolution and render distance to fit the Switch's clocks. - + GPU Unswizzle - + Accelerates BCn 3D texture decoding using GPU compute. Disable if experiencing crashes or graphical glitches. - + GPU Unswizzle Max Texture Size - + Sets the maximum size (MiB) for GPU-based texture unswizzling. While the GPU is faster for medium and large textures, the CPU may be more efficient for very small ones. Adjust this to find the balance between GPU acceleration and CPU overhead. - + GPU Unswizzle Stream Size - + Sets the maximum amount of texture data (in MiB) processed per frame. Higher values can reduce stutter during texture loading but may impact frame consistency. - + GPU Unswizzle Chunk Size - + Determines the number of depth slices processed in a single dispatch. Increasing this can improve throughput on high-end GPUs but may cause TDR or driver timeouts on weaker hardware. - + Use Vulkan pipeline cache 启用 Vulkan 管线缓存 - + Enables GPU vendor-specific pipeline cache. This option can improve shader loading time significantly in cases where the Vulkan driver does not store pipeline cache files internally. 启用 GPU 供应商专用的管线缓存。 在 Vulkan 驱动程序内部不存储管线缓存的情况下,此选项可显著提高着色器加载速度。 - + Enable Compute Pipelines (Intel Vulkan Only) 启用计算管线 (仅限 Intel 显卡 Vulkan 模式) - + Required by some games. This setting only exists for Intel proprietary drivers and may crash if enabled. Compute pipelines are always enabled on all other drivers. - + Enable Reactive Flushing 启用反应性刷新 - + Uses reactive flushing instead of predictive flushing, allowing more accurate memory syncing. 使用反应性刷新取代预测性刷新,从而更精确地同步内存。 - + Sync to framerate of video playback 播放视频时帧率同步 - + Run the game at normal speed during video playback, even when the framerate is unlocked. 在视频播放期间以正常速度运行游戏,即使帧率未锁定。 - + Barrier feedback loops 屏障反馈循环 - + Improves rendering of transparency effects in specific games. 改进某些游戏中透明效果的渲染。 - + Enable buffer history - + Enables access to previous buffer states. This option may improve rendering quality and performance consistency in some games. - + Fix bloom effects - + Removes bloom in Burnout. - + + Enable Legacy Rescale Pass + + + + + May fix rescale issues in some games by relying on behavior from the previous implementation. +Legacy behavior workaround that fixes line artifacts on AMD and Intel GPUs, and grey texture flicker on Nvidia GPUs in Luigis Mansion 3. + + + + Extended Dynamic State - + Controls the number of features that can be used in Extended Dynamic State. Higher states allow for more features and can increase performance, but may cause additional graphical issues. - + Vertex Input Dynamic State - + Enables vertex input dynamic state feature for better quality and performance. - + Sample Shading - + Allows the fragment shader to execute per sample in a multi-sampled fragment instead of once per fragment. Improves graphics quality at the cost of performance. Higher values improve quality but degrade performance. - + RNG Seed 隨機種子 - + Controls the seed of the random number generator. Mainly used for speedrunning. - + Device Name 裝置名稱 - + The name of the console. - + Homebrew Args - + Command-line arguments passed to homebrew at launch (e.g. -noglsl). - + Custom RTC Date: 自定义系统时间: - + This option allows to change the clock of the console. Can be used to manipulate time in games. - + The number of seconds from the current unix time - + Language: 语言: - + This option can be overridden when region setting is auto-select - + Region: 區域: - + The region of the console. - + Time Zone: 時區: - + The time zone of the console. - + Sound Output Mode: 音訊輸出模式: - + Console Mode: 控制台模式: - + Selects if the console is in Docked or Handheld mode. Games will change their resolution, details and supported controllers and depending on this setting. Setting to Handheld can help improve performance for low end systems. - + Prompt for user profile on boot - + Useful if multiple people use the same PC. - + Pause when not in focus - + Pauses emulation when focusing on other windows. - + Confirm before stopping emulation 停止模拟时需要确认 - + Overrides prompts asking to confirm stopping the emulation. Enabling it bypasses such prompts and directly exits the emulation. - + Hide mouse on inactivity 滑鼠閒置時自動隱藏 - + Hides the mouse after 2.5s of inactivity. - + + Disable controller applet + 禁用控制器程序 + + + + Forcibly disables the use of the controller applet in emulated programs. +When a program attempts to open the controller applet, it is immediately closed. + + + + Check for updates - + Whether or not to check for updates upon startup. - + Enable Gamemode 启用游戏模式 - + Force X11 as Graphics Backend - + Custom frontend 自定义前端 - + Real applet 真实的小程序 - - - Disabled - - - - + Never - + On Load - + Always - + CPU CPU - + GPU GPU - + CPU Asynchronous CPU 异步模拟 - + Uncompressed (Best quality) 不壓縮 (最高品質) - + BC1 (Low quality) BC1 (低品質) - + BC3 (Medium quality) BC3 (中品質) - - + + Auto 自動 - + 30 FPS - + 60 FPS - + 90 FPS - + 120 FPS - + Conservative 保守模式(节省 VRAM) - + Aggressive 激进模式 - + Vulkan Vulkan - + OpenGL GLSL - + OpenGL GLASM (Assembly Shaders, NVIDIA Only) - + OpenGL SPIR-V (Experimental, AMD/Mesa Only) - + Null 無 - + Fast - - - + + + Accurate 高精度 - - - + + + Default 預設 - + Unsafe (fast) - + Safe (stable) - + Immediate - + Balanced - + + Strict + + + + Unsafe 低精度 - + Paranoid (disables most optimizations) 偏执模式 (禁用绝大多数优化项) - + Debugging - + Dynarmic Dynarmic - + NCE NCE - + Borderless Windowed 無邊框視窗 - + Exclusive Fullscreen 全螢幕獨占 - + No Video Output 無視訊輸出 - + CPU Video Decoding CPU 視訊解碼 - + GPU Video Decoding (Default) GPU 視訊解碼(預設) - + 0.25X (180p/270p) [EXPERIMENTAL] - + 0.5X (360p/540p) [EXPERIMENTAL] 0.5X (360p/540p) [实验性] - + 0.75X (540p/810p) [EXPERIMENTAL] 0.75X (540p/810p) [實驗性] - + 1X (720p/1080p) 1X (720p/1080p) - + 1.25X (900p/1350p) [EXPERIMENTAL] - + 1.5X (1080p/1620p) [EXPERIMENTAL] 1.5X (1080p/1620p) [實驗性] - + 2X (1440p/2160p) 2X (1440p/2160p) - + 3X (2160p/3240p) 3X (2160p/3240p) - + 4X (2880p/4320p) 4X (2880p/4320p) - + 5X (3600p/5400p) 5X (3600p/5400p) - + 6X (4320p/6480p) 6X (4320p/6480p) - + 7X (5040p/7560p) 7X (5040p/7560p) - + 8X (5760p/8640p) 8X (5760p/8640p) - + Nearest Neighbor 最近鄰 - + Bilinear 雙線性 - + Bicubic 雙立方 - + Gaussian 高斯 - + Lanczos - + ScaleForce 強制縮放 - + AMD FidelityFX Super Resolution - + Area - + MMPX - + Zero-Tangent - + B-Spline - + Mitchell - + Spline-1 - + Snapdragon Game Super Resolution - + Snapdragon Game Super Resolution EdgeDir - + None 無 - + FXAA FXAA - + SMAA SMAA - + Default (16:9) 預設 (16:9) - + Force 4:3 強制 4:3 - + Force 21:9 強制 21:9 - + Force 16:10 強制 16:10 - + Stretch to Window 延伸視窗 - + Automatic 自動 - + 2x 2x - + 4x 4x - + 8x 8x - + 16x 16x - + Japanese (日本語) 日文 (日本語) - + American English 美式英语 - + French (français) 法文 (français) - + German (Deutsch) 德文 (Deutsch) - + Italian (italiano) 義大利文 (italiano) - + Spanish (español) 西班牙文 (español) - + Chinese 中文 - + Korean (한국어) 韓文 (한국어) - + Dutch (Nederlands) 荷蘭文 (Nederlands) - + Portuguese (português) 葡萄牙文 (português) - + Russian (Русский) 俄文 (Русский) - + Taiwanese 台灣中文 - + British English 英式英文 - + Canadian French 加拿大法文 - + Latin American Spanish 拉丁美洲西班牙文 - + Simplified Chinese 簡體中文 - + Traditional Chinese (正體中文) 正體中文 (正體中文) - + Brazilian Portuguese (português do Brasil) 巴西-葡萄牙語 (português do Brasil) - + Polish (polska) - + Thai (แบบไทย) - - + + Japan 日本 - + USA 美國 - + Europe 歐洲 - + Australia 澳洲 - + China 中國 - + Korea 南韓 - + Taiwan 台灣 - + Auto (%1) Auto select time zone 自動 (%1) - + Default (%1) Default time zone 預設 (%1) - + CET 中歐 - + CST6CDT CST6CDT - + Cuba 古巴 - + EET EET - + Egypt 埃及 - + Eire 愛爾蘭 - + EST 北美東部 - + EST5EDT EST5EDT - + GB GB - + GB-Eire 英國-愛爾蘭 - + GMT GMT - + GMT+0 GMT+0 - + GMT-0 GMT-0 - + GMT0 GMT0 - + Greenwich 格林威治 - + Hongkong 香港 - + HST 夏威夷 - + Iceland 冰島 - + Iran 伊朗 - + Israel 以色列 - + Jamaica 牙買加 - + Kwajalein 瓜加林環礁 - + Libya 利比亞 - + MET 中歐 - + MST 北美山區 - + MST7MDT MST7MDT - + Navajo 納瓦霍 - + NZ 紐西蘭 - + NZ-CHAT 紐西蘭-查塔姆群島 - + Poland 波蘭 - + Portugal 葡萄牙 - + PRC 中國 - + PST8PDT 太平洋 - + ROC 臺灣 - + ROK 韓國 - + Singapore 新加坡 - + Turkey 土耳其 - + UCT UCT - + Universal 世界 - + UTC UTC - + W-SU 莫斯科 - + WET 西歐 - + Zulu 協調世界時 - + Mono 單聲道 - + Stereo 立體聲 - + Surround 環繞音效 - + 4GB DRAM (Default) 4GB DRAM (默认) - + 6GB DRAM (Unsafe) 6GB DRAM (不安全) - + 8GB DRAM - + 10GB DRAM (Unsafe) - + 12GB DRAM (Unsafe) - + Docked TV - + Handheld 掌機模式 + + + + Normal + + - Normal + Boost - Boost - - - - - Overclock - + Always ask (Default) 总是询问 (默认) - + Only if game specifies not to stop 仅当游戏不希望停止时 - + Never ask 从不询问 - + Very Small (16 MB) - + Small (32 MB) - + Normal (128 MB) - + Large (256 MB) - + Very Large (512 MB) - + Very Low (4 MB) - + Low (8 MB) - + Normal (16 MB) - + Medium (32 MB) - + High (64 MB) - + Very Low (32) - + Low (64) - + Normal (128) - + Medium (256) - + High (512) - + + Disabled + + + + ExtendedDynamicState 1 - + ExtendedDynamicState 2 - + ExtendedDynamicState 3 - + Tree View - + Grid View @@ -3219,38 +3227,33 @@ Would you like to delete the old save data? 背景顏色: - + % FSR/SGSR sharpening percentage (e.g. 50%) - - Configure Effects... - - - - + Off 關閉 - + VSync Off 垂直同步關 - + Recommended 推薦 - + On 開啟 - + VSync On 垂直同步開 @@ -4863,130 +4866,6 @@ Once deleted, these can NOT be recovered. Are you 100% sure you want to delete t - - ConfigurePostProcessing - - - Post-Processing Effects - - - - - Changes apply immediately while a game is running. - - - - - Enable post-processing - - - - - Preset: - - - - - Apply - - - - - Reset Values - - - - - Return every effect to the values the preset ships with. - - - - - Save As... - - - - - Save Preset - - - - - Preset name: - - - - - Clear - - - - - Remove every effect in use and deselect the preset. - - - - - Add Effect - - - - - None - - - - - No effects in use. Pick a preset and press Apply, or add effects one by one. - - - - - Custom chain. Pick a preset above and press Apply to replace it. - - - - - Active preset: %1 (modified). Press Reset Values to go back to how it ships. - - - - - Active preset: %1 - - - - - Enabled - - - - - Disabled - - - - - Reset to defaults - - - - - Effect '%1' was not found. - - - - - Effect failed to compile: -%1 - - - - - No usable ReShade FX effects were found. Place .fx files in the post_shaders folder. - - - ConfigureProfileManager @@ -6072,50 +5951,50 @@ Please go to Configure -> System -> Network and make a selection. GRenderWindow - - + + OpenGL not available! 無法使用 OpenGL 模式! - + OpenGL shared contexts are not supported. 不支援 OpenGL 共用的上下文。 - + Eden has not been compiled with OpenGL support. - - - + + + Error while initializing OpenGL! 初始化 OpenGL 時發生錯誤! - + Your GPU may not support OpenGL, or you do not have the latest graphics driver. 您的 GPU 可能不支援 OpenGL,或是未安裝最新的圖形驅動程式 - + Error while initializing OpenGL 4.6! 初始化 OpenGL 4.6 時發生錯誤! - + Your GPU may not support OpenGL 4.6, or you do not have the latest graphics driver.<br><br>GL Renderer:<br>%1 您的 GPU 可能不支援 OpenGL 4.6,或是未安裝最新的圖形驅動程式<br><br>GL 渲染器:<br>%1 - + Your GPU may not support one or more required OpenGL extensions. Please ensure you have the latest graphics driver.<br><br>GL Renderer:<br>%1<br><br>Unsupported extensions:<br>%2 您的 GPU 可能不支援某些必需的 OpenGL 功能。請確保您已安裝最新的圖形驅動程式。<br><br>GL 渲染器:<br>%1<br><br>不支援的功能:<br>%2 - + This build doesn't have OpenGL support. @@ -6935,42 +6814,42 @@ Debug Message: 重設視窗大小為 1080p - + &Multiplayer 多人遊戲 (&M) - + &Tools 工具 (&T) - + Am&iibo - + Launch &Applet - + &TAS TAS (&T) - + &Create Home Menu Shortcut - + Install &Firmware - + &Help 說明 (&H) @@ -6996,7 +6875,7 @@ Debug Message: - + &Pause 暫停(&P) @@ -7097,176 +6976,176 @@ Debug Message: - &User Handbook - + Open &Quickstart Guide + 快速入門 (&Q) - + + &FAQ + 常見問題 (&F) + + + &Capture Screenshot 截圖 (&C) - + &Album - + &Set Nickname and Owner 登錄持有者和暱稱 (&S) - + &Delete Game Data 清除遊戲資料 (&D) - + &Restore Amiibo 復原資料 (&R) - + &Format Amiibo 初始化 Amiibo (&F) - + &Mii Editor - + &Configure TAS... 設定 &TAS… - + Configure C&urrent Game... 目前遊戲設定...(&U) - - + + &Start 開始(&S) - + &Reset 重設 (&R) - - + + R&ecord 錄製 (&E) - + Open &Controller Menu 打开控制器菜单 (&C) - + Install Decryption &Keys - + &Home Menu - + &Desktop - + &Application Menu - + &Root Data Folder - + &NAND Folder - + &SDMC Folder - + &Mod Folder - + &Log Folder - + From Folder - + From ZIP - + &Eden Dependencies - + &Data Manager - + &Tree View - + &Grid View - + Game Icon Size - - + + None - + Show Game &Name - - - Show &Performance Overlay - - - Post-Processing &Shaders... + Show &Performance Overlay @@ -7275,737 +7154,722 @@ Debug Message: - + Small (32x32) - + Standard (64x64) - + Large (128x128) - + Full Size (256x256) - + Broken Vulkan Installation Detected - + Vulkan initialization failed during boot. - + Running a game TRANSLATORS: This string is shown to the user to explain why yuzu needs to prevent the computer from sleeping - + Loading Web Applet... - - + + Disable Web Applet - + Disabling the web applet can lead to undefined behavior and should only be used with Super Mario 3D All-Stars. Are you sure you want to disable the web applet? (This can be re-enabled in the Debug settings.) - + The amount of shaders currently being built - + The current selected resolution scaling multiplier. - + Current emulation speed. Values higher or lower than 100% indicate emulation is running faster or slower than a Switch. - + How many frames per second the game is currently displaying. This will vary from game to game and scene to scene. - + Time taken to emulate a Switch frame, not counting framelimiting or v-sync. For full-speed emulation this should be at most 16.67 ms. - + Unmute - + Mute - + Reset Volume - - Configure Effects... - - - - + &Clear Recent Files - + &Continue - + Warning: Outdated Game Format - + You are using the deconstructed ROM directory format for this game, which is an outdated format that has been superseded by others such as NCA, NAX, XCI, or NSP. Deconstructed ROM directories lack icons, metadata, and update support.<br>For an explanation of the various Switch formats Eden supports, out our user handbook. This message will not be shown again. - - + + Error while loading ROM! - + The ROM format is not supported. - + An error occurred initializing the video core. - - This is usually caused by outdated GPU drivers. Please see the log for more details. See: <a href='https://git.eden-emu.dev/eden-emu/eden/src/branch/master/docs/user/HowToAccessLogs.md'>How to access log files</a>. + + Eden has encountered an error while running the video core. This is usually caused by outdated GPU drivers, including integrated ones. Please see the log for more details. For more information on accessing the log, please see the following page: <a href='https://yuzu-mirror.github.io/help/reference/log-files/'>How to Upload the Log File</a>. - + Error while loading ROM! %1 %1 signifies a numeric error code. - + %1<br>Please redump your files or ask on Discord/Stoat for help. %1 signifies an error string. - + An unknown error occurred. Please see the log for more details. - - + + (64-bit) - - + + (32-bit) - - + + %1 %2 %1 is the title name. %2 indicates if the title is 64-bit or 32-bit - + Closing software... - + Save Data - + Mod Data - + Error Opening %1 Folder - - + + Folder does not exist! - + Remove Installed Game Contents? - + Remove Installed Game Update? - + Remove Installed Game DLC? - + Remove Entry - + Delete OpenGL Transferable Shader Cache? - + Delete Vulkan Transferable Shader Cache? - + Delete All Transferable Shader Caches? - + Remove Custom Game Configuration? - + Remove Cache Storage? - + Remove File - + Remove Play Time Data - + Reset play time? - - + + RomFS Extraction Failed! - + There was an error copying the RomFS files or the user cancelled the operation. - + Full - + Skeleton - + Select RomFS Dump Mode - + Please select the how you would like the RomFS dumped.<br>Full will copy all of the files into the new directory while <br>skeleton will only create the directory structure. - + There is not enough free space at %1 to extract the RomFS. Please free up space or select a different dump directory at Emulation > Configure > System > Filesystem > Dump Root - + Extracting RomFS... - - + + Cancel - + RomFS Extraction Succeeded! - + The operation completed successfully. - + Error Opening %1 - + Select Directory - + Properties - + The game properties could not be loaded. - + Switch Executable (%1);;All Files (*.*) %1 is an identifier for the Switch executable file extensions. - + Load File - + Open Extracted ROM Directory - + Invalid Directory Selected - + The directory you have selected does not contain a 'main' file. - + Installable Switch File (*.nca *.nsp *.xci);;Nintendo Content Archive (*.nca);;Nintendo Submission Package (*.nsp);;NX Cartridge Image (*.xci) - + Install Files - + %n file(s) remaining - + Installing file "%1"... - - + + Install Results - + To avoid possible conflicts, we discourage users from installing base games to the NAND. Please, only use this feature to install updates and DLC. - + %n file(s) were newly installed - + %n file(s) were overwritten - + %n file(s) failed to install - + System Application - + System Archive - + System Application Update - + Firmware Package (Type A) - + Firmware Package (Type B) - + Game - + Game Update - + Game DLC - + Delta Title - + Select NCA Install Type... - + Please select the type of title you would like to install this NCA as: (In most instances, the default 'Game' is fine.) - + Failed to Install - + The title type you selected for the NCA is invalid. - + File not found - + File "%1" not found - + OK - + Function Disabled - + Compatibility list reporting is currently disabled. Check back later! - + Error opening URL - + Unable to open the URL "%1". - + TAS Recording - + Overwrite file of player 1? - + Invalid config detected - + Handheld controller can't be used on docked mode. Pro controller will be selected. - - + + Amiibo - - + + The current amiibo has been removed - + Error - - + + The current game is not looking for amiibos - + Amiibo File (%1);; All Files (*.*) - + Load Amiibo - + Error loading Amiibo data - + The selected file is not a valid amiibo - + The selected file is already on use - + An unknown error occurred - + No firmware available - + Firmware Corrupted - + Unknown applet - + Applet doesn't map to a known value. - + Record not found - + Applet not found. Please reinstall firmware. - + Capture Screenshot - + PNG Image (*.png) - + TAS state: Running %1/%2 - + TAS state: Recording %1 - + TAS state: Idle %1/%2 - + TAS State: Invalid - + &Stop Running - + Stop R&ecording - + Building: %n shader(s) - + Scale: %1x %1 is the resolution scaling factor - + Speed: %1% / %2% - + Speed: %1% - + Game: %1 FPS - + Frame: %1 ms - + NO AA - - NO FX - - - - - FX - - - - + VOLUME: MUTE - + VOLUME: %1% Volume percentage (e.g. 50%) - + Derivation Components Missing - + Decryption keys are missing. Install them now? - + Wayland Detected! - + Wayland is known to have significant performance issues and mysterious bugs. It's recommended to use X11 instead. @@ -8013,74 +7877,74 @@ Would you like to force it for future launches? - + Use X11 - + Continue with Wayland - + Don't show again - + Restart Required - + Restart Eden to apply the X11 backend. - + Slow - + Turbo - + Unlocked - + Select RomFS Dump Target - + Please select which RomFS you would like to dump. - + Are you sure you want to close Eden? - - - + + + Eden - + Are you sure you want to stop the emulation? Any unsaved progress will be lost. - + The currently running application has requested Eden to not exit. Would you like to bypass this and exit anyway? @@ -9267,275 +9131,275 @@ p, li { white-space: pre-wrap; } - This game may require firmware to function properly, and you don't have any installed. Please install firmware before launching, or press "OK" to launch anyways. + The game you are trying to launch requires firmware to boot or to get past the opening menu. Please <a href='https://yuzu-mirror.github.io/help/quickstart'>dump and install firmware</a>, or press "OK" to launch anyways. - + Installing Firmware... - - - - - + + + + + Cancel - + Firmware Install Failed - + Firmware Install Succeeded - + Firmware integrity verification failed! - - + + Verification failed for the following files: %1 - - + + Verifying integrity... - - - - Integrity verification succeeded! - - + Integrity verification succeeded! + + + + + The operation completed successfully. - - + + Integrity verification failed! - + File contents may be corrupt or missing. - + Integrity verification couldn't be performed - + Firmware installation cancelled, firmware may be in a bad state or corrupted. File contents could not be checked for validity. - + Select Dumped Keys Location - + Decryption Keys install succeeded - + Decryption Keys install failed - + Orphaned Profiles Detected! - + UNEXPECTED BAD THINGS MAY HAPPEN IF YOU DON'T READ THIS!<br>Eden has detected the following save directories with no attached profile:<br>%1<br><br>The following profiles are valid:<br>%2<br><br>Click "OK" to open your save folder and fix up your profiles.<br>Hint: copy the contents of the largest or last-modified folder elsewhere, delete all orphaned profiles, and move your copied contents to the good profile.<br><br>Still confused? See the <a href='https://git.eden-emu.dev/eden-emu/eden/src/branch/master/docs/user/Orphaned.md'>help page</a>.<br> - + Really clear data? - + Important data may be lost! - + Are you REALLY sure? - + Once deleted, your data will NOT come back! Only do this if you're 100% sure you want to delete this data. - + Clearing... - + Select Export Location - + %1.zip - - - + + + Zipped Archives (*.zip) - + Exporting data. This may take a while... - + Exporting - + Exported Successfully - + Data was exported successfully. - + Export Cancelled - + Export was cancelled by the user. - + Export Failed - + Ensure you have write permissions on the targeted directory and try again. - + Select Import Location - + Import Warning - + All previous data in this directory will be deleted. Are you sure you wish to proceed? - + Importing data. This may take a while... - + Importing - + Imported Successfully - + Data was imported successfully. - + Import Cancelled - + Import was cancelled by the user. - + Import Failed - + Ensure you have read permissions on the targeted directory and try again. - + Keys not installed - + Install decryption keys and restart Eden before attempting to install firmware. - + Select Dumped Firmware Source Location - + Select Dumped Firmware ZIP - + Firmware cleanup failed - + Failed to clean up extracted firmware cache. Check write permissions in the system temp directory and try again. OS reported error: %1 diff --git a/dist/post_presets/Anime.fxp b/dist/post_presets/Anime.fxp deleted file mode 100644 index a0019905ce..0000000000 --- a/dist/post_presets/Anime.fxp +++ /dev/null @@ -1,3 +0,0 @@ -name=Anime -description=Cel shaded look: the picture is cleaned first, then the lighting is collapsed into flat bands with inked edges, finished with a small glow. -chain=Denoise.fx|Denoise|Strength=0.18,Radius=1.2;CelShading.fx|CelShading|Bands=5,BandContrast=0.35,BandEdge=0.2,Detail=0.7,OutlineStrength=0.7,OutlineThreshold=0.2,Saturation=1.3;Bloom.fx|Bloom|Radius=1.2,Amount=0.25 diff --git a/dist/post_presets/Cinematic.fxp b/dist/post_presets/Cinematic.fxp deleted file mode 100644 index 582226f2da..0000000000 --- a/dist/post_presets/Cinematic.fxp +++ /dev/null @@ -1,3 +0,0 @@ -name=Cinematic -description=Film look: soft glow on the highlights, a filmic contrast curve, cool shadows against warm highlights, fine grain and a gentle vignette. -chain=Bloom.fx|Bloom|Radius=1.6,Amount=0.35;FilmicCurve.fx|FilmicCurve|Toe=1.35,Shoulder=1.3,Amount=0.85;SplitToning.fx|SplitToning|ShadowHue=210,ShadowStrength=0.25,HighlightHue=38,HighlightStrength=0.3;FilmGrain.fx|FilmGrain|Intensity=0.022;Vignette.fx|Vignette|Strength=0.5 diff --git a/dist/post_presets/Clean.fxp b/dist/post_presets/Clean.fxp deleted file mode 100644 index c44e519e0f..0000000000 --- a/dist/post_presets/Clean.fxp +++ /dev/null @@ -1,3 +0,0 @@ -name=Clean -description=Cleans up a low internal resolution: removes dithering and compression noise, smooths banded skies and brings edge detail back. The safe starting point if you are not sure what you want. -chain=Denoise.fx|Denoise|Strength=0.14,Curve=1.2;Deband.fx|Deband|;Sharpen.fx|Sharpen|Amount=0.75 diff --git a/dist/post_presets/Dreamy.fxp b/dist/post_presets/Dreamy.fxp deleted file mode 100644 index cbf56c77af..0000000000 --- a/dist/post_presets/Dreamy.fxp +++ /dev/null @@ -1,3 +0,0 @@ -name=Dreamy -description=Soft focus: the centre of the screen stays sharp while everything around it blurs, with a wide glow over the highlights. Good for slower games and cutscenes. -chain=Blur.fx|Blur|Radius=6,Strength=0.85,FocusSize=0.28,FocusSoftness=0.5;Bloom.fx|Bloom|Radius=2.0,Amount=0.55 diff --git a/dist/post_presets/Retro.fxp b/dist/post_presets/Retro.fxp deleted file mode 100644 index ac4059e641..0000000000 --- a/dist/post_presets/Retro.fxp +++ /dev/null @@ -1,3 +0,0 @@ -name=Retro -description=Old television look: colour fringing at the edges of the screen, curved scanlines with a phosphor mask, and darkened corners. The scanline roll is switched off so it does not crawl. -chain=ChromaticAberration.fx|ChromaticAberration|Strength=1.0;CRT.fx|CRT|RollSpeed=0,Bleed=1.2;Vignette.fx|Vignette|Strength=0.7 diff --git a/dist/post_presets/Vivid.fxp b/dist/post_presets/Vivid.fxp deleted file mode 100644 index 6a69a8e27f..0000000000 --- a/dist/post_presets/Vivid.fxp +++ /dev/null @@ -1,3 +0,0 @@ -name=Vivid -description=Punchier colour without stylising the image: warmer and more saturated, blacks and whites pushed to the ends of the range, and a light sharpen. -chain=NaturalColors.fx|NaturalColors|Luma=1.15,Chroma=1.35;Levels.fx|Levels|InputBlack=0.02,InputWhite=0.98;Sharpen.fx|Sharpen|Amount=0.5 diff --git a/dist/post_shaders/Bloom.fx b/dist/post_shaders/Bloom.fx deleted file mode 100644 index a450b21331..0000000000 --- a/dist/post_shaders/Bloom.fx +++ /dev/null @@ -1,70 +0,0 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - -// SPDX-FileCopyrightText: Copyright 2012 PPSSPP Project -// SPDX-License-Identifier: GPL-2.0-or-later -// Ported from bloomnoblur.fsh in PPSSPP. - -texture BackBufferTex : COLOR; -sampler BackBuffer { Texture = BackBufferTex; }; - -uniform float Radius < - ui_type = "slider"; - ui_label = "Radius"; - ui_tooltip = "How far the glow spreads from bright areas."; - ui_min = 0.0; ui_max = 4.0; ui_step = 0.05; -> = 1.0; - -uniform float Amount < - ui_type = "slider"; - ui_label = "Amount"; - ui_tooltip = "Strength of the glow added on top of the image."; - ui_min = 0.0; ui_max = 2.0; ui_step = 0.05; -> = 0.6; - -void VS_PostProcess(in uint id : SV_VertexID, out float4 pos : SV_Position, out float2 uv : TEXCOORD) -{ - uv = float2(float(id & 2), float((id & 1) << 1)); - pos = float4(uv * float2(2.0, -2.0) + float2(-1.0, 1.0), 0.0, 1.0); -} - -float Weight(float3 color) -{ - float gray = (color.r + color.g + color.b) / 3.0; - float saturation = (abs(color.r - gray) + abs(color.g - gray) + abs(color.b - gray)) / 3.0; - return gray * gray / max(saturation, 0.25); -} - -float4 PS_Bloom(float4 pos : SV_Position, float2 uv : TEXCOORD) : SV_Target -{ - float3 color = tex2D(BackBuffer, uv).rgb; - - float gray = (color.r + color.g + color.b) / 3.0; - float saturation = (abs(color.r - gray) + abs(color.g - gray) + abs(color.b - gray)) / 3.0; - float spread = 0.002 * gray / max(saturation, 0.25) * Radius; - - float3 sum = float3(0.0, 0.0, 0.0); - [unroll] for (int x = -3; x <= 3; x += 2) - { - [unroll] for (int y = -3; y <= 3; y += 2) - { - float3 tap = tex2D(BackBuffer, uv + float2(x, y) * spread).rgb; - sum += tap * Weight(tap); - } - } - sum /= 16.0; - - return float4(saturate(color + sum * Amount), 1.0); -} - -technique Bloom < - ui_label = "Bloom"; - ui_tooltip = "Bleeds light out of the brightest areas into a soft halo, the way a camera does when pointed at something too bright."; -> -{ - pass - { - VertexShader = VS_PostProcess; - PixelShader = PS_Bloom; - } -} diff --git a/dist/post_shaders/Blur.fx b/dist/post_shaders/Blur.fx deleted file mode 100644 index aa17d03c2e..0000000000 --- a/dist/post_shaders/Blur.fx +++ /dev/null @@ -1,87 +0,0 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - -texture BackBufferTex : COLOR; -sampler BackBuffer { Texture = BackBufferTex; }; - -uniform float Radius < - ui_type = "slider"; - ui_label = "Radius"; - ui_tooltip = "How far the blur reaches, in pixels."; - ui_min = 1.0; ui_max = 12.0; ui_step = 0.5; -> = 4.0; - -uniform float Strength < - ui_type = "slider"; - ui_label = "Strength"; - ui_tooltip = "Blend between the original image and the blurred one."; - ui_min = 0.0; ui_max = 1.0; ui_step = 0.05; -> = 1.0; - -uniform float FocusSize < - ui_type = "slider"; - ui_label = "Sharp Centre"; - ui_tooltip = "Size of the region left in focus at the centre of the screen. At zero the whole image is blurred evenly."; - ui_min = 0.0; ui_max = 1.0; ui_step = 0.05; -> = 0.0; - -uniform float FocusSoftness < - ui_type = "slider"; - ui_label = "Focus Falloff"; - ui_tooltip = "How gradually the sharp centre gives way to the blur."; - ui_min = 0.05; ui_max = 1.0; ui_step = 0.05; -> = 0.4; - -static const int TAPS = 17; - -void VS_PostProcess(in uint id : SV_VertexID, out float4 pos : SV_Position, out float2 uv : TEXCOORD) -{ - uv = float2(float(id & 2), float((id & 1) << 1)); - pos = float4(uv * float2(2.0, -2.0) + float2(-1.0, 1.0), 0.0, 1.0); -} - -float4 PS_Blur(float4 pos : SV_Position, float2 uv : TEXCOORD) : SV_Target -{ - float2 texel = float2(BUFFER_RCP_WIDTH, BUFFER_RCP_HEIGHT); - float3 original = tex2D(BackBuffer, uv).rgb; - - float2 centred = (uv - 0.5) * float2(BUFFER_WIDTH * BUFFER_RCP_HEIGHT, 1.0) * 2.0; - float distance_from_centre = length(centred); - float no_focus = 1.0 - step(0.001, FocusSize); - float focus = max(smoothstep(FocusSize, FocusSize + FocusSoftness, distance_from_centre), no_focus); - float amount = Strength * focus; - - float angle = frac(sin(dot(pos.xy, float2(12.9898, 78.233))) * 43758.5453) * 6.2831853; - float2 spoke = float2(cos(angle), sin(angle)); - - const float2 turn = float2(cos(2.39996323), sin(2.39996323)); - const float decay = exp(-2.0 / float(TAPS)); - float weight = exp(-1.0 / float(TAPS)); - - float3 sum = float3(0.0, 0.0, 0.0); - float total = 0.0; - [unroll] for (int i = 0; i < TAPS; ++i) - { - float reach = sqrt((float(i) + 0.5) / float(TAPS)); - sum += tex2D(BackBuffer, uv + spoke * reach * texel * Radius).rgb * weight; - total += weight; - weight *= decay; - spoke = float2(spoke.x * turn.x - spoke.y * turn.y, - spoke.x * turn.y + spoke.y * turn.x); - } - - float3 blurred = sum / total; - return float4(lerp(original, blurred, amount), 1.0); -} - -technique Blur < - ui_label = "Blur"; - ui_tooltip = "Gaussian blur with an optional sharp centre, for softening the picture or faking depth of field."; -> -{ - pass - { - VertexShader = VS_PostProcess; - PixelShader = PS_Blur; - } -} diff --git a/dist/post_shaders/CRT.fx b/dist/post_shaders/CRT.fx deleted file mode 100644 index 51bb810e9f..0000000000 --- a/dist/post_shaders/CRT.fx +++ /dev/null @@ -1,74 +0,0 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - -// SPDX-FileCopyrightText: Copyright 2012 PPSSPP Project -// SPDX-License-Identifier: GPL-2.0-or-later -// Ported from crt.fsh in PPSSPP, by KillaMaaki. - - -texture BackBufferTex : COLOR; -sampler BackBuffer { Texture = BackBufferTex; }; - -uniform float Timer < source = "timer"; > = 0.0; - -uniform float Density < - ui_type = "slider"; - ui_label = "Line Density"; - ui_min = 60.0; ui_max = 720.0; ui_step = 10.0; -> = 272.0; - -uniform float RollSpeed < - ui_type = "slider"; - ui_label = "Roll Speed"; - ui_tooltip = "Speed of the rolling bar. Zero disables it."; - ui_min = 0.0; ui_max = 2.0; ui_step = 0.05; -> = 1.0; - -uniform float Bleed < - ui_type = "slider"; - ui_label = "Colour Bleed"; - ui_tooltip = "Horizontal separation of the red and green channels."; - ui_min = 0.0; ui_max = 4.0; ui_step = 0.1; -> = 1.0; - -void VS_PostProcess(in uint id : SV_VertexID, out float4 pos : SV_Position, out float2 uv : TEXCOORD) -{ - uv = float2(float(id & 2), float((id & 1) << 1)); - pos = float4(uv * float2(2.0, -2.0) + float2(-1.0, 1.0), 0.0, 1.0); -} - -float4 PS_CRT(float4 pos : SV_Position, float2 uv : TEXCOORD) : SV_Target -{ - float seconds = Timer * 0.001; - float scan = floor((uv.y + seconds * RollSpeed * 0.5) * Density); - float line_intensity = frac(scan * 0.5) * 2.0; - - float2 shift = float2(line_intensity * 0.0005, 0.0); - float2 bleed = float2(BUFFER_RCP_WIDTH * Bleed, 0.0); - - float r = tex2D(BackBuffer, uv + bleed + shift).r; - float g = tex2D(BackBuffer, uv - bleed + shift).g; - float b = tex2D(BackBuffer, uv).b; - - float3 color = float3(r, g * 0.99, b) * clamp(line_intensity, 0.85, 1.0); - - if (RollSpeed > 0.0) - { - float rollbar = sin((uv.y + seconds * RollSpeed) * 4.0); - color += rollbar * 0.02; - } - - return float4(saturate(color), 1.0); -} - -technique CRT < - ui_label = "CRT"; - ui_tooltip = "Curved scanlines and the phosphor mask of a CRT television, for games that were drawn with that kind of screen in mind."; -> -{ - pass - { - VertexShader = VS_PostProcess; - PixelShader = PS_CRT; - } -} diff --git a/dist/post_shaders/Cartoon.fx b/dist/post_shaders/Cartoon.fx deleted file mode 100644 index 3dbe9d77b0..0000000000 --- a/dist/post_shaders/Cartoon.fx +++ /dev/null @@ -1,79 +0,0 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - -// SPDX-FileCopyrightText: Copyright 2012 PPSSPP Project -// SPDX-FileCopyrightText: guest(r) -// SPDX-License-Identifier: GPL-2.0-or-later -// Ported from cartoon.fsh in PPSSPP, Advanced Cartoon shader I by guest(r). - -texture BackBufferTex : COLOR; -sampler BackBuffer { Texture = BackBufferTex; }; - -uniform float EdgeStrength < - ui_type = "slider"; - ui_label = "Edge Strength"; - ui_tooltip = "Darkness of the ink outline drawn around detected edges."; - ui_min = 0.0; ui_max = 2.0; ui_step = 0.05; -> = 0.5; - -uniform float Levels < - ui_type = "slider"; - ui_label = "Colour Levels"; - ui_tooltip = "How many bands the colours are quantised into."; - ui_min = 2.0; ui_max = 16.0; ui_step = 1.0; -> = 4.0; - -void VS_PostProcess(in uint id : SV_VertexID, out float4 pos : SV_Position, out float2 uv : TEXCOORD) -{ - uv = float2(float(id & 2), float((id & 1) << 1)); - pos = float4(uv * float2(2.0, -2.0) + float2(-1.0, 1.0), 0.0, 1.0); -} - -float4 PS_Cartoon(float4 pos : SV_Position, float2 uv : TEXCOORD) : SV_Target -{ - float2 texel = float2(BUFFER_RCP_WIDTH, BUFFER_RCP_HEIGHT); - - float3 c00 = tex2D(BackBuffer, uv + texel * float2(-1.0, -1.0)).rgb; - float3 c10 = tex2D(BackBuffer, uv + texel * float2( 0.0, -1.0)).rgb; - float3 c20 = tex2D(BackBuffer, uv + texel * float2( 1.0, -1.0)).rgb; - float3 c01 = tex2D(BackBuffer, uv + texel * float2(-1.0, 0.0)).rgb; - float3 c11 = tex2D(BackBuffer, uv).rgb; - float3 c21 = tex2D(BackBuffer, uv + texel * float2( 1.0, 0.0)).rgb; - float3 c02 = tex2D(BackBuffer, uv + texel * float2(-1.0, 1.0)).rgb; - float3 c12 = tex2D(BackBuffer, uv + texel * float2( 0.0, 1.0)).rgb; - float3 c22 = tex2D(BackBuffer, uv + texel * float2( 1.0, 1.0)).rgb; - - const float3 dt = float3(1.0, 1.0, 1.0); - - float d1 = dot(abs(c00 - c22), dt); - float d2 = dot(abs(c20 - c02), dt); - float hl = dot(abs(c01 - c21), dt); - float vl = dot(abs(c10 - c12), dt); - float edge = EdgeStrength * (d1 + d2 + hl + vl) / (dot(c11, dt) + 0.15); - - float lc = Levels * length(c11); - float f = frac(lc); - f *= f; - lc = (floor(lc) + f * f) / Levels + 0.05; - - float3 unit = normalize(max(c11, 0.0001)); - float3 quant = Levels * unit; - float3 frct = frac(quant); - frct *= frct; - quant = floor(quant) + 0.05 * dt + frct * frct; - - float3 color = lc * (1.1 - edge * sqrt(edge)) * quant / Levels; - return float4(saturate(color), 1.0); -} - -technique Cartoon < - ui_label = "Cartoon"; - ui_tooltip = "Ink outlines and flat colour bands. Faithful port of the PPSSPP shader; the outline gets heavy in dark scenes, so try Cartoon Soft or Cel Shading if the blacks smear."; -> -{ - pass - { - VertexShader = VS_PostProcess; - PixelShader = PS_Cartoon; - } -} diff --git a/dist/post_shaders/CartoonSoft.fx b/dist/post_shaders/CartoonSoft.fx deleted file mode 100644 index bee08d8b43..0000000000 --- a/dist/post_shaders/CartoonSoft.fx +++ /dev/null @@ -1,100 +0,0 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - -// SPDX-FileCopyrightText: Copyright 2012 PPSSPP Project -// SPDX-FileCopyrightText: guest(r) -// SPDX-License-Identifier: GPL-2.0-or-later - -texture BackBufferTex : COLOR; -sampler BackBuffer { Texture = BackBufferTex; }; - -uniform float EdgeStrength < - ui_type = "slider"; - ui_label = "Edge Strength"; - ui_tooltip = "Darkness of the ink outline drawn around detected edges."; - ui_min = 0.0; ui_max = 2.0; ui_step = 0.05; -> = 0.45; - -uniform float ShadowGuard < - ui_type = "slider"; - ui_label = "Shadow Guard"; - ui_tooltip = "Holds the outline back in dark areas. Raise it if shadows turn into black blobs."; - ui_min = 0.1; ui_max = 2.0; ui_step = 0.05; -> = 0.8; - -uniform float Levels < - ui_type = "slider"; - ui_label = "Colour Levels"; - ui_tooltip = "How many bands the colours are quantised into."; - ui_min = 2.0; ui_max = 16.0; ui_step = 1.0; -> = 6.0; - -uniform float Smoothing < - ui_type = "slider"; - ui_label = "Banding"; - ui_tooltip = "How far the picture is pushed towards flat bands."; - ui_min = 0.0; ui_max = 1.0; ui_step = 0.05; -> = 0.75; - -uniform float Saturation < - ui_type = "slider"; - ui_label = "Saturation"; - ui_min = 0.0; ui_max = 2.0; ui_step = 0.05; -> = 1.15; - -void VS_PostProcess(in uint id : SV_VertexID, out float4 pos : SV_Position, out float2 uv : TEXCOORD) -{ - uv = float2(float(id & 2), float((id & 1) << 1)); - pos = float4(uv * float2(2.0, -2.0) + float2(-1.0, 1.0), 0.0, 1.0); -} - -float4 PS_CartoonSoft(float4 pos : SV_Position, float2 uv : TEXCOORD) : SV_Target -{ - float2 texel = float2(BUFFER_RCP_WIDTH, BUFFER_RCP_HEIGHT); - - float3 c00 = tex2D(BackBuffer, uv + texel * float2(-1.0, -1.0)).rgb; - float3 c10 = tex2D(BackBuffer, uv + texel * float2( 0.0, -1.0)).rgb; - float3 c20 = tex2D(BackBuffer, uv + texel * float2( 1.0, -1.0)).rgb; - float3 c01 = tex2D(BackBuffer, uv + texel * float2(-1.0, 0.0)).rgb; - float3 c11 = tex2D(BackBuffer, uv).rgb; - float3 c21 = tex2D(BackBuffer, uv + texel * float2( 1.0, 0.0)).rgb; - float3 c02 = tex2D(BackBuffer, uv + texel * float2(-1.0, 1.0)).rgb; - float3 c12 = tex2D(BackBuffer, uv + texel * float2( 0.0, 1.0)).rgb; - float3 c22 = tex2D(BackBuffer, uv + texel * float2( 1.0, 1.0)).rgb; - - const float3 dt = float3(1.0, 1.0, 1.0); - const float3 luma_weights = float3(0.299, 0.587, 0.114); - - float d1 = dot(abs(c00 - c22), dt); - float d2 = dot(abs(c20 - c02), dt); - float hl = dot(abs(c01 - c21), dt); - float vl = dot(abs(c10 - c12), dt); - - float luma = dot(c11, luma_weights); - float response = (d1 + d2 + hl + vl) / (luma * 2.0 + ShadowGuard); - float ink = 1.0 - saturate(response * EdgeStrength); - - float scaled = luma * Levels; - float step_position = frac(scaled); - float eased = step_position * step_position * (3.0 - 2.0 * step_position); - float banded = (floor(scaled) + eased) / Levels; - float target = lerp(luma, banded, Smoothing); - - float3 tinted = c11 * (target / max(luma, 0.001)); - float3 grey = dot(tinted, luma_weights); - float3 color = lerp(grey, tinted, Saturation) * ink; - - return float4(saturate(color), 1.0); -} - -technique CartoonSoft < - ui_label = "Cartoon Soft"; - ui_tooltip = "Ink outlines and flat colour bands, with the outline held back in the shadows so dark scenes do not turn into black blobs."; -> -{ - pass - { - VertexShader = VS_PostProcess; - PixelShader = PS_CartoonSoft; - } -} diff --git a/dist/post_shaders/CelShading.fx b/dist/post_shaders/CelShading.fx deleted file mode 100644 index fa1cae452c..0000000000 --- a/dist/post_shaders/CelShading.fx +++ /dev/null @@ -1,120 +0,0 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - -texture BackBufferTex : COLOR; -sampler BackBuffer { Texture = BackBufferTex; }; - -uniform float Bands < - ui_type = "slider"; - ui_label = "Shading Bands"; - ui_tooltip = "How many flat steps the lighting is collapsed into. Three or four gives the classic look."; - ui_min = 2.0; ui_max = 8.0; ui_step = 1.0; -> = 4.0; - -uniform float BandContrast < - ui_type = "slider"; - ui_label = "Band Contrast"; - ui_tooltip = "Spreads the bands towards pure black and white. Lower it if the shadows crush."; - ui_min = 0.0; ui_max = 1.0; ui_step = 0.05; -> = 0.5; - -uniform float BandEdge < - ui_type = "slider"; - ui_label = "Band Edge"; - ui_tooltip = "Width of the transition between bands. Low values give hard cel steps."; - ui_min = 0.02; ui_max = 1.0; ui_step = 0.02; -> = 0.15; - -uniform float Detail < - ui_type = "slider"; - ui_label = "Texture Detail"; - ui_tooltip = "How much surface texture survives the flattening. At zero the bands are completely flat."; - ui_min = 0.0; ui_max = 1.0; ui_step = 0.05; -> = 0.6; - -uniform float OutlineStrength < - ui_type = "slider"; - ui_label = "Outline Strength"; - ui_tooltip = "Opacity of the ink line drawn along detected edges."; - ui_min = 0.0; ui_max = 1.0; ui_step = 0.05; -> = 0.8; - -uniform float OutlineThreshold < - ui_type = "slider"; - ui_label = "Outline Threshold"; - ui_tooltip = "How strong an edge has to be before it is inked. Raise it to keep ink off textures and specular highlights."; - ui_min = 0.01; ui_max = 0.4; ui_step = 0.01; -> = 0.18; - -uniform float Saturation < - ui_type = "slider"; - ui_label = "Saturation"; - ui_tooltip = "Colour intensity of the flat regions."; - ui_min = 0.0; ui_max = 2.0; ui_step = 0.05; -> = 1.25; - -void VS_PostProcess(in uint id : SV_VertexID, out float4 pos : SV_Position, out float2 uv : TEXCOORD) -{ - uv = float2(float(id & 2), float((id & 1) << 1)); - pos = float4(uv * float2(2.0, -2.0) + float2(-1.0, 1.0), 0.0, 1.0); -} - -float4 PS_CelShading(float4 pos : SV_Position, float2 uv : TEXCOORD) : SV_Target -{ - const float3 luma_weights = float3(0.2126, 0.7152, 0.0722); - float2 texel = float2(BUFFER_RCP_WIDTH, BUFFER_RCP_HEIGHT); - - float3 centre = tex2D(BackBuffer, uv).rgb; - float luma = dot(centre, luma_weights); - - float2 near = texel * 1.5; - float2 far = texel * 3.5; - - float a00 = dot(tex2D(BackBuffer, uv + near * float2(-1.0, -1.0)).rgb, luma_weights); - float a20 = dot(tex2D(BackBuffer, uv + near * float2( 1.0, -1.0)).rgb, luma_weights); - float a02 = dot(tex2D(BackBuffer, uv + near * float2(-1.0, 1.0)).rgb, luma_weights); - float a22 = dot(tex2D(BackBuffer, uv + near * float2( 1.0, 1.0)).rgb, luma_weights); - - float b00 = dot(tex2D(BackBuffer, uv + far * float2(-1.0, -1.0)).rgb, luma_weights); - float b20 = dot(tex2D(BackBuffer, uv + far * float2( 1.0, -1.0)).rgb, luma_weights); - float b02 = dot(tex2D(BackBuffer, uv + far * float2(-1.0, 1.0)).rgb, luma_weights); - float b22 = dot(tex2D(BackBuffer, uv + far * float2( 1.0, 1.0)).rgb, luma_weights); - - float gx = (a00 + a02) - (a20 + a22); - float gy = (a00 + a20) - (a02 + a22); - float gradient = sqrt(gx * gx + gy * gy); - float ink = smoothstep(OutlineThreshold, OutlineThreshold + 0.04, gradient); - - float lighting = (a00 + a20 + a02 + a22 + b00 + b20 + b02 + b22) * 0.125; - float detail = luma - lighting; - - float softness = max(BandEdge, 0.001); - float coord = lighting * Bands - softness * 0.5; - float index = floor(coord) + smoothstep(1.0 - softness, 1.0, frac(coord)); - - float centred = (index + 0.5) / Bands; - float stretched = index / max(Bands - 1.0, 1.0); - float banded = saturate(lerp(centred, stretched, BandContrast)); - - float target = saturate(banded + detail * Detail); - - float gain = min(target / max(luma, 0.001), 4.0); - float3 shaded = centre * gain; - float3 grey = dot(shaded, luma_weights); - float3 color = lerp(grey, shaded, Saturation); - color *= 1.0 - ink * OutlineStrength; - - return float4(saturate(color), 1.0); -} - -technique CelShading < - ui_label = "Cel Shading"; - ui_tooltip = "Collapses the lighting into a few hard steps and inks the edges, keeping texture detail and hue intact."; -> -{ - pass - { - VertexShader = VS_PostProcess; - PixelShader = PS_CelShading; - } -} diff --git a/dist/post_shaders/ChromaticAberration.fx b/dist/post_shaders/ChromaticAberration.fx deleted file mode 100644 index e051a038ef..0000000000 --- a/dist/post_shaders/ChromaticAberration.fx +++ /dev/null @@ -1,53 +0,0 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - -texture BackBufferTex : COLOR; -sampler BackBuffer { Texture = BackBufferTex; }; - -uniform float Strength < - ui_type = "slider"; - ui_label = "Strength"; - ui_tooltip = "Channel separation in pixels, measured at the edge of the screen."; - ui_min = 0.0; ui_max = 8.0; ui_step = 0.1; -> = 1.5; - -uniform float Falloff < - ui_type = "slider"; - ui_label = "Falloff"; - ui_tooltip = "How fast the separation grows away from the centre. Higher keeps the middle clean."; - ui_min = 1.0; ui_max = 4.0; ui_step = 0.1; -> = 2.0; - -void VS_PostProcess(in uint id : SV_VertexID, out float4 pos : SV_Position, out float2 uv : TEXCOORD) -{ - uv = float2(float(id & 2), float((id & 1) << 1)); - pos = float4(uv * float2(2.0, -2.0) + float2(-1.0, 1.0), 0.0, 1.0); -} - -float4 PS_ChromaticAberration(float4 pos : SV_Position, float2 uv : TEXCOORD) : SV_Target -{ - float2 texel = float2(BUFFER_RCP_WIDTH, BUFFER_RCP_HEIGHT); - - float2 direction = uv - float2(0.5, 0.5); - float radius = length(direction); - float2 unit = direction / max(radius, 0.0001); - float2 offset = unit * Strength * pow(radius * 2.0, Falloff) * texel; - - float red = tex2D(BackBuffer, uv + offset).r; - float green = tex2D(BackBuffer, uv).g; - float blue = tex2D(BackBuffer, uv - offset).b; - - return float4(red, green, blue, 1.0); -} - -technique ChromaticAberration < - ui_label = "Chromatic Aberration"; - ui_tooltip = "Splits the colour channels apart towards the edges of the screen, the way a cheap lens fails to focus every colour on the same spot."; -> -{ - pass - { - VertexShader = VS_PostProcess; - PixelShader = PS_ChromaticAberration; - } -} diff --git a/dist/post_shaders/ColorGrade.fx b/dist/post_shaders/ColorGrade.fx deleted file mode 100644 index cf1f10ecad..0000000000 --- a/dist/post_shaders/ColorGrade.fx +++ /dev/null @@ -1,64 +0,0 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - -// SPDX-FileCopyrightText: Copyright 2012 PPSSPP Project -// SPDX-License-Identifier: GPL-2.0-or-later -// Based on colorcorrection.fsh in PPSSPP. - -texture BackBufferTex : COLOR; -sampler BackBuffer { Texture = BackBufferTex; }; - -uniform float Saturation < - ui_type = "slider"; - ui_label = "Saturation"; - ui_min = 0.0; ui_max = 2.0; ui_step = 0.01; -> = 1.0; - -uniform float Brightness < - ui_type = "slider"; - ui_label = "Brightness"; - ui_min = 0.0; ui_max = 2.0; ui_step = 0.01; -> = 1.0; - -uniform float Contrast < - ui_type = "slider"; - ui_label = "Contrast"; - ui_min = 0.0; ui_max = 2.0; ui_step = 0.01; -> = 1.0; - -uniform float Gamma < - ui_type = "slider"; - ui_label = "Gamma"; - ui_min = 0.5; ui_max = 2.0; ui_step = 0.01; -> = 1.0; - -void VS_PostProcess(in uint id : SV_VertexID, out float4 pos : SV_Position, out float2 uv : TEXCOORD) -{ - uv = float2(float(id & 2), float((id & 1) << 1)); - pos = float4(uv * float2(2.0, -2.0) + float2(-1.0, 1.0), 0.0, 1.0); -} - -float4 PS_ColorGrade(float4 pos : SV_Position, float2 uv : TEXCOORD) : SV_Target -{ - float3 rgb = tex2D(BackBuffer, uv).rgb; - - float luma = dot(rgb, float3(0.2126, 0.7152, 0.0722)); - rgb = lerp(float3(luma, luma, luma), rgb, Saturation); - rgb *= Brightness; - rgb = (rgb - 0.5) * Contrast + 0.5; - rgb = pow(max(rgb, 0.0), 1.0 / max(Gamma, 0.0001)); - - return float4(saturate(rgb), 1.0); -} - -technique ColorGrade < - ui_label = "Colour Grade"; - ui_tooltip = "The four basic colour controls in one pass: saturation, brightness, contrast and gamma. Reach for this before anything more specialised."; -> -{ - pass - { - VertexShader = VS_PostProcess; - PixelShader = PS_ColorGrade; - } -} diff --git a/dist/post_shaders/Deband.fx b/dist/post_shaders/Deband.fx deleted file mode 100644 index 96086a9c6c..0000000000 --- a/dist/post_shaders/Deband.fx +++ /dev/null @@ -1,91 +0,0 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - -// SPDX-FileCopyrightText: Copyright 2015 Niklas Haas -// SPDX-License-Identifier: MIT - -texture BackBufferTex : COLOR; -sampler BackBuffer { Texture = BackBufferTex; }; - -uniform float Threshold < - ui_type = "slider"; - ui_label = "Threshold"; - ui_tooltip = "How flat a neighbourhood must be before it gets smoothed. Raise it to catch wider bands, lower it to keep more detail."; - ui_min = 0.002; ui_max = 0.05; ui_step = 0.001; -> = 0.012; - -uniform float Radius < - ui_type = "slider"; - ui_label = "Radius"; - ui_tooltip = "How far the sampling reaches, in pixels. Wider gradients need a larger radius."; - ui_min = 1.0; ui_max = 32.0; ui_step = 1.0; -> = 8.0; - -uniform float Grain < - ui_type = "slider"; - ui_label = "Dither"; - ui_tooltip = "Noise added to break up whatever banding survives the smoothing."; - ui_min = 0.0; ui_max = 0.02; ui_step = 0.001; -> = 0.004; - -void VS_PostProcess(in uint id : SV_VertexID, out float4 pos : SV_Position, out float2 uv : TEXCOORD) -{ - uv = float2(float(id & 2), float((id & 1) << 1)); - pos = float4(uv * float2(2.0, -2.0) + float2(-1.0, 1.0), 0.0, 1.0); -} - -float Hash(float2 p) -{ - float3 scattered = frac(float3(p.x, p.y, p.x) * 0.1031); - scattered += dot(scattered, scattered.yzx + 33.33); - return frac((scattered.x + scattered.y) * scattered.z); -} - -float4 PS_Deband(float4 pos : SV_Position, float2 uv : TEXCOORD) : SV_Target -{ - float2 texel = float2(BUFFER_RCP_WIDTH, BUFFER_RCP_HEIGHT); - - float3 centre = tex2D(BackBuffer, uv).rgb; - float base = Hash(pos.xy) * 6.2831853; - - float3 total = float3(0.0, 0.0, 0.0); - float3 deviation = float3(0.0, 0.0, 0.0); - - [unroll] for (int ring = 1; ring <= 2; ++ring) - { - float angle = base + float(ring) * 2.3999632; - float reach = Radius * float(ring) * 0.5; - float2 along = float2(cos(angle), sin(angle)) * reach; - float2 across = float2(-along.y, along.x); - - float3 s0 = tex2D(BackBuffer, uv + along * texel).rgb; - float3 s1 = tex2D(BackBuffer, uv - along * texel).rgb; - float3 s2 = tex2D(BackBuffer, uv + across * texel).rgb; - float3 s3 = tex2D(BackBuffer, uv - across * texel).rgb; - - total += s0 + s1 + s2 + s3; - deviation = max(deviation, max(max(abs(s0 - centre), abs(s1 - centre)), - max(abs(s2 - centre), abs(s3 - centre)))); - } - - float3 average = total * 0.125; - float3 flatness = float3(1.0, 1.0, 1.0) - - smoothstep(Threshold * 0.5, Threshold, deviation); - float3 result = lerp(centre, average, flatness); - - float dither = (Hash(pos.xy + float2(71.3, 41.7)) - 0.5) * Grain; - - return float4(saturate(result + dither), 1.0); -} - -technique Deband < - ui_label = "Deband"; - ui_tooltip = "Smooths the visible steps in gradients such as skies, then dithers whatever survives. Worth adding whenever large flat areas show rings."; -> -{ - pass - { - VertexShader = VS_PostProcess; - PixelShader = PS_Deband; - } -} diff --git a/dist/post_shaders/Denoise.fx b/dist/post_shaders/Denoise.fx deleted file mode 100644 index c87e33a446..0000000000 --- a/dist/post_shaders/Denoise.fx +++ /dev/null @@ -1,83 +0,0 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - -// SPDX-FileCopyrightText: Copyright 2019-2021 bloc97 -// SPDX-License-Identifier: MIT - -texture BackBufferTex : COLOR; -sampler BackBuffer { Texture = BackBufferTex; }; - -uniform float Strength < - ui_type = "slider"; - ui_label = "Strength"; - ui_min = 0.01; ui_max = 0.5; ui_step = 0.01; -> = 0.1; - -uniform float Radius < - ui_type = "slider"; - ui_label = "Radius"; - ui_min = 0.3; ui_max = 2.0; ui_step = 0.05; -> = 1.0; - -uniform float Curve < - ui_type = "slider"; - ui_label = "Shadow Bias"; - ui_min = 0.0; ui_max = 2.0; ui_step = 0.05; -> = 1.0; - -void VS_PostProcess(in uint id : SV_VertexID, out float4 pos : SV_Position, out float2 uv : TEXCOORD) -{ - uv = float2(float(id & 2), float((id & 1) << 1)); - pos = float4(uv * float2(2.0, -2.0) + float2(-1.0, 1.0), 0.0, 1.0); -} - -float3 IntensityWeight(float3 value, float3 sigma, float3 centre) -{ - float3 scaled = (value - centre) / sigma; - return exp(-0.5 * scaled * scaled); -} - -float SpatialWeight(float distance, float sigma) -{ - float scaled = distance / sigma; - return exp(-0.5 * scaled * scaled); -} - -float4 PS_Denoise(float4 pos : SV_Position, float2 uv : TEXCOORD) : SV_Target -{ - float2 texel = float2(BUFFER_RCP_WIDTH, BUFFER_RCP_HEIGHT); - - float3 centre = tex2D(BackBuffer, uv).rgb; - float3 intensity_sigma = max(pow(centre + 0.0001, Curve) * Strength, 0.0001); - float spatial_sigma = max(Radius, 0.05); - - float3 sum = float3(0.0, 0.0, 0.0); - float3 total = float3(0.0, 0.0, 0.0); - - [unroll] for (int y = -2; y <= 2; ++y) - { - [unroll] for (int x = -2; x <= 2; ++x) - { - float2 offset = float2(x, y); - float3 tap = tex2D(BackBuffer, uv + offset * texel).rgb; - float3 weight = IntensityWeight(tap, intensity_sigma, centre) * - SpatialWeight(length(offset), spatial_sigma); - sum += weight * tap; - total += weight; - } - } - - return float4(sum / total, 1.0); -} - -technique Denoise < - ui_label = "Denoise"; - ui_tooltip = "Edge preserving blur that clears dithering and compression noise while leaving outlines sharp. Ported from Anime4K."; -> -{ - pass - { - VertexShader = VS_PostProcess; - PixelShader = PS_Denoise; - } -} diff --git a/dist/post_shaders/FilmGrain.fx b/dist/post_shaders/FilmGrain.fx deleted file mode 100644 index 4e21c18b20..0000000000 --- a/dist/post_shaders/FilmGrain.fx +++ /dev/null @@ -1,65 +0,0 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - -texture BackBufferTex : COLOR; -sampler BackBuffer { Texture = BackBufferTex; }; - -uniform float Intensity < - ui_type = "slider"; - ui_label = "Intensity"; - ui_min = 0.0; ui_max = 0.2; ui_step = 0.005; -> = 0.03; - -uniform float Size < - ui_type = "slider"; - ui_label = "Size"; - ui_tooltip = "Grain cell size in pixels."; - ui_min = 1.0; ui_max = 4.0; ui_step = 1.0; -> = 1.0; - -uniform float Colored < - ui_type = "slider"; - ui_label = "Colour"; - ui_tooltip = "Zero gives monochrome grain, one gives independent noise per channel."; - ui_min = 0.0; ui_max = 1.0; ui_step = 0.01; -> = 0.0; - -void VS_PostProcess(in uint id : SV_VertexID, out float4 pos : SV_Position, out float2 uv : TEXCOORD) -{ - uv = float2(float(id & 2), float((id & 1) << 1)); - pos = float4(uv * float2(2.0, -2.0) + float2(-1.0, 1.0), 0.0, 1.0); -} - -float Hash(float2 p) -{ - float3 scattered = frac(float3(p.x, p.y, p.x) * 0.1031); - scattered += dot(scattered, scattered.yzx + 33.33); - return frac((scattered.x + scattered.y) * scattered.z); -} - -float4 PS_FilmGrain(float4 pos : SV_Position, float2 uv : TEXCOORD) : SV_Target -{ - float3 rgb = tex2D(BackBuffer, uv).rgb; - - float2 cell = floor(pos.xy / max(Size, 1.0)); - float mono = Hash(cell) - 0.5; - float3 chroma = float3(Hash(cell + 11.7), Hash(cell + 23.1), Hash(cell + 37.5)) - 0.5; - float3 noise = lerp(float3(mono, mono, mono), chroma, Colored); - - float luma = dot(rgb, float3(0.2126, 0.7152, 0.0722)); - float response = 1.0 - abs(luma * 2.0 - 1.0); - - return float4(saturate(rgb + noise * Intensity * response), 1.0); -} - -technique FilmGrain < - ui_label = "Film Grain"; - ui_tooltip = "Adds photographic grain, strongest in the midtones and fading out in blacks and whites."; -> -{ - pass - { - VertexShader = VS_PostProcess; - PixelShader = PS_FilmGrain; - } -} diff --git a/dist/post_shaders/FilmicCurve.fx b/dist/post_shaders/FilmicCurve.fx deleted file mode 100644 index 2b1b1e0773..0000000000 --- a/dist/post_shaders/FilmicCurve.fx +++ /dev/null @@ -1,60 +0,0 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - -texture BackBufferTex : COLOR; -sampler BackBuffer { Texture = BackBufferTex; }; - -uniform float Exposure < - ui_type = "slider"; - ui_label = "Exposure"; - ui_min = 0.5; ui_max = 2.0; ui_step = 0.01; -> = 1.0; - -uniform float Toe < - ui_type = "slider"; - ui_label = "Toe"; - ui_tooltip = "Above 1.0 deepens the shadows, below 1.0 lifts them."; - ui_min = 0.5; ui_max = 2.0; ui_step = 0.01; -> = 1.2; - -uniform float Shoulder < - ui_type = "slider"; - ui_label = "Shoulder"; - ui_tooltip = "Above 1.0 opens up the highlights, below 1.0 compresses them."; - ui_min = 0.5; ui_max = 2.0; ui_step = 0.01; -> = 1.2; - -uniform float Amount < - ui_type = "slider"; - ui_label = "Amount"; - ui_min = 0.0; ui_max = 1.0; ui_step = 0.01; -> = 0.7; - -void VS_PostProcess(in uint id : SV_VertexID, out float4 pos : SV_Position, out float2 uv : TEXCOORD) -{ - uv = float2(float(id & 2), float((id & 1) << 1)); - pos = float4(uv * float2(2.0, -2.0) + float2(-1.0, 1.0), 0.0, 1.0); -} - -float4 PS_FilmicCurve(float4 pos : SV_Position, float2 uv : TEXCOORD) : SV_Target -{ - float3 rgb = tex2D(BackBuffer, uv).rgb; - - float3 curved = saturate(rgb * Exposure); - curved = pow(max(curved, 0.0), Toe); - curved = 1.0 - pow(max(1.0 - curved, 0.0), Shoulder); - - return float4(saturate(lerp(rgb, curved, Amount)), 1.0); -} - -technique FilmicCurve < - ui_label = "Filmic Curve"; - ui_tooltip = "Filmic contrast curve. Deepens the shadows and opens the highlights without clipping either end."; -> -{ - pass - { - VertexShader = VS_PostProcess; - PixelShader = PS_FilmicCurve; - } -} diff --git a/dist/post_shaders/LensDistortion.fx b/dist/post_shaders/LensDistortion.fx deleted file mode 100644 index 8e0649bfe7..0000000000 --- a/dist/post_shaders/LensDistortion.fx +++ /dev/null @@ -1,53 +0,0 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - -texture BackBufferTex : COLOR; -sampler BackBuffer { Texture = BackBufferTex; }; - -uniform float Distortion < - ui_type = "slider"; - ui_label = "Distortion"; - ui_tooltip = "Positive bulges the picture outwards, negative pinches it inwards."; - ui_min = -0.5; ui_max = 0.5; ui_step = 0.01; -> = 0.1; - -uniform float Zoom < - ui_type = "slider"; - ui_label = "Zoom"; - ui_tooltip = "Scales the picture to hide the edges the warp pulls in."; - ui_min = 0.5; ui_max = 1.5; ui_step = 0.01; -> = 1.0; - -void VS_PostProcess(in uint id : SV_VertexID, out float4 pos : SV_Position, out float2 uv : TEXCOORD) -{ - uv = float2(float(id & 2), float((id & 1) << 1)); - pos = float4(uv * float2(2.0, -2.0) + float2(-1.0, 1.0), 0.0, 1.0); -} - -float4 PS_LensDistortion(float4 pos : SV_Position, float2 uv : TEXCOORD) : SV_Target -{ - float aspect = BUFFER_WIDTH * BUFFER_RCP_HEIGHT; - float2 half_size = float2(aspect, 1.0); - float2 unit = half_size / length(half_size); - - float2 centred = (uv - 0.5) * 2.0 * unit; - float r2 = dot(centred, centred); - centred *= 1.0 + Distortion * r2; - centred /= max(Zoom, 0.001); - - float2 source = centred / (2.0 * unit) + 0.5; - - return float4(tex2D(BackBuffer, source).rgb, 1.0); -} - -technique LensDistortion < - ui_label = "Lens Distortion"; - ui_tooltip = "Barrel or pincushion warp, like looking through a wide angle lens."; -> -{ - pass - { - VertexShader = VS_PostProcess; - PixelShader = PS_LensDistortion; - } -} diff --git a/dist/post_shaders/Levels.fx b/dist/post_shaders/Levels.fx deleted file mode 100644 index 510fd3d070..0000000000 --- a/dist/post_shaders/Levels.fx +++ /dev/null @@ -1,66 +0,0 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - -texture BackBufferTex : COLOR; -sampler BackBuffer { Texture = BackBufferTex; }; - -uniform float InputBlack < - ui_type = "slider"; - ui_label = "Input Black"; - ui_tooltip = "Input level mapped to black. Raise it to deepen washed out shadows."; - ui_min = 0.0; ui_max = 0.5; ui_step = 0.005; -> = 0.0; - -uniform float InputWhite < - ui_type = "slider"; - ui_label = "Input White"; - ui_min = 0.5; ui_max = 1.0; ui_step = 0.005; -> = 1.0; - -uniform float Gamma < - ui_type = "slider"; - ui_label = "Gamma"; - ui_min = 0.2; ui_max = 3.0; ui_step = 0.01; -> = 1.0; - -uniform float OutputBlack < - ui_type = "slider"; - ui_label = "Output Black"; - ui_tooltip = "Lifts crushed shadows so detail stops collapsing into one flat black."; - ui_min = 0.0; ui_max = 0.5; ui_step = 0.005; -> = 0.0; - -uniform float OutputWhite < - ui_type = "slider"; - ui_label = "Output White"; - ui_min = 0.5; ui_max = 1.0; ui_step = 0.005; -> = 1.0; - -void VS_PostProcess(in uint id : SV_VertexID, out float4 pos : SV_Position, out float2 uv : TEXCOORD) -{ - uv = float2(float(id & 2), float((id & 1) << 1)); - pos = float4(uv * float2(2.0, -2.0) + float2(-1.0, 1.0), 0.0, 1.0); -} - -float4 PS_Levels(float4 pos : SV_Position, float2 uv : TEXCOORD) : SV_Target -{ - float3 rgb = tex2D(BackBuffer, uv).rgb; - - rgb = saturate((rgb - InputBlack) / max(InputWhite - InputBlack, 0.001)); - rgb = pow(max(rgb, 0.0), 1.0 / max(Gamma, 0.001)); - rgb = lerp(OutputBlack, OutputWhite, rgb); - - return float4(saturate(rgb), 1.0); -} - -technique Levels < - ui_label = "Levels"; - ui_tooltip = "Black point, white point, gamma and output range. Use it to fix crushed or washed out shadows."; -> -{ - pass - { - VertexShader = VS_PostProcess; - PixelShader = PS_Levels; - } -} diff --git a/dist/post_shaders/MotionBlur.fx b/dist/post_shaders/MotionBlur.fx deleted file mode 100644 index d541b5db9d..0000000000 --- a/dist/post_shaders/MotionBlur.fx +++ /dev/null @@ -1,88 +0,0 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - -texture BackBufferTex : COLOR; -sampler BackBuffer { Texture = BackBufferTex; }; - -uniform float Length < - ui_type = "slider"; - ui_label = "Length"; - ui_tooltip = "How far the streaks reach, as a percentage of screen height."; - ui_min = 0.0; ui_max = 20.0; ui_step = 0.5; -> = 5.0; - -uniform float Zoom < - ui_type = "slider"; - ui_label = "Zoom"; - ui_tooltip = "Streaks running out from the centre of the screen, as if rushing forward. The centre stays sharp."; - ui_min = 0.0; ui_max = 1.0; ui_step = 0.05; -> = 1.0; - -uniform float Pan < - ui_type = "slider"; - ui_label = "Pan"; - ui_tooltip = "Streaks running in one fixed direction, as if the camera were sweeping across."; - ui_min = 0.0; ui_max = 1.0; ui_step = 0.05; -> = 0.0; - -uniform float Angle < - ui_type = "slider"; - ui_label = "Pan Angle"; - ui_tooltip = "Direction of the sweep, in degrees."; - ui_min = 0.0; ui_max = 360.0; ui_step = 5.0; -> = 0.0; - -uniform float Spin < - ui_type = "slider"; - ui_label = "Spin"; - ui_tooltip = "Streaks curling around the centre, as if the camera were rolling. Negative turns the other way."; - ui_min = -1.0; ui_max = 1.0; ui_step = 0.05; -> = 0.0; - -static const int TAPS = 24; - -void VS_PostProcess(in uint id : SV_VertexID, out float4 pos : SV_Position, out float2 uv : TEXCOORD) -{ - uv = float2(float(id & 2), float((id & 1) << 1)); - pos = float4(uv * float2(2.0, -2.0) + float2(-1.0, 1.0), 0.0, 1.0); -} - -float4 PS_MotionBlur(float4 pos : SV_Position, float2 uv : TEXCOORD) : SV_Target -{ - float aspect = BUFFER_WIDTH * BUFFER_RCP_HEIGHT; - float2 to_screen = float2(aspect, 1.0); - - float2 centred = (uv - 0.5) * to_screen * 2.0; - float2 outward = centred; - float2 around = float2(-centred.y, centred.x); - - float radians_angle = Angle * 0.01745329; - float2 sweep = float2(cos(radians_angle), sin(radians_angle)); - - float2 velocity = sweep * Pan + outward * Zoom + around * Spin; - velocity *= Length * 0.01; - velocity /= to_screen; - - float jitter = frac(sin(dot(pos.xy, float2(12.9898, 78.233))) * 43758.5453); - - float3 sum = float3(0.0, 0.0, 0.0); - [unroll] for (int i = 0; i < TAPS; ++i) - { - float t = (float(i) + jitter) / float(TAPS) - 0.5; - sum += tex2D(BackBuffer, uv + velocity * t).rgb; - } - - return float4(sum / float(TAPS), 1.0); -} - -technique MotionBlur < - ui_label = "Motion Blur"; - ui_tooltip = "Camera style motion blur: streaks the picture outwards, sideways or around, without touching still detail at the centre."; -> -{ - pass - { - VertexShader = VS_PostProcess; - PixelShader = PS_MotionBlur; - } -} diff --git a/dist/post_shaders/NaturalColors.fx b/dist/post_shaders/NaturalColors.fx deleted file mode 100644 index 0a35ad4ff2..0000000000 --- a/dist/post_shaders/NaturalColors.fx +++ /dev/null @@ -1,60 +0,0 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - -// SPDX-FileCopyrightText: Copyright 2012 PPSSPP Project -// SPDX-License-Identifier: GPL-2.0-or-later -// Ported from naturalA.fsh in PPSSPP, by ShadX, modified by SimoneT. - -texture BackBufferTex : COLOR; -sampler BackBuffer { Texture = BackBufferTex; }; - -uniform float Luma < - ui_type = "slider"; - ui_label = "Luma Curve"; - ui_tooltip = "Gamma applied to the luminance channel in YIQ space."; - ui_min = 0.5; ui_max = 2.0; ui_step = 0.01; -> = 1.2; - -uniform float Chroma < - ui_type = "slider"; - ui_label = "Chroma Gain"; - ui_tooltip = "Boost applied to the two colour difference channels."; - ui_min = 0.0; ui_max = 2.0; ui_step = 0.01; -> = 1.2; - -void VS_PostProcess(in uint id : SV_VertexID, out float4 pos : SV_Position, out float2 uv : TEXCOORD) -{ - uv = float2(float(id & 2), float((id & 1) << 1)); - pos = float4(uv * float2(2.0, -2.0) + float2(-1.0, 1.0), 0.0, 1.0); -} - -float4 PS_Natural(float4 pos : SV_Position, float2 uv : TEXCOORD) : SV_Target -{ - const float3x3 RGBtoYIQ = float3x3(0.299, 0.587, 0.114, - 0.596, -0.275, -0.321, - 0.212, -0.523, 0.311); - - const float3x3 YIQtoRGB = float3x3(1.0, 0.95568806, 0.61985809, - 1.0, -0.27158180, -0.64687382, - 1.0, -1.10817733, 1.70506456); - - float3 rgb = tex2D(BackBuffer, uv).rgb; - float3 yiq = mul(RGBtoYIQ, rgb); - - yiq.x = pow(max(yiq.x, 0.0), Luma); - yiq.yz *= Chroma; - - return float4(saturate(mul(YIQtoRGB, yiq)), 1.0); -} - -technique NaturalColors < - ui_label = "Natural Colours"; - ui_tooltip = "Warms the picture and lifts saturation for a less washed out look. Ported from the PPSSPP shader."; -> -{ - pass - { - VertexShader = VS_PostProcess; - PixelShader = PS_Natural; - } -} diff --git a/dist/post_shaders/Reflections.fx b/dist/post_shaders/Reflections.fx deleted file mode 100644 index 1ab193481e..0000000000 --- a/dist/post_shaders/Reflections.fx +++ /dev/null @@ -1,90 +0,0 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - -texture BackBufferTex : COLOR; -sampler BackBuffer { Texture = BackBufferTex; }; - -uniform float Timer < source = "timer"; > = 0.0; - -uniform float Horizon < - ui_type = "slider"; - ui_label = "Reflection Line"; - ui_tooltip = "Height on screen where the reflective floor begins. Everything above it is left untouched."; - ui_min = 0.0; ui_max = 1.0; ui_step = 0.01; -> = 0.55; - -uniform float Amount < - ui_type = "slider"; - ui_label = "Amount"; - ui_tooltip = "How strongly the reflection shows through the floor."; - ui_min = 0.0; ui_max = 1.0; ui_step = 0.05; -> = 0.35; - -uniform float Falloff < - ui_type = "slider"; - ui_label = "Falloff"; - ui_tooltip = "How quickly the reflection fades as the floor comes towards the viewer. At zero it stays even."; - ui_min = 0.0; ui_max = 4.0; ui_step = 0.1; -> = 1.2; - -uniform float Perspective < - ui_type = "slider"; - ui_label = "Perspective"; - ui_tooltip = "Stretches or squashes the mirrored image. One is a true mirror, higher values pull it towards the line."; - ui_min = 0.2; ui_max = 2.0; ui_step = 0.05; -> = 1.0; - -uniform float Ripple < - ui_type = "slider"; - ui_label = "Ripple"; - ui_tooltip = "Amplitude of the waves disturbing the reflection. At zero the mirror is perfectly still."; - ui_min = 0.0; ui_max = 1.0; ui_step = 0.05; -> = 0.0; - -uniform float RippleSpeed < - ui_type = "slider"; - ui_label = "Ripple Speed"; - ui_tooltip = "How fast the waves travel."; - ui_min = 0.0; ui_max = 4.0; ui_step = 0.1; -> = 1.0; - -void VS_PostProcess(in uint id : SV_VertexID, out float4 pos : SV_Position, out float2 uv : TEXCOORD) -{ - uv = float2(float(id & 2), float((id & 1) << 1)); - pos = float4(uv * float2(2.0, -2.0) + float2(-1.0, 1.0), 0.0, 1.0); -} - -float4 PS_Reflections(float4 pos : SV_Position, float2 uv : TEXCOORD) : SV_Target -{ - float3 color = tex2D(BackBuffer, uv).rgb; - - float depth = uv.y - Horizon; - float on_floor = step(0.0, depth); - float span = max(1.0 - Horizon, 0.001); - float distance_down = saturate(depth / span); - - float seconds = Timer * 0.001; - float wave = sin(uv.x * 38.0 + seconds * RippleSpeed * 2.0) * - sin(uv.y * 21.0 - seconds * RippleSpeed * 1.3); - float2 disturbance = float2(wave * 0.004, wave * 0.002) * Ripple * distance_down; - - float2 mirrored = float2(uv.x, Horizon - depth * Perspective) + disturbance; - float3 reflection = tex2D(BackBuffer, saturate(mirrored)).rgb; - - float fade = pow(max(1.0 - distance_down, 0.0001), Falloff); - float strength = Amount * fade * on_floor; - - return float4(lerp(color, reflection, strength), 1.0); -} - -technique Reflections < - ui_label = "Reflections"; - ui_tooltip = "Mirrors the picture into a reflective floor below a line you choose, with optional water ripples."; -> -{ - pass - { - VertexShader = VS_PostProcess; - PixelShader = PS_Reflections; - } -} diff --git a/dist/post_shaders/Scanlines.fx b/dist/post_shaders/Scanlines.fx deleted file mode 100644 index 2f24dc5ed5..0000000000 --- a/dist/post_shaders/Scanlines.fx +++ /dev/null @@ -1,66 +0,0 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - -// SPDX-FileCopyrightText: Copyright 2012 PPSSPP Project -// SPDX-License-Identifier: GPL-2.0-or-later -// Ported from scanlines.fsh in PPSSPP. - - -texture BackBufferTex : COLOR; -sampler BackBuffer { Texture = BackBufferTex; }; - -uniform float Density < - ui_type = "slider"; - ui_label = "Line Density"; - ui_tooltip = "Number of scanline pairs across the screen."; - ui_min = 60.0; ui_max = 720.0; ui_step = 10.0; -> = 340.0; - -uniform float Intensity < - ui_type = "slider"; - ui_label = "Intensity"; - ui_tooltip = "How dark the gaps between lines become."; - ui_min = 0.0; ui_max = 1.0; ui_step = 0.05; -> = 0.5; - -uniform float Tint < - ui_type = "slider"; - ui_label = "Phosphor Tint"; - ui_tooltip = "Strength of the green-warm phosphor cast."; - ui_min = 0.0; ui_max = 1.0; ui_step = 0.05; -> = 1.0; - -void VS_PostProcess(in uint id : SV_VertexID, out float4 pos : SV_Position, out float2 uv : TEXCOORD) -{ - uv = float2(float(id & 2), float((id & 1) << 1)); - pos = float4(uv * float2(2.0, -2.0) + float2(-1.0, 1.0), 0.0, 1.0); -} - -float4 PS_Scanlines(float4 pos : SV_Position, float2 uv : TEXCOORD) : SV_Target -{ - float line_pos = uv.y * Density * 0.5; - float gate = cos((frac(line_pos) - 0.5) * 3.1415926 * Intensity) * 1.5; - - float3 rgb = tex2D(BackBuffer, uv).rgb; - float3 color = rgb * 0.5 + 0.5 * rgb * rgb * 1.2; - - float3 phosphor = lerp(float3(1.0, 1.0, 1.0), float3(0.9, 1.0, 0.7), Tint); - color *= phosphor; - - float2 diff = uv - 0.5; - color *= 1.1 - 0.6 * (dot(diff, diff) * 2.0); - - return float4(saturate(color * saturate(gate)), 1.0); -} - -technique Scanlines < - ui_label = "Scanlines"; - ui_tooltip = "Darkens alternating rows of pixels to imitate the horizontal scanlines of a CRT. Cheaper than the full CRT effect when you only want the lines."; -> -{ - pass - { - VertexShader = VS_PostProcess; - PixelShader = PS_Scanlines; - } -} diff --git a/dist/post_shaders/Sharpen.fx b/dist/post_shaders/Sharpen.fx deleted file mode 100644 index 36850e818b..0000000000 --- a/dist/post_shaders/Sharpen.fx +++ /dev/null @@ -1,43 +0,0 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - -texture BackBufferTex : COLOR; -sampler BackBuffer { Texture = BackBufferTex; }; - -uniform float Amount < - ui_type = "slider"; - ui_label = "Amount"; - ui_min = 0.0; ui_max = 3.0; ui_step = 0.01; -> = 0.6; - -void VS_PostProcess(in uint id : SV_VertexID, out float4 pos : SV_Position, out float2 uv : TEXCOORD) -{ - uv = float2(float(id & 2), float((id & 1) << 1)); - pos = float4(uv * float2(2.0, -2.0) + float2(-1.0, 1.0), 0.0, 1.0); -} - -float4 PS_Sharpen(float4 pos : SV_Position, float2 uv : TEXCOORD) : SV_Target -{ - float2 texel = float2(BUFFER_RCP_WIDTH, BUFFER_RCP_HEIGHT); - - float3 centre = tex2D(BackBuffer, uv).rgb; - float3 blur = tex2D(BackBuffer, uv + float2(-texel.x, 0.0)).rgb; - blur += tex2D(BackBuffer, uv + float2(texel.x, 0.0)).rgb; - blur += tex2D(BackBuffer, uv + float2(0.0, -texel.y)).rgb; - blur += tex2D(BackBuffer, uv + float2(0.0, texel.y)).rgb; - blur *= 0.25; - - return float4(centre + (centre - blur) * Amount, 1.0); -} - -technique Sharpen < - ui_label = "Sharpen"; - ui_tooltip = "Unsharp mask that brings back edge detail lost to scaling. Most useful after upscaling a low internal resolution."; -> -{ - pass - { - VertexShader = VS_PostProcess; - PixelShader = PS_Sharpen; - } -} diff --git a/dist/post_shaders/SplitToning.fx b/dist/post_shaders/SplitToning.fx deleted file mode 100644 index 682ee5cf69..0000000000 --- a/dist/post_shaders/SplitToning.fx +++ /dev/null @@ -1,75 +0,0 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - -texture BackBufferTex : COLOR; -sampler BackBuffer { Texture = BackBufferTex; }; - -uniform float ShadowHue < - ui_type = "slider"; - ui_label = "Shadow Hue"; - ui_min = 0.0; ui_max = 360.0; ui_step = 1.0; -> = 210.0; - -uniform float ShadowStrength < - ui_type = "slider"; - ui_label = "Shadow Strength"; - ui_min = 0.0; ui_max = 1.0; ui_step = 0.01; -> = 0.0; - -uniform float HighlightHue < - ui_type = "slider"; - ui_label = "Highlight Hue"; - ui_min = 0.0; ui_max = 360.0; ui_step = 1.0; -> = 45.0; - -uniform float HighlightStrength < - ui_type = "slider"; - ui_label = "Highlight Strength"; - ui_min = 0.0; ui_max = 1.0; ui_step = 0.01; -> = 0.0; - -uniform float Balance < - ui_type = "slider"; - ui_label = "Balance"; - ui_tooltip = "Moves the split between what counts as shadow and what counts as highlight."; - ui_min = -0.5; ui_max = 0.5; ui_step = 0.01; -> = 0.0; - -void VS_PostProcess(in uint id : SV_VertexID, out float4 pos : SV_Position, out float2 uv : TEXCOORD) -{ - uv = float2(float(id & 2), float((id & 1) << 1)); - pos = float4(uv * float2(2.0, -2.0) + float2(-1.0, 1.0), 0.0, 1.0); -} - -float3 HueToRGB(float hue) -{ - float h = frac(hue / 360.0) * 6.0; - return saturate(float3(abs(h - 3.0) - 1.0, 2.0 - abs(h - 2.0), 2.0 - abs(h - 4.0))); -} - -float4 PS_SplitToning(float4 pos : SV_Position, float2 uv : TEXCOORD) : SV_Target -{ - float3 rgb = tex2D(BackBuffer, uv).rgb; - - float luma = saturate(dot(rgb, float3(0.2126, 0.7152, 0.0722)) + Balance); - - float3 shadow_tint = HueToRGB(ShadowHue) - 0.5; - float3 highlight_tint = HueToRGB(HighlightHue) - 0.5; - - rgb += shadow_tint * ShadowStrength * 0.25 * (1.0 - luma); - rgb += highlight_tint * HighlightStrength * 0.25 * luma; - - return float4(saturate(rgb), 1.0); -} - -technique SplitToning < - ui_label = "Split Toning"; - ui_tooltip = "Tints the shadows and the highlights towards two different hues."; -> -{ - pass - { - VertexShader = VS_PostProcess; - PixelShader = PS_SplitToning; - } -} diff --git a/dist/post_shaders/Vignette.fx b/dist/post_shaders/Vignette.fx deleted file mode 100644 index 351990a43e..0000000000 --- a/dist/post_shaders/Vignette.fx +++ /dev/null @@ -1,52 +0,0 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - -// SPDX-FileCopyrightText: Copyright 2012 PPSSPP Project -// SPDX-License-Identifier: GPL-2.0-or-later -// Ported from vignette.fsh in PPSSPP, by Henrik Rydgard. - -texture BackBufferTex : COLOR; -sampler BackBuffer { Texture = BackBufferTex; }; - -uniform float Strength < - ui_type = "slider"; - ui_label = "Strength"; - ui_tooltip = "How dark the corners become."; - ui_min = 0.0; ui_max = 2.0; ui_step = 0.01; -> = 0.6; - -uniform float Aspect < - ui_type = "slider"; - ui_label = "Aspect"; - ui_min = 0.5; ui_max = 2.0; ui_step = 0.01; -> = 1.0; - -void VS_PostProcess(in uint id : SV_VertexID, out float4 pos : SV_Position, out float2 uv : TEXCOORD) -{ - uv = float2(float(id & 2), float((id & 1) << 1)); - pos = float4(uv * float2(2.0, -2.0) + float2(-1.0, 1.0), 0.0, 1.0); -} - -float4 PS_Vignette(float4 pos : SV_Position, float2 uv : TEXCOORD) : SV_Target -{ - float2 diff = uv - 0.5; - diff.x *= Aspect; - diff.y /= max(Aspect, 0.0001); - - float falloff = 1.0 - min(1.0, Strength * dot(diff, diff) * 2.0); - float3 rgb = tex2D(BackBuffer, uv).rgb; - - return float4(rgb * falloff, 1.0); -} - -technique Vignette < - ui_label = "Vignette"; - ui_tooltip = "Darkens the corners of the screen to pull the eye towards the middle, the way a camera lens falls off at its edges."; -> -{ - pass - { - VertexShader = VS_PostProcess; - PixelShader = PS_Vignette; - } -} diff --git a/dist/post_shaders/WhiteBalance.fx b/dist/post_shaders/WhiteBalance.fx deleted file mode 100644 index 29aea52fc2..0000000000 --- a/dist/post_shaders/WhiteBalance.fx +++ /dev/null @@ -1,76 +0,0 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - -texture BackBufferTex : COLOR; -sampler BackBuffer { Texture = BackBufferTex; }; - -uniform float Temperature < - ui_type = "slider"; - ui_label = "Temperature"; - ui_tooltip = "Negative cools the picture towards blue, positive warms it towards orange."; - ui_min = -100.0; ui_max = 100.0; ui_step = 1.0; -> = 0.0; - -uniform float Tint < - ui_type = "slider"; - ui_label = "Tint"; - ui_tooltip = "Negative shifts towards green, positive towards magenta."; - ui_min = -100.0; ui_max = 100.0; ui_step = 1.0; -> = 0.0; - -void VS_PostProcess(in uint id : SV_VertexID, out float4 pos : SV_Position, out float2 uv : TEXCOORD) -{ - uv = float2(float(id & 2), float((id & 1) << 1)); - pos = float4(uv * float2(2.0, -2.0) + float2(-1.0, 1.0), 0.0, 1.0); -} - -float3 WhitePointLMS(float t1, float t2) -{ - float shift = 0.05; - if (t1 < 0.0) - { - shift = 0.10; - } - float x = 0.31271 - t1 * shift; - float y = 2.87 * x - 3.0 * x * x - 0.27509507 + t2 * 0.05; - - float big_y = 1.0; - float big_x = big_y * x / y; - float big_z = big_y * (1.0 - x - y) / y; - - return float3( 0.7328 * big_x + 0.4296 * big_y - 0.1624 * big_z, - -0.7036 * big_x + 1.6975 * big_y + 0.0061 * big_z, - 0.0030 * big_x + 0.0136 * big_y + 0.9834 * big_z); -} - -float4 PS_WhiteBalance(float4 pos : SV_Position, float2 uv : TEXCOORD) : SV_Target -{ - float3 rgb = pow(max(tex2D(BackBuffer, uv).rgb, 0.0), 2.2); - - float3 balance = float3(0.949237, 1.03542, 1.08728) / - WhitePointLMS(Temperature / 65.0, Tint / 65.0); - - const float3x3 rgb_to_lms = float3x3(0.390405, 0.549941, 0.008926, - 0.070841, 0.963172, 0.001358, - 0.023108, 0.128021, 0.936245); - const float3x3 lms_to_rgb = float3x3( 2.858470, -1.628790, -0.024891, - -0.210182, 1.158200, 0.000324, - -0.041812, -0.118169, 1.068670); - - float3 lms = mul(rgb_to_lms, rgb) * balance; - rgb = mul(lms_to_rgb, lms); - - return float4(saturate(pow(max(rgb, 0.0), 1.0 / 2.2)), 1.0); -} - -technique WhiteBalance < - ui_label = "White Balance"; - ui_tooltip = "Corrects a picture that looks too cool, too warm or tinted."; -> -{ - pass - { - VertexShader = VS_PostProcess; - PixelShader = PS_WhiteBalance; - } -} diff --git a/docs/CrossCompile.md b/docs/CrossCompile.md index 06bac5d9db..7eeb4b7b67 100644 --- a/docs/CrossCompile.md +++ b/docs/CrossCompile.md @@ -2,7 +2,122 @@ General guide for cross compiling. -## Debian ARM64 +## Gentoo + +Gentoo's cross-compilation setup is relatively easy, provided you're already familiar with portage. + +### Crossdev + +First, emerge crossdev via `sudo emerge -a sys-devel/crossdev`. + +Now, set up the environment depending on the target architecture; e.g. + +```sh +sudo crossdev powerpc64le +sudo crossdev aarch64 +``` + +### QEMU + +Installing a qemu user setup is recommended for testing. To do so, you will need the relevant USE flags: + +```sh +app-emulation/qemu static-user qemu_user_targets_ppc64le qemu_user_targets_aarch64 +``` + +Note that to use cross-emerged libraries, you will need to tell qemu where the sysroot is. You can do this with an alias: + +```sh +alias qemu-ppc64le="qemu-ppc64le -L /usr/powerpc64le-unknown-linux-gnu" +alias qemu-aarch64="qemu-aarch64 -L /usr/aarch64-unknown-linux-gnu" +``` + +### Dependencies + +Some packages have broken USE flags on other architectures; you'll also need to set up python targets. In `/usr/-unknown-linux-gnu/etc/portage/package.use`: + +```sh +>=net-misc/curl-8.16.0-r1 ssl + +*/* PYTHON_TARGETS: python3_13 PYTHON_SINGLE_TARGET: python3_13 +*/* pam + +sys-apps/util-linux pam su +app-shells/bash -readline +>=dev-libs/libpcre2-10.47 unicode +>=x11-libs/libxkbcommon-1.12.3 X +>=sys-libs/zlib-1.3.1-r1 minizip +>=app-alternatives/gpg-1-r3 ssl +>=app-crypt/gnupg-2.5.13-r2 ssl + +dev-libs/* -introspection +media-libs/harfbuzz -introspection +dev-libs/quazip -qt5 qt6 +``` + +Dependencies should be about the same [as normal Gentoo](./Deps.md), but removing gamemode and renderdoc is recommended. Keep in mind that when emerging, you want to use `emerge--unknown-linux-gnu`, e.g. `emerge-powerpc64le-unknown-linux-gnu`. + +Enable GURU in the cross environment (as root): + +```sh +mkdir -p /usr/powerpc64le-unknown-linux-gnu/etc/portage/repos.conf +cat << EOF > /usr/powerpc64le-unknown-linux-gnu/etc/portage/repos.conf/guru.conf +[guru] +location = /var/db/repos/guru +auto-sync = no +priority = 1 +EOF +``` + +Now emerge your dependencies: + +```sh +sudo emerge-powerpc64le-unknown-linux-gnu -aU app-arch/lz4 app-arch/zstd app-arch/unzip \ + dev-libs/libfmt dev-libs/libusb dev-libs/mcl dev-libs/sirit dev-libs/oaknut \ + dev-libs/unordered_dense dev-libs/boost dev-libs/openssl dev-libs/discord-rpc \ + dev-util/spirv-tools dev-util/spirv-headers dev-util/vulkan-headers \ + dev-util/vulkan-utility-libraries dev-util/glslang \ + media-libs/libva media-libs/opus media-video/ffmpeg \ + media-libs/VulkanMemoryAllocator media-libs/libsdl2 media-libs/cubeb \ + net-libs/enet net-libs/mbedtls \ + sys-libs/zlib \ + dev-cpp/nlohmann_json dev-cpp/simpleini dev-cpp/cpp-httplib dev-cpp/cpp-jwt dev-cpp/catch \ + net-wireless/wireless-tools \ + dev-qt/qtbase:6 dev-libs/quazip \ + virtual/pkgconfig +``` + +### Building + +A toolchain is provided in `CMakeModules/GentooCross.cmake`. To use it: + +```sh +cmake -S . -B build/ppc64 -DCMAKE_TOOLCHAIN_FILE=CMakeModules/GentooCross.cmake -G Ninja -DCROSS_TARGET=powerpc64le -DENABLE_OPENGL=OFF +``` + +Now build as normal: + +```sh +cmake --build build/ppc64 -j$(nproc) +``` + +### Alternatively + +Only emerge the absolute necessities: + +```sh +sudo emerge-powerpc64le-unknown-linux-gnu -aU media-video/ffmpeg media-libs/libsdl2 dev-qt/qtbase:6 +``` + +Then set `YUZU_USE_CPM=ON`: + +```sh +cmake -S . -B build/ppc64 -DCMAKE_TOOLCHAIN_FILE=CMakeModules/GentooCross.cmake -G Ninja -DCROSS_TARGET=powerpc64le -DENABLE_OPENGL=OFF -DYUZU_USE_CPM=ON +``` + +## ARM64 + +### Debian ARM64 A painless guide for cross compilation (or to test NCE) from a x86_64 system without polluting your main. @@ -88,3 +203,24 @@ And finally, run the compiled executable with QEMU! ```sh qemu-aarch64 build/aarch64/bin/eden ``` + +## PowerPC + +This is a guide for FreeBSD users mainly. + +Now you got a PowerPC sysroot - quickly decompress it somewhere, say `/home/user/opt/powerpc64le`. Create a toolchain file, for example `powerpc64le-toolchain.cmake`; always [consult the manual](https://man.freebsd.org/cgi/man.cgi?query=cmake-toolchains&sektion=7&manpath=FreeBSD+13.2-RELEASE+and+Ports). + +There is a script to automatically do all of this under `./tools/setup-cross-sysroot.sh`. + +Remember to add `-mabi=elfv1` to `CFLAGS`/`CXXFLAGS` otherwise the program will crash. + +Specify: + +- `YUZU_USE_CPM`: Set this to `ON` so packages can be found and built if your sysroot doesn't have them. +- `YUZU_USE_EXTERNAL_FFMPEG`: Set this to `ON` as well. + +Then run using a program such as QEMU to emulate userland syscalls: + +```sh +cmake --build build-ppc64-pc-freebsd -t dynarmic_tests -- -j8 && qemu-ppc64-static -L $HOME/opt/ppc64-freebsd/sysroot ./build-ppc64-pc-freebsd/bin/dynarmic_tests +``` diff --git a/docs/dynarmic/PowerPC.md b/docs/dynarmic/PowerPC.md new file mode 100644 index 0000000000..d625bb30fa --- /dev/null +++ b/docs/dynarmic/PowerPC.md @@ -0,0 +1,8 @@ +# PowerPC 64 backend + +The ppc64 backend currently only supports the little endian variant, with big endian support being experimental for the time being. Additionally only A32 is supported (for now). + +- Flag handling: Flags are emulated via software, while there may be some funny tricks with the CTR, I'd rather not bother - plus it's widely known that those instructions are not nice on real metal - so I would rather take the i-cache cost. +- 128-bit atomics: No 128-bit atomic support is provided, this may cause wrong or erroneous execution in some contexts. + +To handle endianess differences all 16/32/64-bit loads and stores to the "emulated memory" are byteswapped beforehand. diff --git a/docs/dynarmic/README.md b/docs/dynarmic/README.md index 0fa893d550..5d5a451961 100644 --- a/docs/dynarmic/README.md +++ b/docs/dynarmic/README.md @@ -7,11 +7,12 @@ A dynamic recompiler for ARM. Cortex-A57 (32 and 64 bit) is the emulated guest target. See [ArchVersion](../../src/dynarmic/src/dynarmic/interface/A32/arch_version.h). -The only supported host architectures are x86-64, and AArch64. There are no plans to support any 32-bit architectures. +The only supported host architectures are x86-64, PowerPC 64, and AArch64. There are no plans to support any 32-bit architectures. See [an example usage](../../src/dynarmic/tests/print_info.cpp). Design documentation can be found at [./Design.md](./Design.md). +PowerPC design documentation can be found at [./PowerPC](./PowerPC.md). Alternatives to Dynarmic ------------------------ diff --git a/docs/policies/AI.md b/docs/policies/AI.md new file mode 100644 index 0000000000..554a805331 --- /dev/null +++ b/docs/policies/AI.md @@ -0,0 +1,116 @@ +# AI Policy + +AI and LLM use is *strictly* prohibited within our codebase and surrounding community, including issues and comments. This includes using AI or LLMs to write docs/commit messages, debug issues, brainstorm ideas, research concepts, or search the codebase. + +- [AI Policy](#ai-policy) + - [Low-quality code](#low-quality-code) + - [Licensing concerns](#licensing-concerns) + - [Vibe-coding](#vibe-coding) + - [Commit messages](#commit-messages) + - [Miscellaneous concerns](#miscellaneous-concerns) + - [Unacceptable Use Examples](#unacceptable-use-examples) + - [Addendum: Commit Messages](#addendum-commit-messages) + +## Low-quality code + +AI is notorious for producing low-quality code; be it: + +- nonfunctional, +- verbose/inefficient, +- breaking other parts of the codebase, +- or writing/architecting in a completely different style + +All code, AI or not, is held under a **strict standard of excellence**. AI/LLM-generated code will fail this test 10 times out of 10. + +## Licensing concerns + +This is an area of ongoing litigation, and as such, is still very iffy. For the time being, know that allowing AI to ingest the codebase may end up with its copyleft code regurgitated into incompatibly-licensed proprietary or permissive software. For you, this means to **not** feed code into LLMs. + +AI models may have also ingested AGPLv3 code, which is license-incompatible with our codebase. + +## Vibe-coding + +Just don't. If you're not going to put the effort in to understand every line of code you wrote, neither will we, and your patch or pull request will be ignored. + +## Commit messages + +AI-generated commit messages are absolutely terrible, and your pull request or patch will immediately be rejected if you choose to do this. They are, quite simply, actively detrimental to our understanding of your changes, and if you're not willing to summarize the intent behind your changes, then we're not going to bother reading the code you wrote. + +Write concise, simple, and descriptive commit messages that actually convey the proper intent behind what your change is trying to do. + +See the [Addendum](#addendum-commit-messages) for an instance of how bad AI models are at commit messages. + +## Miscellaneous concerns + +- While many environmental concerns about AI are typically blown out of proportion, it *is* a legitimate issue, and should be taken into account. +- Many people have significant concerns over the ethics of AI usage due to inhumane and predatory behavior by large AI companies, particularly Anthropic and OpenAI. This can technically be avoided through the usage of local LLMs. +- LLMs have a tendency to add unicode characters (such as the arrow → and the em-dash — symbols) to their output, which can make viewing code or documents harder on command-line editors and viewers. +- Dedicated coding models--namely Claude--also like to add a lot of comments to overexplain every individual line of code it produces. This actually makes it *harder* to understand the code! + +## Unacceptable Use Examples + +Here are a few examples of unacceptable use: + +- Solving problems + - Slapping a few files and a "please fix bug XYZ" into an LLM is a recipe for disaster that will pretty much never work. +- Fully AI-generated code, aka "vibecoding" +- Writing code based on pseudo-instructions + - If you don't know how to write code, don't. If you've figured out the root cause (preferably without feeding random files into an LLM) and actively know what's going on, provide information to other developers or friends of yours who have knowledge of the language and/or the codebase. + +## Addendum: Commit Messages + +The patchset for pull request [#3422](https://git.eden-emu.dev/eden-emu/eden/pulls/3422) was fed into several LLMs to generate a commit message. One LLM produced the following: + +```txt +profile_manager: Refactor user deletion to use index instead of UUID + +This commit improves the user profile deletion flow in the following ways: + +1. **UI layer (ConfigureProfileManager)**: + - Replaces UUID-based deletion with index-based deletion + - Passes the selected row index from the tree view to the confirmation dialog + - Emits deleteUser(int index) signal from ConfigureProfileManagerDeleteDialog + - Removes lambda capture and std::function callback in favor of direct signal/slot connection + +2. **Delete dialog**: + - Changes SetInfo() signature to accept index instead of accept callback + - Stores index internally and emits it via deleteUser signal on acceptance + +3. **Core ProfileManager**: + - Refactors RemoveUser(UUID) → RemoveProfileAtIndex(index) + - Removes duplicated stable_partition + save logic from RemoveUser() + - Centralizes profile removal and save-file writing in RemoveProfileAtIndex() + +4. **Minor follow-up**: + - Adds profile_manager.ResetUserSaveFile() call in PopulateUserList() to ensure consistent state when refreshing the user list + +These changes eliminate redundant code, reduce the risk of UUID → index mismatch bugs, and make the deletion path more straightforward and maintainable. + +Fixes: potential inconsistency when user order changes between UI and backend +``` + +This is: + +- Needlessly verbose (nobody cares about most of these details) +- Doesn't address the actual purpose of the PR (fixing a double-deletion bug in the profile manager) +- Has unicode arrows (this is bad for command-line editors) +- Uses corporate and word-salad language + +Another (code-oriented) LLM output the following: + +```txt +profile(manager/ui): switch to index-based deletion and unify removal logic + +- Make ConfigureProfileManagerDeleteDialog emit a deleteUser(int) signal instead of taking a callback. Store the target index in the dialog (m_index) and emit it on acceptance. +- Change ConfigureProfileManager to pass an index to SetInfo and to accept an index in DeleteUser. Wire the dialog signal to the new DeleteUser slot. +- Update headers: add the signal and m_index, add TODO to move dialog to a .ui file, and update slot/signature declarations. +- Add ProfileManager::RemoveProfileAtIndex(std::size_t) and refactor RemoveUser(UUID) to call RemoveProfileAtIndex to avoid duplicated removal logic. Ensure the removal path marks saves as needed and writes the user save file. +- Ensure the profile list updates immediately after deletes by calling profile_manager.ResetUserSaveFile() when populating the user list (qlaunch fix). +- Misc: update SPDX copyright year and fix build breakages caused by the API changes. + +This consolidates profile removal behavior, fixes potential race conditions in the profile dialog, and removes duplicated removal code. +``` + +This has all of the same problems as the other one. Needlessly verbose, doesn't address *what* it actually fixes ("consolidates profile removal behavior"... okay, why? What does it fix?), etc. It even has the bonus of totally hallucinating the addition of a method! + +On a more "philosophical" note, LLMs tend to be geared towards *corporate language*, as that's what they're trained on. This is why AI-generated commit messages feel like "word salad", and typically pad out the commit message to make it *look* like a lot of things were changed (trust me, it's like that in the corporate world). They typically also drift towards unneeded buzzwords and useless implementation details. diff --git a/docs/user/CommandLine.md b/docs/user/CommandLine.md index a63a41a27c..b8d71ac61f 100644 --- a/docs/user/CommandLine.md +++ b/docs/user/CommandLine.md @@ -1,44 +1,32 @@ # User Handbook - Command Line -There are two main applications, an SDL-based app (`eden-cli`) and a Qt based app (`eden`); both accept the same command line arguments. +There are two main applications, an SDL-based app (`eden-cli`) and a Qt based app (`eden`); both accept command line arguments. + +## eden - `./eden `: Running with a single argument and nothing else, will make the emulator look for the given file and load it, this behavior is similar to `eden-cli`; allows dragging and dropping games into the application. -- `--debug/-d`: Enter debug mode, allow gdb stub at port `1234` -- `--config/-c`: Specify alternate configuration file. -- `--fullscreen/-f`: Use fullscreen. -- `--help/-h`: Display help. -- `--game/-g `: Alternate way to specify what to load, overrides. However let it be noted that arguments that use `-` will be treated as options/ignored, if your game, for some reason, starts with `-`, in order to safely handle it you may need to specify it as an argument. -- `--multiplayer/-m`: Specify multiplayer options. -- `--program/-p`: Specify the program arguments to pass (optional). -- `--user/-u `: Specify the user index. -- `--version/-v`: Display version and quit. -- `--input-profile/-i `: Specifies input profile name to use (for player #0 only). -- `--null-render/-n`: Forces the usage of the "Null" render backend irrespective of settings. -- `--filter/-x`: Sets the debug log filter irrespective of settings. -- `--singlecore/-s`: Forces single-core regardless of settings. - -Only the Qt frontend supports the following arguments: - +- `-g `: Alternate way to specify what to load, overrides. However let it be noted that arguments that use `-` will be treated as options/ignored, if your game, for some reason, starts with `-`, in order to safely handle it you may need to specify it as an argument. +- `-f`: Use fullscreen. +- `-u `: Select the index of the user to load as. +- `-input-profile `: Specifies input profile name to use (for player #0 only). - `-qlaunch`: Launch QLaunch. - `-hlaunch`: Launch homebrew launcher `nx-hbloader`. - Requires a copy of Atmosphere to be extracted onto `sdmc`. - This is a shorthand for `/sdmc/atmosphere/hbl.nsp`. - `-setup`: Launch setup applet. -`eden` (provided with `--room`), and `eden-room` supports the following options as well: +## eden-cli -- `-n/--room-name`: The name of the room. -- `-d/--room-description`: The room description. -- `-s/--bind-address`: The bind address for the room. -- `-p/--port`: The port used for the room. -- `-m/--max-members`: The maximum number of players for this room. -- `-w/--password`: The password for the room. -- `-g/--preferred-game`: The preferred game for this room. -- `-i/--preferred-game-id`: The preferred game-id for this room. -- `-u/--username`: The username used for announce. -- `-t/--token`: The token used for announce. -- `-a/--web-api-url`: yuzu Web API url. -- `-b/--ban-list-file`: The file for storing the room ban list. -- `-l/--log-file`: The file for storing the room log. -- `-h/--help`: Display this help and exit. -- `-v/--version`: Output version information and exit. +- `--debug/-d`: Enter debug mode, allow gdb stub at port `1234` +- `--config/-c`: Specify alternate configuration file. +- `--fullscreen/-f`: Set fullscreen. +- `--help/-h`: Display help. +- `--game/-g`: Specify the game to run. +- `--multiplayer/-m`: Specify multiplayer options. +- `--program/-p`: Specify the program arguments to pass (optional). +- `--user/-u`: Specify the user index. +- `--version/-v`: Display version and quit. +- `--input-profile/-i`: Specifies input profile name to use (for player #0 only). +- `--null-render/-n`: Forces the usage of the "Null" render backend irrespective of settings. +- `--filter/-x`: Sets the debug log filter irrespective of settings. +- `--singlecore/-s`: Forces single-core regardless of settings. diff --git a/externals/CMakeLists.txt b/externals/CMakeLists.txt index cb1deceb96..a70f62d3f4 100644 --- a/externals/CMakeLists.txt +++ b/externals/CMakeLists.txt @@ -48,11 +48,6 @@ if (NOT TARGET stb::headers) add_library(stb::headers ALIAS stb) endif() -AddJsonPackage(NAME zbic DOWNLOAD_ONLY) -set(ZBIC_INCLUDE_DIR - "${zbic_SOURCE_DIR}/src" - PARENT_SCOPE) - # ItaniumDemangle (Windows only) if (WIN32 AND NOT TARGET LLVM::Demangle) add_library(demangle demangle/ItaniumDemangle.cpp) @@ -200,50 +195,6 @@ else() endif() endif() -# reshadefx -if (ENABLE_RESHADE) - AddJsonPackage(NAME reshade DOWNLOAD_ONLY) - - set(RESHADEFX_SHIM_DIR ${CMAKE_CURRENT_BINARY_DIR}/reshadefx_shim) - file(WRITE ${RESHADEFX_SHIM_DIR}/spirv.hpp "#include \n") - file(WRITE ${RESHADEFX_SHIM_DIR}/GLSL.std.450.h "#include \n") - if (APPLE) - file(WRITE ${RESHADEFX_SHIM_DIR}/malloc.h "#include \n#include \n") - endif() - - add_library(reshadefx STATIC - ${reshade_SOURCE_DIR}/source/effect_codegen_spirv.cpp - ${reshade_SOURCE_DIR}/source/effect_expression.cpp - ${reshade_SOURCE_DIR}/source/effect_lexer.cpp - ${reshade_SOURCE_DIR}/source/effect_parser_exp.cpp - ${reshade_SOURCE_DIR}/source/effect_parser_stmt.cpp - ${reshade_SOURCE_DIR}/source/effect_preprocessor.cpp - ${reshade_SOURCE_DIR}/source/effect_symbol_table.cpp - ) - - target_include_directories(reshadefx SYSTEM PUBLIC ${reshade_SOURCE_DIR}/source) - target_include_directories(reshadefx PRIVATE ${RESHADEFX_SHIM_DIR}) - target_link_libraries(reshadefx PUBLIC SPIRV-Headers::SPIRV-Headers) - - if (NOT MSVC) - target_compile_options(reshadefx PRIVATE -w -fno-char8_t) - else() - target_compile_options(reshadefx PRIVATE /w /Zc:char8_t-) - endif() - - if (WIN32) - if (NOT MSVC) - target_compile_options(reshadefx PRIVATE -include share.h) - else() - target_compile_options(reshadefx PRIVATE /FIshare.h) - endif() - endif() - - if (NOT TARGET reshadefx::reshadefx) - add_library(reshadefx::reshadefx ALIAS reshadefx) - endif() -endif() - # Catch2 if (YUZU_TESTS OR DYNARMIC_TESTS) AddJsonPackage(catch2) @@ -298,6 +249,11 @@ endif() # TZDB (Time Zone Database) add_subdirectory(nx_tzdb) +# PowerPC emitter +if (ARCHITECTURE_powerpc64) + add_subdirectory(powah) +endif() + add_library(tz tz/tz/tz.cpp) target_include_directories(tz PUBLIC ./tz) diff --git a/externals/cmake-modules/DetectArchitecture.cmake b/externals/cmake-modules/DetectArchitecture.cmake index 105963c8c2..3d6e933d76 100644 --- a/externals/cmake-modules/DetectArchitecture.cmake +++ b/externals/cmake-modules/DetectArchitecture.cmake @@ -166,7 +166,7 @@ detect_architecture_symbols( "_M_MRX000") detect_architecture_symbols( - ARCH ppc64 + ARCH powerpc64 SYMBOLS "__ppc64__" "__powerpc64__" @@ -174,7 +174,7 @@ detect_architecture_symbols( "_M_PPC64") detect_architecture_symbols( - ARCH ppc + ARCH powerpc SYMBOLS "__ppc__" "__ppc" diff --git a/externals/powah/CMakeLists.txt b/externals/powah/CMakeLists.txt new file mode 100644 index 0000000000..4d768251b7 --- /dev/null +++ b/externals/powah/CMakeLists.txt @@ -0,0 +1,10 @@ +# SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project +# SPDX-License-Identifier: GPL-3.0-or-later + +add_library(powah INTERFACE) +target_include_directories(powah INTERFACE ${CMAKE_CURRENT_SOURCE_DIR}) +target_compile_options(powah INTERFACE -Wno-unused-parameter) + +add_executable(powah_tests tests.cpp) +create_target_directory_groups(powah_tests) +target_link_libraries(powah_tests PRIVATE Catch2::Catch2WithMain) diff --git a/externals/powah/altivec_data.txt b/externals/powah/altivec_data.txt new file mode 100644 index 0000000000..d5cdf4bc92 --- /dev/null +++ b/externals/powah/altivec_data.txt @@ -0,0 +1,145 @@ +vabsdub,VX,04,1027 +vabsduh,VX,04,1091 +vabsduw,VX,04,1155 +vaddcuw,VX,04,384 +vaddfp,VX,04,10 +vaddsbs,VX,04,768 +vaddshs,VX,04,832 +vaddsws,VX,04,896 +vaddubm,VX,04,0 +vaddubs,VX,04,512 +vadduhm,VX,04,64 +vadduhs,VX,04,576 +vadduwm,VX,04,128 +vadduws,VX,04,640 +vand,VX,04,1028 +vandc,VX,04,1092 +vavgsb,VX,04,1282 +vavgsh,VX,04,1346 +vavgsw,VX,04,1410 +vavgub,VX,04,1026 +vavguh,VX,04,1090 +vavguw,VX,04,1154 +vcfsx,VDU,04842 +vcfux,VDU,04778 +vcmpbfp,VXR,04,966 +vcmpeqfp,VXR,04,198 +vcmpequb,VXR,04,6 +vcmpequh,VXR,04,70 +vcmpequw,VXR,04,134 +vcmpgefp,VXR,04,454 +vcmpgtfp,VXR,04,710 +vcmpgtsb,VXR,04,774 +vcmpgtsh,VXR,04,838 +vcmpgtsw,VXR,04,902 +vcmpgtub,VXR,04,518 +vcmpgtuh,VXR,04,582 +vcmpgtuw,VXR,04,646 +vctsxs,VDU,04970 +vctuxs,VDU,04906 +vexptefp,VY,04,394 +vlogefp,VY,04,458 +vmaddfp,VXC,46 +vmaxfp,VX,04,1034 +vmaxsb,VX,04,258 +vmaxsh,VX,04,322 +vmaxsw,VX,04,386 +vmaxub,VX,04,2 +vmaxuh,VX,04,66 +vmaxuw,VX,04,130 +vmhaddshs,VXC,32 +vmhraddshs,VXC,33 +vminfp,VX,04,1098 +vminsb,VX,04,770 +vminsh,VX,04,834 +vminsw,VX,04,898 +vminub,VX,04,514 +vminuh,VX,04,578 +vminuw,VX,04,642 +vmladduhm,VXC,34 +vmrghb,VX,04,12 +vmrghh,VX,04,76 +vmrghw,VX,04,140 +vmrglb,VX,04,268 +vmrglh,VX,04,332 +vmrglw,VX,04,396 +vmsummbm,VXC,37 +vmsumshm,VXC,40 +vmsumshs,VXC,41 +vmsumubm,VXC,36 +vmsumuhm,VXC,38 +vmsumuhs,VXC,39 +vmulesb,VX,04,776 +vmulesh,VX,04,840 +vmuleub,VX,04,520 +vmuleuh,VX,04,584 +vmulosb,VX,04,264 +vmulosh,VX,04,328 +vmuloub,VX,04,8 +vmulouh,VX,04,72 +vnmsubfp,VXC,47 +vnor,VX,04,1284 +vor,VX,04,1156 +vperm,VXC,43 +vpkpx,VX,04,782 +vpkshss,VX,04,398 +vpkshus,VX,04,270 +vpkswss,VX,04,462 +vpkswus,VX,04,334 +vpkuhum,VX,04,14 +vpkuhus,VX,04,142 +vpkuwum,VX,04,78 +vpkuwus,VX,04,206 +vrefp,VY,04,266 +vrfim,VY,04,714 +vrfin,VY,04,522 +vrfip,VY,04,650 +vrfiz,VY,04,586 +vrlb,VX,04,4 +vrlh,VX,04,68 +vrlw,VX,04,132 +vrsqrtefp,VY,04,330 +vsel,VXC,42 +vsl,VX,04,452 +vslb,VX,04,260 +vsldoi,VX,04,/ SH 44 +vslh,VX,04,324 +vslo,VX,04,1036 +vslw,VX,04,388 +vspltb,VU,04,524 +vsplth,VU,04,588 +vspltisb,VS,04,780 +vspltish,VS,04,844 +vspltisw,VS,04,908 +vspltw,VSU,04,652 +vsr,VX,04,708 +vsrab,VX,04,772 +vsrah,VX,04,836 +vsraw,VX,04,900 +vsrb,VX,04,516 +vsrh,VX,04,580 +vsro,VX,04,1100 +vsrw,VX,04,644 +vsubcuw,VX,04,1408 +vsubfp,VX,04,74 +vsubsbs,VX,04,1792 +vsubshs,VX,04,1856 +vsubsws,VX,04,1920 +vsububm,VX,04,1024 +vsububs,VX,04,1536 +vsubuhm,VX,04,1088 +vsubuhs,VX,04,1600 +vsubuwm,VX,04,1152 +vsubuws,VX,04,1664 +vsumsws,VX,04,1928 +vsum2sws,VX,04,1672 +vsum4sbs,VX,04,1800 +vsum4shs,VX,04,1608 +vsum4ubs,VX,04,1544 +vupkhpx,VY,04,846 +vupkhsb,VY,04,526 +vupkhsh,VY,04,590 +vupklpx,VY,04,974 +vupklsb,VY,04,654 +vupklsh,VY,04,718 +vxor,VX,04,122 \ No newline at end of file diff --git a/externals/powah/build.sh b/externals/powah/build.sh new file mode 100755 index 0000000000..d3420c70b6 --- /dev/null +++ b/externals/powah/build.sh @@ -0,0 +1,6 @@ +#!/bin/sh + +# SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project +# SPDX-License-Identifier: GPL-3.0-or-later +$CC data2code.c -o data2code && ./data2code data.txt >powah_gen_base.hpp +$CC --target=powerpc64le test.S -c -o test && objdump -SC test diff --git a/externals/powah/data.txt b/externals/powah/data.txt new file mode 100644 index 0000000000..c3a9767fb3 --- /dev/null +++ b/externals/powah/data.txt @@ -0,0 +1,222 @@ +add[o][.],Add,XO,31,266 +addc[o][.],Add Carrying,XO,31,10 +adde[o][.],Add Extended,XO,31,138 +addi,Add Immediate,D,14, +addic,Add Immediate Carrying,D,12, +addic.,Add Immediate Carrying and Record,D,13, +addis,Add Immediate Shifted,D,15, +addme[o][.],Add to Minus One Extended,XO,31,234 +addze[o][.],Add to Zero Extended,XO,31,202 +and[.],AND,X,31,28 +andc[.],AND with Complement,X,31,60 +andi.,AND Immediate,D,28, +andis.,AND Immediate Shifted,D,29, +b[l][a],Branch,I,18, +bc[l][a],Branch Conditional,B,16, +bcctr[l],Branch Conditional to Count Register,XL,19,528 +bclr[l],Branch Conditional Link Register,XL,19,16 +cmp,Compare,X,31,0 +cmpi,Compare Immediate,D,11, +cmpl,Compare Logical,X,31,32 +cmpli,Compare Logical Immediate,D,10, +cntlzd,Count Leading Zeros Doubleword,X,31,58 +cntlzw[.],Count Leading Zeros Word,X,31,26 +crand,Condition Register AND,XL,19,257 +crandc,Condition Register AND with Complement,XL,19,129 +creqv,Condition Register Equivalent,XL,19,289 +crnand,Condition Register NAND,XL,19,225 +crnor,Condition Register NOR,XL,19,33 +cror,Condition Register OR,XL,19,449 +crorc,Condition Register OR with Complement,XL,19,417 +crxor,Condition Register XOR,XL,19,193 +dcbf,Data Cache Block Flush,X,31,86 +dcbi,Data Cache Block Invalidate,X,31,470 +dcbst,Data Cache Block Store,X,31,54 +dcbt,Data Cache Block Touch,X,31,278 +dcbtst,Data Cache Block Touch for Store,X,31,246 +dcbz,Data Cache Block Set to Zero,X,31,1014 +divd,Divide Doubleword,XO,31,489 +divdu,Divide Doubleword Unsigned,XO,31,457 +divw[o][.],Divide Word,XO,31,491 +divwu[o][.],Divide Word Unsigned,XO,31,459 +eciwx,External Control in Word Indexed (opt.),X,31,310 +ecowx,External Control out Word Indexed (opt.),X,31,438 +eieio,Enforce In-order Execution of I/O,X,31,854 +eqv[.],Equivalent,X,31,284 +extsb[.],Extend Sign Byte,X,31,954 +extsh[.],Extend Sign Halfword,XO,31,922 +extsw,Extend Sign Word,X,31,986 +fabs[.],Floating Absolute Value,X,63,264 +fadd[.],Floating Add,A,63,21 +fadds[.],Floating Add Single,A,59,21 +fcfid,Floating Convert from Integer Doubleword,X,63,846 +fcmpo,Floating Compare Ordered,X,63,32 +fcmpu,Floating Compare Unordered,XL,63,0 +fctid,Floating Convert to Integer Doubleword,X,63,814 +fctidz,Floating Convert to Integer Doubleword with Round Toward Zero,X,63,815 +fctiw[.],Floating Convert to Integer Word,X,63,14 +fctiwz[.],Floating Convert to Integer Word with Round to Zero,XL,63,15 +fdiv[.],Floating Divide,A,63,18 +fdivs[.],Floating Divide Single,A,59,18 +fmadd[.],Floating Multiply-Add,A,63,29 +fmadds[.],Floating Multiply-Add Single,A,59,29 +fmr[.],Floating Move Register,X,63,72 +fmsub[.],Floating Multiply-Subtract,A,63,28 +fmsubs[.],Floating Multiply-Subtract Single,A,59,28 +fmul[.],Floating Multiply,A,63,25 +fmuls[.],Floating Multiply Single,A,59,25 +fnabs[.],Floating Negative Absolute Value,X,63,136 +fneg[.],Floating Negate,X,63,40 +fnmadd[.],Floating Negative Multiply-Add,A,63,31 +fnmadds[.],Floating Negative Multiply-Add Single,A,59,31 +fnmsub[.],Floating Negative Multiply-Subtract,A,63,30 +fnmsubs[.],Floating Negative Multiply-Subtract Single,A,59,30 +fres[.],Floating Reciprocal Estimate Single (optional),A,59,24 +frsp[.],Floating Round to Single Precision,X,63,12 +frsqrte[.],Floating Reciprocal Square Root Estimate (optional),A,63,26 +fsel[.],Floating-Point Select (optional),A,63,23 +fsub[.],Floating Subtract,A,63,20 +fsubs[.],Floating Subtract Single,A,59,20 +icbi,Instruction Cache Block Invalidate,X,31,982 +isync,Instruction Synchronize,X,19,150 +lbz,Load Byte and Zero,D,34, +lbzu,Load Byte and Zero with Update,D,35, +lbzux,Load Byte and Zero with Update Indexed,X,31,119 +lbzx,Load Byte and Zero Indexed,X,31,87 +ld,Load Doubleword,DS,58,0 +ldarx,Load Doubleword and Reserve Indexed,X,31,84 +ldu,Load Doubleword with Update,DS,58,1 +ldux,Load Doubleword with Update Indexed,X,31,53 +ldx,Load Doubleword Indexed,X,31,21 +lfd,Load Floating-Point Double,D,50, +lfdu,Load Floating-Point Double with Update,D,51, +lfdux,Load Floating-Point Double with Update Indexed,X,31,631 +lfdx,Load Floating-Point Double Indexed,X,31,599 +lfs,Load Floating-Point Single,D,48, +lfsu,Load Floating-Point Single with Update,D,49, +lfsux,Load Floating-Point Single with Update Indexed,X,31,567 +lfsx,Load Floating-Point Single Indexed,X,31,535 +lha,Load Half Algebraic,D,42, +lhau,Load Half Algebraic with Update,D,43, +lhaux,Load Half Algebraic with Update Indexed,X,31,375 +lhax,Load Half Algebraic Indexed,X,31,343 +lhbrx,Load Half Byte-Reversed Indexed,X,31,790 +lhz,Load Half and Zero,D,40, +lhzu,Load Half and Zero with Update,D,41, +lhzux,Load Half and Zero with Update Indexed,X,31,331 +lhzx,Load Half and Zero Indexed,X,31,279 +lmw,Load Multiple Word,D,46, +lswi,Load String Word Immediate,X,31,597 +lswx,Load String Word Indexed,X,31,533 +lwa,Load Word Algebraic,DS,58,2 +lwarx,Load Word and Reserve Indexed,X,31,20 +lwaux,Load Word Algebraic with Update Indexed,X,31,373 +lwax,Load Word Algebraic Indexed,X,31,341 +lwbrx,Load Word Byte-Reversed Indexed,X,31,534 +lwz,Load Word and Zero,D,32, +lwzu,Load Word with Zero Update,D,33, +lwzux,Load Word and Zero with Update Indexed,X,31,55 +lwzx,Load Word and Zero Indexed,X,31,23 +mcrf,Move Condition Register Field,XL,19,0 +mcrfs,Move to Condition Register from FPSCR,X,63,64 +mcrxr,Move to Condition Register from XER,X,31,512 +mfcr,Move from Condition Register,X,31,19 +mffs[.],Move from FPSCR,X,63,583 +mfmsr,Move from Machine State Register,X,31,83 +mfspr,Move from Special-Purpose Register,X,31,339 +mfsr,Move from Segment Register,X,31,595 +mfsrin,Move from Segment Register Indirect,X,31,659 +mtcrf,Move to Condition Register Fields,XFX,31,144 +mtfsb0[.],Move to FPSCR Bit 0,X,63,70 +mtfsb1[.],Move to FPSCR Bit 1,X,63,38 +mtfsf[.],Move to FPSCR Fields,XFL,63,711 +mtfsfi[.],Move to FPSCR Field Immediate,X,63,134 +mtmsr,Move to Machine State Register,X,31,146 +mtspr,Move to Special-Purpose Register,X,31,467 +mtsr,Move to Segment Register,X,31,210 +mtsrin,Move to Segment Register Indirect,X,31,242 +mulhd,Multiply High Doubleword,XO,31,73 +mulhdu,Multiply High Doubleword Unsigned,XO,31,9 +mulhw[.],Multiply High Word,XO,31,75 +mulhwu[.],Multiply High Word Unsigned,XO,31,11 +mulld,Multiply Low Doubleword,XO,31,233 +mulli,Multiply Low Immediate,D,07, +mullw[o][.],Multiply Low Word,XO,31,235 +nand[.],NAND,X,31,476 +neg[o][.],Negate,XO,31,104 +nor[.],NOR,X,31,124 +or[.],OR,X,31,444 +orc[.],OR with Complement,X,31,412 +ori,OR Immediate,D,24, +oris,OR Immediate Shifted,D,25, +rfi,Return from Interrupt,X,19,50 +rldcl,Rotate Left Doubleword then Clear Left,MDS,30,8 +rldcr,Rotate Left Doubleword then Clear Right,MDS,30,9 +rldic,Rotate Left Doubleword Immediate then Clear,MD,30,2 +rldicl,Rotate Left Doubleword Immediate then Clear Left,MD,30,0 +rldicr,Rotate Left Doubleword Immediate then Clear Right,MD,30,1 +rldimi,Rotate Left Doubleword Immediate then Mask Insert,MD,30,3 +rlwimi[.],Rotate Left Word Immediate then Mask Insert,M,20, +rlwinm[.],Rotate Left Word Immediate then AND with Mask,M,21, +rlwnm[.],Rotate Left Word then AND with Mask,M,23, +sc,System Call,SC,17, +si,Subtract Immediate,D,12, +si.,Subtract Immediate and Record,D,13, +slbia,SLB Invalidate All,X,31,498 +slbie,SLB Invalidate Entry,X,31,434 +sld,Shift Left Doubleword,X,31,27 +slw[.],Shift Left Word,X,31,24 +srad,Shift Right Algebraic Doubleword,X,31,794 +sradi,Shift Right Algebraic Doubleword Immediate,XS,31,413 +srd,Shift Right Doubleword,X,31,539 +sraw[.],Shift Right Algebraic Word,X,31,792 +srawi[.],Shift Right Algebraic Word Immediate,X,31,824 +srw[.],Shift Right Word,X,31,536 +stb,Store Byte,D,38, +stbu,Store Byte with Update,D,39, +stbux,Store Byte with Update Indexed,X,31,247 +stbx,Store Byte Indexed,X,31,215 +std,Store Doubleword,DS,62,0 +stdcx,Store Doubleword Conditional Indexed,X,31,214 +stdu,Store Doubleword with Update,DS,62,1 +stdux,Store Doubleword with Update Indexed,X,31,181 +stdx,Store Doubleword Indexed,X,31,149 +stfd,Store Floating-Point Double,D,54, +stfdu,Store Floating-Point Double with Update,D,55, +stfdux,Store Floating-Point Double with Update Indexed,X,31,759 +stfdx,Store Floating-Point Double Indexed,X,31,727 +stfiwx,Store Floating-Point as Integer Word Indexed (optional),X,31,983 +stfs,Store Floating-Point Single,D,52, +stfsu,Store Floating-Point Single with Update,D,53, +stfsux,Store Floating-Point Single with Update Indexed,X,31,695 +stfsx,Store Floating-Point Single Indexed,X,31,663 +sth,Store Half,D,44, +sthbrx,Store Half Byte-Reverse Indexed,X,31,918 +sthu,Store Half with Update,D,45, +sthux,Store Half with Update Indexed,X,31,439 +sthx,Store Half Indexed,X,31,407 +stmw,Store Multiple Word,D,47, +stswi,Store String Word Immediate,X,31,725 +stswx,Store String Word Indexed,X,31,661 +stw,Store,D,36, +stwbrx,Store Word Byte-Reversed Indexed,X,31,662 +stwcx.,Store Word Conditional Indexed,X,31,150 +stwu,Store Word with Update,D,37, +stwux,Store Word with Update Indexed,X,31,183 +stwx,Store Word Indexed,X,31,151 +subf[o][.],Subtract from,XO,31,40 +subfc[o][.],Subtract from Carrying,XO,31,08 +subfe[o][.],Subtract from Extended,XO,31,136 +subfic,Subtract from Immediate Carrying,D,08, +subfme[o][.],Subtract from Minus One Extended,XO,31,232 +subfze[o][.],Subtract from Zero Extended,XO,31,200 +sync,Synchronize,X,31,598 +td,Trap Doubleword,X,31,68 +tdi,Trap Doubleword Immediate,D,2, +tlbie,Translation Look-aside Buffer Invalidate Entry (optional),X,31,306 +tlbsync,Translation Look-aside Buffer Synchronize (optional),X,31,566 +tw,Trap Word,X,31,04 +twi,Trap Word Immediate,D,03, +xor[.],XOR,X,31,316 +xori,XOR Immediate,D,26, +xoris,XOR Immediate Shift,D,27, diff --git a/externals/powah/data2code.c b/externals/powah/data2code.c new file mode 100644 index 0000000000..9b262b24ea --- /dev/null +++ b/externals/powah/data2code.c @@ -0,0 +1,343 @@ +// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project +// SPDX-License-Identifier: GPL-3.0-or-later + +#include +#include +#include +#include +#include +#include +int main(int argc, char *argv[]) { + printf( + "// this file is autogenerated DO NOT MODIFY\n" + "#pragma once\n" + ); + FILE* fp = fopen(argv[1], "rt"); + if (fp) { + char line[80]; + while (fgets(line, sizeof line, fp) != NULL) { + bool with_o = strstr(line, "[o]"), with_d = strstr(line, "[.]"); + char* p = strchr(line, '\n'), *name = strchr(line, ','), *mem = line; + if (p) *p = '\0'; + if (name) { + *name++ = '\0'; + char *form = strchr(name, ','); + if (form) { + *form++ = '\0'; + char *opc = strchr(form, ','); + if (opc) { + *opc++ = '\0'; + char *sec = strchr(opc, ','); + if (sec) { + struct b_info { const char *s; int o; int p; } infos[] = { + {"",1,0}, + {"LT",1,12}, + {"LE",2,4}, + {"NG",2,4}, + {"EQ",3,12}, + {"GE",1,4}, + {"NL",1,4}, + {"GT",2,12}, + {"NE",3,4}, + {"SO",4,12}, + {"UN",4,12}, + {"NS",4,4}, + {"NU",4,4}, + }; +#define OP_EXT ((i_opcode << 26) | (i_extopc << 1)) + if (strchr(mem, '[') != NULL) *strchr(mem, '[') = '\0'; + if (strchr(mem, '.') != NULL) *strchr(mem, '.') = '_'; + *sec++ = '\0'; + for (int i = 0; i < strlen(mem); ++i) + mem[i] = toupper(mem[i]); + int i_opcode = atoi(opc); + int i_extopc = atoi(sec); + //printf("// %s\n", mem); + if (!strcmp(form, "XO")) { + if (!strcmp(mem, "EXTSH")) { + printf( + "void %s(GPR const rt, GPR const ra) {" + " emit_%s(0x%08x, rt, ra, R0, false, false); " + "}\n" + , mem, form, OP_EXT); + printf( + "void %sC(GPR const rt, GPR const ra) {" + " emit_%s(0x%08x, rt, ra, R0, true, false); " + "}\n" + , mem, form, OP_EXT); + printf( + "void %s_(GPR const rt, GPR const ra) {" + " emit_%s(0x%08x, rt, ra, R0, false, true); " + "}\n" + , mem, form, OP_EXT); + printf( + "void %sC_(GPR const rt, GPR const ra) {" + " emit_%s(0x%08x, rt, ra, R0, true, true); " + "}\n" + , mem, form, OP_EXT); + } else { + printf( + "void %s(GPR const rt, GPR const ra, GPR const rb) {" + " emit_%s(0x%08x, rt, ra, rb, false, false); " + "}\n" + , mem, form, OP_EXT); + printf( + "void %sO(GPR const rt, GPR const ra, GPR const rb) {" + " emit_%s(0x%08x, rt, ra, rb, true, false); " + "}\n" + , mem, form, OP_EXT); + printf( + "void %s_(GPR const rt, GPR const ra, GPR const rb) {" + " emit_%s(0x%08x, rt, ra, rb, false, true); " + "}\n" + , mem, form, OP_EXT); + printf( + "void %sO_(GPR const rt, GPR const ra, GPR const rb) {" + " emit_%s(0x%08x, rt, ra, rb, true, true); " + "}\n" + , mem, form, OP_EXT); + } + } else if (!strcmp(form, "X")) { + if (!strcmp(mem, "CMPL") || !strcmp(mem, "CMP")) { + printf( + "void %s(uint32_t bf, uint32_t l, GPR const ra, GPR const rb) {" + " emit_%s(0x%08x, GPR{(bf << 2) | l}, ra, rb, false); " + "}\n" + , mem, form, OP_EXT); + } else if (!strcmp(mem, "CNTLZD") || !strcmp(mem, "CNTLZW") || !strcmp(mem, "EXTSB") || !strcmp(mem, "EXTSH") || !strcmp(mem, "EXTSW")) { + printf( + "void %s(GPR const rt, GPR const ra) {" + " emit_%s(0x%08x, ra, rt, R0, false); " + "}\n" + , mem, form, OP_EXT); + printf( + "void %s_(GPR const rt, GPR const ra) {" + " emit_%s(0x%08x, ra, rt, R0, true); " + "}\n" + , mem, form, OP_EXT); + } else { + printf( + "void %s(GPR const rt, GPR const ra, GPR const rb) {" + " emit_%s(0x%08x, ra, rt, rb, false); " + "}\n" + , mem, form, OP_EXT); + printf( + "void %s_(GPR const rt, GPR const ra, GPR const rb) {" + " emit_%s(0x%08x, ra, rt, rb, true); " + "}\n" + , mem, form, OP_EXT); + } + } else if (!strcmp(form, "I")) { + printf( + "void %s(Label const& i) {" + " emit_reloc_%s(0x%08x, i, false); " + "}\n" + , mem, form, i_opcode << 26); + printf( + "void %sL(Label const& i) {" + " emit_reloc_%s(0x%08x, i, true); " + "}\n" + , mem, form, i_opcode << 26); + } else if (!strcmp(form, "B")) { + for (int i = 0; i < 12; ++i) { + printf( + "void %s%s(CPR const cr, Label const& i) {" + " emit_reloc_%s(0x%08x, %i, cr.index + %i, i, false); " + "}\n" + , mem, infos[i].s, form, i_opcode << 26, infos[i].p, infos[i].o - 1); + printf( + "void %s%sL(CPR const cr, Label const& i) {" + " emit_reloc_%s(0x%08x, %i, cr.index + %i, i, true); " + "}\n" + , mem, infos[i].s, form, i_opcode << 26, infos[i].p, infos[i].o - 1); + if (!strcmp(mem, "BC")) mem[1] = '\0'; + } + } else if (!strcmp(form, "D")) { + if (!strcmp(mem, "CMPLI") || !strcmp(mem, "CMPI")) { + printf( + "void %s(uint32_t bf, uint32_t l, GPR const ra, uint32_t d) {" + " emit_%s(0x%08x, GPR{(bf << 2) | l}, ra, d); " + "}\n" + , mem, form, i_opcode << 26); + } else if (!strcmp(mem, "ANDIS_") || !strcmp(mem, "ANDI_") + || !strcmp(mem, "ORI") || !strcmp(mem, "ORIS") + || !strcmp(mem, "XORI") || !strcmp(mem, "XORIS")) { + printf( + "void %s(GPR const rt, GPR const ra, uint32_t d) {" + " emit_%s(0x%08x, ra, rt, d); " + "}\n" + , mem, form, i_opcode << 26); + } else { + printf( + "void %s(GPR const rt, GPR const ra, uint32_t d) {" + " emit_%s(0x%08x, rt, ra, d); " + "}\n" + , mem, form, i_opcode << 26); + } + } else if (!strcmp(form, "SC")) { + printf( + "void %s(uint32_t lev) {" + " emit_%s(0x%08x, lev); " + "}\n" + , mem, form, i_opcode << 26); + } else if (!strcmp(form, "DS")) { +#define OP_EXT_DS ((i_opcode << 26) | (i_extopc << 0)) + printf( + "void %s(GPR const rt, GPR const ra, uint32_t d) {" + " emit_%s(0x%08x, rt, ra, d >> 2); " + "}\n" + , mem, form, OP_EXT_DS); +#undef OP_EXT_DS + } else if (!strcmp(form, "XS")) { +#define OP_EXT_XS ((i_opcode << 26) | (i_extopc << 2)) + /* HUGE DIFFERENCE DO NOT REMOVE */ + printf( + "void %s(GPR const rt, GPR const ra, uint32_t sh) {" + " emit_%s(0x%08x, rt, ra, sh, false); " + "}\n" + , mem, form, OP_EXT_XS); + printf( + "void %s_(GPR const rt, GPR const ra, uint32_t sh) {" + " emit_%s(0x%08x, rt, ra, sh, true); " + "}\n" + , mem, form, OP_EXT_XS); +#undef OP_EXT_XS + } else if (!strcmp(form, "XL")) { + if (!strcmp(mem, "BCLR")) { + printf( + "void %s(GPR const bt, CPR const ba, GPR const bb) {" + " emit_%s(0x%08x, bt.index, ba.index, bb.index, false); " + "}\n" + , mem, form, OP_EXT); + printf( + "void %sL(GPR const bt, CPR const ba, GPR const bb) {" + " emit_%s(0x%08x, bt.index, ba.index, bb.index, true); " + "}\n" + , mem, form, OP_EXT); + if (!strcmp(mem, "BCLR")) mem[1] = '\0'; + for (int i = 1; i < 12; ++i) { + printf( + "void %s%sLR(CPR const cr) {" + " emit_%s(0x%08x, %i, cr.index + %i, 0, false); " + "}\n" + , mem, infos[i].s, form, OP_EXT, infos[i].p, infos[i].o - 1); + printf( + "void %s%sLRL(CPR const cr) {" + " emit_%s(0x%08x, %i, cr.index + %i, 0, true); " + "}\n" + , mem, infos[i].s, form, OP_EXT, infos[i].p, infos[i].o - 1); + } + } else if (mem[0] == 'B') { + printf( + "void %s(GPR const bt, CPR const ba, GPR const bb) {" + " emit_%s(0x%08x, bt.index, ba.index, bb.index, false); " + "}\n" + , mem, form, OP_EXT); + printf( + "void %sL(GPR const bt, CPR const ba, GPR const bb) {" + " emit_%s(0x%08x, bt.index, ba.index, bb.index, true); " + "}\n" + , mem, form, OP_EXT); + printf( + "void %s(GPR const bt, Cond const ba, GPR const bb) {" + " emit_%s(0x%08x, bt.index, cond2offset(ba), bb.index, false); " + "}\n" + , mem, form, OP_EXT); + printf( + "void %sL(GPR const bt, Cond const ba, GPR const bb) {" + " emit_%s(0x%08x, bt.index, cond2offset(ba), bb.index, true); " + "}\n" + , mem, form, OP_EXT); + } else { + printf( + "void %s(CPR const bt, CPR const ba, CPR const bb) {" + " emit_%s(0x%08x, bt.index, ba.index, bb.index, false); " + "}\n" + , mem, form, OP_EXT); + printf( + "void %sL(CPR const bt, CPR const ba, CPR const bb) {" + " emit_%s(0x%08x, bt.index, ba.index, bb.index, true); " + "}\n" + , mem, form, OP_EXT); + } + } else if (!strcmp(form, "M")) { + if (!strcmp(mem, "RLWNM")) { + printf( + "void %s(GPR const rs, GPR const ra, GPR const rb, uint32_t mb, uint32_t me = 0) {" + " emit_%s(0x%08x, ra, rs, rb.index, mb, me, false); " + "}\n" + , mem, form, OP_EXT); + printf( + "void %s_(GPR const rs, GPR const ra, GPR const rb, uint32_t mb, uint32_t me = 0) {" + " emit_%s(0x%08x, ra, rs, rb.index, mb, me, true); " + "}\n" + , mem, form, OP_EXT); + } else { + printf( + "void %s(GPR const rs, GPR const ra, uint32_t sh, uint32_t mb, uint32_t me = 0) {" + " emit_%s(0x%08x, ra, rs, sh, mb, me, false); " + "}\n" + , mem, form, OP_EXT); + printf( + "void %s_(GPR const rs, GPR const ra, uint32_t sh, uint32_t mb, uint32_t me = 0) {" + " emit_%s(0x%08x, ra, rs, sh, mb, me, true); " + "}\n" + , mem, form, OP_EXT); + } + } else if (!strcmp(form, "MD")) { + printf( + "void %s(GPR const rs, GPR const ra, uint32_t mb, uint32_t sh) {" + " emit_%s(0x%08x, ra, rs, mb, sh, false); " + "}\n" + , mem, form, (i_opcode << 26) | (i_extopc << 2)); + printf( + "void %s_(GPR const rs, GPR const ra, uint32_t mb, uint32_t sh) {" + " emit_%s(0x%08x, ra, rs, mb, sh, true); " + "}\n" + , mem, form, (i_opcode << 26) | (i_extopc << 2)); + } else if (!strcmp(form, "MDS")) { + printf( + "void %s(GPR const rs, GPR const ra, GPR const rb, uint32_t mb) {" + " emit_%s(0x%08x, ra, rs, rb, mb, false); " + "}\n" + , mem, form, OP_EXT); + printf( + "void %s_(GPR const rs, GPR const ra, GPR const rb, uint32_t mb) {" + " emit_%s(0x%08x, ra, rs, rb, mb, true); " + "}\n" + , mem, form, OP_EXT); + } else if (!strcmp(form, "A")) { + printf( + "void %s(FPR const frt, FPR const fra, FPR const frb, FPR const frc) {" + " emit_%s(0x%08x, frt, fra, frb, frc, false); " + "}\n" + , mem, form, OP_EXT); + printf( + "void %s_(FPR const frt, FPR const fra, FPR const frb, FPR const frc) {" + " emit_%s(0x%08x, frt, fra, frb, frc, true); " + "}\n" + , mem, form, OP_EXT); + } else if (!strcmp(form, "XFX")) { + printf( + "void %s(GPR const rt, uint32_t spr) {" + " emit_%s(0x%08x, rt, spr); " + "}\n" + , mem, form, OP_EXT); + } else { + printf( + "void %s() {" + " emit_%s(0x%08x); " + "}\n" + , mem, form, OP_EXT); + } + } + } + } + } + //printf("%s\n", line); + } + fclose(fp); + return 0; + } + return 1; +} diff --git a/externals/powah/powah_emit.hpp b/externals/powah/powah_emit.hpp new file mode 100644 index 0000000000..3b9577a63d --- /dev/null +++ b/externals/powah/powah_emit.hpp @@ -0,0 +1,401 @@ +// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project +// SPDX-License-Identifier: GPL-3.0-or-later + +#pragma once + +#undef NDEBUG + +#include +#include +#include +#include +#include +#include +#include + +//#ifndef __cpp_lib_unreachable +namespace std { +[[noreturn]] inline void unreachable() { +#if defined(_MSC_VER) && !defined(__clang__) // MSVC + __assume(false); +#else // GCC, Clang + __builtin_unreachable(); +#endif +} +} +//#endif + +namespace powah { + +// Symbolic conditions +enum class Cond : uint8_t { + LT, LE, NG, EQ, GE, NL, GT, NE, SO, UN, NS, NU +}; + +struct GPR { uint32_t index; }; +struct FPR { uint32_t index; }; +struct VPR { uint32_t index; }; +struct CPR { uint32_t index; }; +struct Label { uint32_t index; }; + +constexpr inline GPR R0{0}; +constexpr inline GPR R1{1}; +constexpr inline GPR R2{2}; +constexpr inline GPR R3{3}; +constexpr inline GPR R4{4}; +constexpr inline GPR R5{5}; +constexpr inline GPR R6{6}; +constexpr inline GPR R7{7}; +constexpr inline GPR R8{8}; +constexpr inline GPR R9{9}; +constexpr inline GPR R10{10}; +constexpr inline GPR R11{11}; +constexpr inline GPR R12{12}; +constexpr inline GPR R13{13}; +constexpr inline GPR R14{14}; +constexpr inline GPR R15{15}; +constexpr inline GPR R16{16}; +constexpr inline GPR R17{17}; +constexpr inline GPR R18{18}; +constexpr inline GPR R19{19}; +constexpr inline GPR R20{20}; +constexpr inline GPR R21{21}; +constexpr inline GPR R22{22}; +constexpr inline GPR R23{23}; +constexpr inline GPR R24{24}; +constexpr inline GPR R25{25}; +constexpr inline GPR R26{26}; +constexpr inline GPR R27{27}; +constexpr inline GPR R28{28}; +constexpr inline GPR R29{29}; +constexpr inline GPR R30{30}; +constexpr inline GPR R31{31}; + +constexpr inline FPR FR0{0}; +constexpr inline FPR FR1{1}; +constexpr inline FPR FR2{2}; +constexpr inline FPR FR3{3}; +constexpr inline FPR FR4{4}; +constexpr inline FPR FR5{5}; +constexpr inline FPR FR6{6}; +constexpr inline FPR FR7{7}; +constexpr inline FPR FR8{8}; +constexpr inline FPR FR9{9}; +constexpr inline FPR FR10{10}; +constexpr inline FPR FR11{11}; +constexpr inline FPR FR12{12}; +constexpr inline FPR FR13{13}; +constexpr inline FPR FR14{14}; +constexpr inline FPR FR15{15}; +constexpr inline FPR FR16{16}; +constexpr inline FPR FR17{17}; +constexpr inline FPR FR18{18}; +constexpr inline FPR FR19{19}; +constexpr inline FPR FR20{20}; +constexpr inline FPR FR21{21}; +constexpr inline FPR FR22{22}; +constexpr inline FPR FR23{23}; +constexpr inline FPR FR24{24}; +constexpr inline FPR FR25{25}; +constexpr inline FPR FR26{26}; +constexpr inline FPR FR27{27}; +constexpr inline FPR FR28{28}; +constexpr inline FPR FR29{29}; +constexpr inline FPR FR30{30}; +constexpr inline FPR FR31{31}; + +// They call it CPR because when programmers see this code they- +constexpr inline CPR CR0{0}; +constexpr inline CPR CR1{4}; +constexpr inline CPR CR2{8}; +constexpr inline CPR CR3{12}; +constexpr inline CPR CR4{16}; +constexpr inline CPR CR5{20}; +constexpr inline CPR CR6{24}; +constexpr inline CPR CR7{28}; + +constexpr uint32_t XER_SO = 32; +constexpr uint32_t XER_OV = 33; +constexpr uint32_t XER_CA = 34; + +enum class RelocKind : uint8_t { + FormB, + FormI, +}; +struct RelocInfo { + uint32_t offset; + RelocKind kind; +}; + +struct Context { + Context() = default; + Context(void* ptr, size_t size) + : base{reinterpret_cast(ptr)} + , offset{0} + , size{uint32_t(size)} { + + } + ~Context() = default; + + std::vector labels; + std::vector> relocs; + + Label DefineLabel() { + labels.push_back(0); + return Label{ uint32_t(labels.size() - 1) }; + } + + void ApplyRelocs() { + for (auto const &[index, info] : relocs) { + //assert(labels[index] != 0); //label must have an addr + int32_t rel = (int32_t)labels[index] - (int32_t)info.offset; + switch (info.kind) { + case RelocKind::FormB: + base[info.offset] |= bitExt(rel, 16, 14); + break; + case RelocKind::FormI: + base[info.offset] |= bitExt(rel, 6, 24); + break; + } + } + relocs.clear(); + } + + void LABEL(Label l) { + assert(labels[l.index] == 0); + labels[l.index] = offset; + } + + static constexpr uint32_t cond2offset(Cond c) noexcept { + switch (c) { + case Cond::LT: return 1; + case Cond::LE: return 2; + case Cond::NG: return 2; + case Cond::EQ: return 3; + case Cond::GE: return 1; + case Cond::NL: return 1; + case Cond::GT: return 2; + case Cond::NE: return 3; + case Cond::SO: return 4; + case Cond::UN: return 4; + case Cond::NS: return 4; + case Cond::NU: return 4; + default: return 0; //hopefully icc isn't stupid + } + } + + uint32_t bitExt(uint32_t value, uint32_t offs, uint32_t n) { + uint32_t mask = (1UL << n) - 1; + return (value & mask) << (32 - (n + offs)); + } + void emit_XO(uint32_t op, GPR const rt, GPR const ra, GPR const rb, bool oe, bool rc) { + base[offset++] = (op | + bitExt(rt.index, 6, 5) + | bitExt(ra.index, 11, 5) + | bitExt(rb.index, 16, 5) + | bitExt(oe, 21, 1) + | bitExt(rc, 31, 1) + ); + } + void emit_D(uint32_t op, GPR const rt, GPR const ra, uint32_t d) { + base[offset++] = (op | + bitExt(rt.index, 6, 5) + | bitExt(ra.index, 11, 5) + | (d & 0xffff) + ); + } + void emit_X(uint32_t op, GPR const rt, GPR const ra, GPR const rb, bool rc) { + base[offset++] = (op | + bitExt(rt.index, 6, 5) + | bitExt(ra.index, 11, 5) + | bitExt(rb.index, 16, 5) + | bitExt(rc, 31, 1) + ); + } + void emit_XS(uint32_t op, GPR const rt, GPR const ra, uint32_t sh, bool rc) { + base[offset++] = (op | + ((rt.index & 0x1f) << 16) + | ((ra.index & 0x1f) << 21) + | ((sh & 0x1f) << 11) + | ((sh >> 4) & 0x02) + | bitExt(rc, 31, 1) + ); + } + void emit_reloc_I(uint32_t op, Label const& l, bool lk) { + relocs.emplace_back(l.index, RelocInfo{ offset, RelocKind::FormI }); + base[offset++] = (op | + bitExt(lk, 31, 1) + ); + } + void emit_reloc_B(uint32_t op, uint32_t bo, uint32_t cri, Label const& l, bool lk) { + relocs.emplace_back(l.index, RelocInfo{ offset, RelocKind::FormB }); + base[offset++] = (op | + bitExt(bo, 6, 5) + | bitExt(cri, 11, 5) + | bitExt(lk, 31, 1) + ); + } + void emit_XL(uint32_t op, uint32_t bt, uint32_t ba, uint32_t bb, bool lk) { + base[offset++] = (op | + bitExt(bt, 6, 5) + | bitExt(ba, 11, 5) + | bitExt(bb, 16, 5) + | bitExt(lk, 31, 1) + ); + } + void emit_A(uint32_t op, FPR const frt, FPR const fra, FPR const frb, FPR const frc, bool rc) { + base[offset++] = (op | + bitExt(frt.index, 6, 5) + | bitExt(fra.index, 11, 5) + | bitExt(frb.index, 16, 5) + | bitExt(frc.index, 21, 5) + | bitExt(rc, 31, 1) + ); + } + void emit_DS(uint32_t op, GPR const rt, GPR const ra, uint32_t d) { + //assert(d & 0x03 == 0); + base[offset++] = (op | + bitExt(rt.index, 6, 5) + | bitExt(ra.index, 11, 5) + | bitExt(d, 16, 14) + ); + } + void emit_M(uint32_t op, GPR const rs, GPR const ra, uint32_t sh, uint32_t mb, uint32_t me, bool rc) { + assert(sh <= 0x3f && mb <= 0x3f); + base[offset++] = (op | + bitExt(rs.index, 6, 5) + | bitExt(ra.index, 11, 5) + | ((sh & 0x1f) << 11) + | ((mb & 0x1f) << 6) + | ((me & 0x1f) << 1) + | bitExt(rc, 31, 1) + ); + } + void emit_MD(uint32_t op, GPR const rs, GPR const ra, GPR const rb, uint32_t mb, bool rc) { + assert(mb <= 0x3f); + base[offset++] = (op | + bitExt(rs.index, 6, 5) + | bitExt(ra.index, 11, 5) + | bitExt(rb.index, 16, 5) + | ((mb & 0x1f) << 6) | (mb & 0x20) + | bitExt(rc, 31, 1) + ); + } + void emit_MD(uint32_t op, GPR const rs, GPR const ra, uint32_t sh, uint32_t mb, bool rc) { + assert(sh <= 0x3f && mb <= 0x3f); + base[offset++] = (op | + bitExt(rs.index, 6, 5) + | bitExt(ra.index, 11, 5) + | ((mb & 0x1f) << 6) | (mb & 0x20) + | ((sh & 0x1f) << 11) | ((sh >> 4) & 0x02) + | bitExt(rc, 31, 1) + ); + } + void emit_MDS(uint32_t op, GPR const rs, GPR const ra, GPR const rb, uint32_t mb, bool rc) { + base[offset++] = (op | + bitExt(rs.index, 6, 5) + | bitExt(ra.index, 11, 5) + | bitExt(rb.index, 16, 5) + | ((mb & 0x1f) << 6) | (mb & 0x20) + | bitExt(rc, 31, 1) + ); + } + void emit_XFL(uint32_t op) { + (void)op; + std::abort(); + } + void emit_XFX(uint32_t op, GPR const rt, uint32_t spr) { + base[offset++] = (op | + (rt.index & 0x1f) << 21 + | ((spr & 0xff) << 12) + ); + } + void emit_SC(uint32_t op, uint32_t lev) { + (void)op; + (void)lev; + std::abort(); + } + + // Extended Memmonics, hand coded :) + void MR(GPR const ra, GPR const rs) { OR(ra, rs, rs); } + void NOP() { ORI(R0, R0, 0); } + void NOT(GPR const ra, GPR const rs) { NOR(ra, rs, rs); } + + void ROTLDI(GPR const ra, GPR const rs, uint32_t n) { RLDICL(ra, rs, n, 0); } + void ROTRDI(GPR const ra, GPR const rs, uint32_t n) { RLDICL(ra, rs, 64 - n, 0); } + + void ROTLWI(GPR const ra, GPR const rs, uint32_t n) { RLWINM(ra, rs, n, 0, 31); } + void ROTRWI(GPR const ra, GPR const rs, uint32_t n) { RLWINM(ra, rs, 32 - n, 0, 31); } + + void ROTLW(GPR const ra, GPR const rs, GPR const rb) { RLWNM(ra, rs, rb, 0, 31); } + void ROTLD(GPR const ra, GPR const rs, GPR const rb) { RLDCL(ra, rs, rb, 0); } + + void EXTLDI(GPR const ra, GPR const rs, uint32_t n, uint32_t b) { RLDICR(ra, rs, b, n - 1); } + void SLDI(GPR const ra, GPR const rs, uint32_t n) { RLDICR(ra, rs, n, 63 - n); } + void CLRLDI(GPR const ra, GPR const rs, uint32_t n) { RLDICL(ra, rs, 0, n); } + + void EXTRDI(GPR const ra, GPR const rs, uint32_t n, uint32_t b) { RLDICL(ra, rs, b + n, 64 - n); } + void SRDI(GPR const ra, GPR const rs, uint32_t n) { RLDICL(ra, rs, 64 - n, n); } + void CLLDI(GPR const ra, GPR const rs, uint32_t n) { RLDICR(ra, rs, 0, n); } + void CLRSLDI(GPR const ra, GPR const rs, uint32_t n, uint32_t b) { RLDICR(ra, rs, n, b - n); } + + void EXTLWI(GPR const ra, GPR const rs, uint32_t n, uint32_t b) { RLWINM(ra, rs, b, 0, n - 1); } + void SRWI(GPR const ra, GPR const rs, uint32_t n) { RLWINM(ra, rs, 32 - n, n, 31); } + void CLRRWI(GPR const ra, GPR const rs, uint32_t n) { RLWINM(ra, rs, 0, 0, 31 - n); } + + void CRSET(CPR const bx) { CREQV(bx, bx, bx); } + void CRCLR(CPR const bx) { CRXOR(bx, bx, bx); } + void CRMOVE(CPR const bx, CPR const by) { CROR(bx, by, by); } + void CRNOT(CPR const bx, CPR const by) { CRNOR(bx, by, by); } + + void CMPLDI(CPR const cr, GPR const rx, uint32_t v) { CMPLI(cr.index, 1, rx, v); } + void CMPLWI(CPR const cr, GPR const rx, uint32_t v) { CMPLI(cr.index, 0, rx, v); } + void CMPLD(CPR const cr, GPR const rx, GPR const ry) { CMPL(cr.index, 1, rx, ry); } + void CMPLW(CPR const cr, GPR const rx, GPR const ry) { CMPL(cr.index, 0, rx, ry); } + void CMPLDI(GPR const rx, uint32_t v) { CMPLI(0, 1, rx, v); } + void CMPLWI(GPR const rx, uint32_t v) { CMPLI(0, 0, rx, v); } + void CMPLD(GPR const rx, GPR const ry) { CMPL(0, 1, rx, ry); } + void CMPLW(GPR const rx, GPR const ry) { CMPL(0, 0, rx, ry); } + + void CMPWI(CPR const cr, GPR const rx, uint32_t si) { CMPI(cr.index, 0, rx, si); } + void CMPW(CPR const cr, GPR const rx, GPR const ry) { CMP(cr.index, 0, rx, ry); } + void CMPDI(CPR const cr, GPR const rx, uint32_t si) { CMPI(cr.index, 1, rx, si); } + void CMPD(CPR const cr, GPR const rx, GPR const ry) { CMP(cr.index, 1, rx, ry); } + void CMPWI(GPR const rx, uint32_t si) { CMPI(0, 0, rx, si); } + void CMPW(GPR const rx, GPR const ry) { CMP(0, 0, rx, ry); } + void CMPDI(GPR const rx, uint32_t si) { CMPI(0, 1, rx, si); } + void CMPD(GPR const rx, GPR const ry) { CMP(0, 1, rx, ry); } + + void LI(GPR const rx, uint32_t value) { ADDI(rx, R0, value); } + void LIS(GPR const rx, uint32_t value) { ADDIS(rx, R0, value); } + + void MFLR(GPR const rt) { MFSPR(powah::GPR{8}, rt, powah::GPR{0}); } + void MTLR(GPR const rt) { MTSPR(powah::GPR{8}, rt, powah::GPR{0}); } + void BLR() { base[offset++] = 0x4e800020; } //BCLR(R0, CR0, R0); + + void MFCTR(GPR const rt) { MFSPR(powah::GPR{9}, rt, powah::GPR{0}); } + void MTCTR(GPR const rt) { MTSPR(powah::GPR{9}, rt, powah::GPR{0}); } + void BCTRL() { base[offset++] = 0x4e800421; } //BCCTRL(R0, CR0, R0); + void BCTR() { base[offset++] = 0x4e800420; } //BCCTR(R0, CR0, R0); + + // TODO: PowerPC 11 stuff + void ISEL(GPR const rd, GPR const ra, GPR const rb, uint32_t d) { + (void)rd; + (void)ra; + (void)rb; + (void)d; + std::unreachable(); + } + void ISELLT(GPR const rd, GPR const ra, GPR const rb) { ISEL(rd, ra, rb, 0); } + void ISELGT(GPR const rd, GPR const ra, GPR const rb) { ISEL(rd, ra, rb, 1); } + void ISELEQ(GPR const rd, GPR const ra, GPR const rb) { ISEL(rd, ra, rb, 2); } + + // Rawly pasted because fuck you +#include "powah_gen_base.hpp" + + uint32_t* base = nullptr; + uint32_t offset = 0; + uint32_t size = 0; +}; + +} diff --git a/externals/powah/powah_gen_base.hpp b/externals/powah/powah_gen_base.hpp new file mode 100644 index 0000000000..aa8ea5360b --- /dev/null +++ b/externals/powah/powah_gen_base.hpp @@ -0,0 +1,487 @@ +// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project +// SPDX-License-Identifier: GPL-3.0-or-later + +// this file is autogenerated DO NOT MODIFY +#pragma once +void ADD(GPR const rt, GPR const ra, GPR const rb) { emit_XO(0x7c000214, rt, ra, rb, false, false); } +void ADDO(GPR const rt, GPR const ra, GPR const rb) { emit_XO(0x7c000214, rt, ra, rb, true, false); } +void ADD_(GPR const rt, GPR const ra, GPR const rb) { emit_XO(0x7c000214, rt, ra, rb, false, true); } +void ADDO_(GPR const rt, GPR const ra, GPR const rb) { emit_XO(0x7c000214, rt, ra, rb, true, true); } +void ADDC(GPR const rt, GPR const ra, GPR const rb) { emit_XO(0x7c000014, rt, ra, rb, false, false); } +void ADDCO(GPR const rt, GPR const ra, GPR const rb) { emit_XO(0x7c000014, rt, ra, rb, true, false); } +void ADDC_(GPR const rt, GPR const ra, GPR const rb) { emit_XO(0x7c000014, rt, ra, rb, false, true); } +void ADDCO_(GPR const rt, GPR const ra, GPR const rb) { emit_XO(0x7c000014, rt, ra, rb, true, true); } +void ADDE(GPR const rt, GPR const ra, GPR const rb) { emit_XO(0x7c000114, rt, ra, rb, false, false); } +void ADDEO(GPR const rt, GPR const ra, GPR const rb) { emit_XO(0x7c000114, rt, ra, rb, true, false); } +void ADDE_(GPR const rt, GPR const ra, GPR const rb) { emit_XO(0x7c000114, rt, ra, rb, false, true); } +void ADDEO_(GPR const rt, GPR const ra, GPR const rb) { emit_XO(0x7c000114, rt, ra, rb, true, true); } +void ADDI(GPR const rt, GPR const ra, uint32_t d) { emit_D(0x38000000, rt, ra, d); } +void ADDIC(GPR const rt, GPR const ra, uint32_t d) { emit_D(0x30000000, rt, ra, d); } +void ADDIC_(GPR const rt, GPR const ra, uint32_t d) { emit_D(0x34000000, rt, ra, d); } +void ADDIS(GPR const rt, GPR const ra, uint32_t d) { emit_D(0x3c000000, rt, ra, d); } +void ADDME(GPR const rt, GPR const ra, GPR const rb) { emit_XO(0x7c0001d4, rt, ra, rb, false, false); } +void ADDMEO(GPR const rt, GPR const ra, GPR const rb) { emit_XO(0x7c0001d4, rt, ra, rb, true, false); } +void ADDME_(GPR const rt, GPR const ra, GPR const rb) { emit_XO(0x7c0001d4, rt, ra, rb, false, true); } +void ADDMEO_(GPR const rt, GPR const ra, GPR const rb) { emit_XO(0x7c0001d4, rt, ra, rb, true, true); } +void ADDZE(GPR const rt, GPR const ra, GPR const rb) { emit_XO(0x7c000194, rt, ra, rb, false, false); } +void ADDZEO(GPR const rt, GPR const ra, GPR const rb) { emit_XO(0x7c000194, rt, ra, rb, true, false); } +void ADDZE_(GPR const rt, GPR const ra, GPR const rb) { emit_XO(0x7c000194, rt, ra, rb, false, true); } +void ADDZEO_(GPR const rt, GPR const ra, GPR const rb) { emit_XO(0x7c000194, rt, ra, rb, true, true); } +void AND(GPR const rt, GPR const ra, GPR const rb) { emit_X(0x7c000038, ra, rt, rb, false); } +void AND_(GPR const rt, GPR const ra, GPR const rb) { emit_X(0x7c000038, ra, rt, rb, true); } +void ANDC(GPR const rt, GPR const ra, GPR const rb) { emit_X(0x7c000078, ra, rt, rb, false); } +void ANDC_(GPR const rt, GPR const ra, GPR const rb) { emit_X(0x7c000078, ra, rt, rb, true); } +void ANDI_(GPR const rt, GPR const ra, uint32_t d) { emit_D(0x70000000, ra, rt, d); } +void ANDIS_(GPR const rt, GPR const ra, uint32_t d) { emit_D(0x74000000, ra, rt, d); } +void B(Label const& i) { emit_reloc_I(0x48000000, i, false); } +void BL(Label const& i) { emit_reloc_I(0x48000000, i, true); } +void BC(CPR const cr, Label const& i) { emit_reloc_B(0x40000000, 0, cr.index + 0, i, false); } +void BCL(CPR const cr, Label const& i) { emit_reloc_B(0x40000000, 0, cr.index + 0, i, true); } +void BLT(CPR const cr, Label const& i) { emit_reloc_B(0x40000000, 12, cr.index + 0, i, false); } +void BLTL(CPR const cr, Label const& i) { emit_reloc_B(0x40000000, 12, cr.index + 0, i, true); } +void BLE(CPR const cr, Label const& i) { emit_reloc_B(0x40000000, 4, cr.index + 1, i, false); } +void BLEL(CPR const cr, Label const& i) { emit_reloc_B(0x40000000, 4, cr.index + 1, i, true); } +void BNG(CPR const cr, Label const& i) { emit_reloc_B(0x40000000, 4, cr.index + 1, i, false); } +void BNGL(CPR const cr, Label const& i) { emit_reloc_B(0x40000000, 4, cr.index + 1, i, true); } +void BEQ(CPR const cr, Label const& i) { emit_reloc_B(0x40000000, 12, cr.index + 2, i, false); } +void BEQL(CPR const cr, Label const& i) { emit_reloc_B(0x40000000, 12, cr.index + 2, i, true); } +void BGE(CPR const cr, Label const& i) { emit_reloc_B(0x40000000, 4, cr.index + 0, i, false); } +void BGEL(CPR const cr, Label const& i) { emit_reloc_B(0x40000000, 4, cr.index + 0, i, true); } +void BNL(CPR const cr, Label const& i) { emit_reloc_B(0x40000000, 4, cr.index + 0, i, false); } +void BNLL(CPR const cr, Label const& i) { emit_reloc_B(0x40000000, 4, cr.index + 0, i, true); } +void BGT(CPR const cr, Label const& i) { emit_reloc_B(0x40000000, 12, cr.index + 1, i, false); } +void BGTL(CPR const cr, Label const& i) { emit_reloc_B(0x40000000, 12, cr.index + 1, i, true); } +void BNE(CPR const cr, Label const& i) { emit_reloc_B(0x40000000, 4, cr.index + 2, i, false); } +void BNEL(CPR const cr, Label const& i) { emit_reloc_B(0x40000000, 4, cr.index + 2, i, true); } +void BSO(CPR const cr, Label const& i) { emit_reloc_B(0x40000000, 12, cr.index + 3, i, false); } +void BSOL(CPR const cr, Label const& i) { emit_reloc_B(0x40000000, 12, cr.index + 3, i, true); } +void BUN(CPR const cr, Label const& i) { emit_reloc_B(0x40000000, 12, cr.index + 3, i, false); } +void BUNL(CPR const cr, Label const& i) { emit_reloc_B(0x40000000, 12, cr.index + 3, i, true); } +void BNS(CPR const cr, Label const& i) { emit_reloc_B(0x40000000, 4, cr.index + 3, i, false); } +void BNSL(CPR const cr, Label const& i) { emit_reloc_B(0x40000000, 4, cr.index + 3, i, true); } +void BCCTR(GPR const bt, CPR const ba, GPR const bb) { emit_XL(0x4c000420, bt.index, ba.index, bb.index, false); } +void BCCTRL(GPR const bt, CPR const ba, GPR const bb) { emit_XL(0x4c000420, bt.index, ba.index, bb.index, true); } +void BCCTR(GPR const bt, Cond const ba, GPR const bb) { emit_XL(0x4c000420, bt.index, cond2offset(ba), bb.index, false); } +void BCCTRL(GPR const bt, Cond const ba, GPR const bb) { emit_XL(0x4c000420, bt.index, cond2offset(ba), bb.index, true); } +void BCLR(GPR const bt, CPR const ba, GPR const bb) { emit_XL(0x4c000020, bt.index, ba.index, bb.index, false); } +void BCLRL(GPR const bt, CPR const ba, GPR const bb) { emit_XL(0x4c000020, bt.index, ba.index, bb.index, true); } +void BLTLR(CPR const cr) { emit_XL(0x4c000020, 12, cr.index + 0, 0, false); } +void BLTLRL(CPR const cr) { emit_XL(0x4c000020, 12, cr.index + 0, 0, true); } +void BLELR(CPR const cr) { emit_XL(0x4c000020, 4, cr.index + 1, 0, false); } +void BLELRL(CPR const cr) { emit_XL(0x4c000020, 4, cr.index + 1, 0, true); } +void BNGLR(CPR const cr) { emit_XL(0x4c000020, 4, cr.index + 1, 0, false); } +void BNGLRL(CPR const cr) { emit_XL(0x4c000020, 4, cr.index + 1, 0, true); } +void BEQLR(CPR const cr) { emit_XL(0x4c000020, 12, cr.index + 2, 0, false); } +void BEQLRL(CPR const cr) { emit_XL(0x4c000020, 12, cr.index + 2, 0, true); } +void BGELR(CPR const cr) { emit_XL(0x4c000020, 4, cr.index + 0, 0, false); } +void BGELRL(CPR const cr) { emit_XL(0x4c000020, 4, cr.index + 0, 0, true); } +void BNLLR(CPR const cr) { emit_XL(0x4c000020, 4, cr.index + 0, 0, false); } +void BNLLRL(CPR const cr) { emit_XL(0x4c000020, 4, cr.index + 0, 0, true); } +void BGTLR(CPR const cr) { emit_XL(0x4c000020, 12, cr.index + 1, 0, false); } +void BGTLRL(CPR const cr) { emit_XL(0x4c000020, 12, cr.index + 1, 0, true); } +void BNELR(CPR const cr) { emit_XL(0x4c000020, 4, cr.index + 2, 0, false); } +void BNELRL(CPR const cr) { emit_XL(0x4c000020, 4, cr.index + 2, 0, true); } +void BSOLR(CPR const cr) { emit_XL(0x4c000020, 12, cr.index + 3, 0, false); } +void BSOLRL(CPR const cr) { emit_XL(0x4c000020, 12, cr.index + 3, 0, true); } +void BUNLR(CPR const cr) { emit_XL(0x4c000020, 12, cr.index + 3, 0, false); } +void BUNLRL(CPR const cr) { emit_XL(0x4c000020, 12, cr.index + 3, 0, true); } +void BNSLR(CPR const cr) { emit_XL(0x4c000020, 4, cr.index + 3, 0, false); } +void BNSLRL(CPR const cr) { emit_XL(0x4c000020, 4, cr.index + 3, 0, true); } +void CMP(uint32_t bf, uint32_t l, GPR const ra, GPR const rb) { emit_X(0x7c000000, GPR{(bf << 2) | l}, ra, rb, false); } +void CMPI(uint32_t bf, uint32_t l, GPR const ra, uint32_t d) { emit_D(0x2c000000, GPR{(bf << 2) | l}, ra, d); } +void CMPL(uint32_t bf, uint32_t l, GPR const ra, GPR const rb) { emit_X(0x7c000040, GPR{(bf << 2) | l}, ra, rb, false); } +void CMPLI(uint32_t bf, uint32_t l, GPR const ra, uint32_t d) { emit_D(0x28000000, GPR{(bf << 2) | l}, ra, d); } +void CNTLZD(GPR const rt, GPR const ra) { emit_X(0x7c000074, ra, rt, R0, false); } +void CNTLZD_(GPR const rt, GPR const ra) { emit_X(0x7c000074, ra, rt, R0, true); } +void CNTLZW(GPR const rt, GPR const ra) { emit_X(0x7c000034, ra, rt, R0, false); } +void CNTLZW_(GPR const rt, GPR const ra) { emit_X(0x7c000034, ra, rt, R0, true); } +void CRAND(CPR const bt, CPR const ba, CPR const bb) { emit_XL(0x4c000202, bt.index, ba.index, bb.index, false); } +void CRANDL(CPR const bt, CPR const ba, CPR const bb) { emit_XL(0x4c000202, bt.index, ba.index, bb.index, true); } +void CRANDC(CPR const bt, CPR const ba, CPR const bb) { emit_XL(0x4c000102, bt.index, ba.index, bb.index, false); } +void CRANDCL(CPR const bt, CPR const ba, CPR const bb) { emit_XL(0x4c000102, bt.index, ba.index, bb.index, true); } +void CREQV(CPR const bt, CPR const ba, CPR const bb) { emit_XL(0x4c000242, bt.index, ba.index, bb.index, false); } +void CREQVL(CPR const bt, CPR const ba, CPR const bb) { emit_XL(0x4c000242, bt.index, ba.index, bb.index, true); } +void CRNAND(CPR const bt, CPR const ba, CPR const bb) { emit_XL(0x4c0001c2, bt.index, ba.index, bb.index, false); } +void CRNANDL(CPR const bt, CPR const ba, CPR const bb) { emit_XL(0x4c0001c2, bt.index, ba.index, bb.index, true); } +void CRNOR(CPR const bt, CPR const ba, CPR const bb) { emit_XL(0x4c000042, bt.index, ba.index, bb.index, false); } +void CRNORL(CPR const bt, CPR const ba, CPR const bb) { emit_XL(0x4c000042, bt.index, ba.index, bb.index, true); } +void CROR(CPR const bt, CPR const ba, CPR const bb) { emit_XL(0x4c000382, bt.index, ba.index, bb.index, false); } +void CRORL(CPR const bt, CPR const ba, CPR const bb) { emit_XL(0x4c000382, bt.index, ba.index, bb.index, true); } +void CRORC(CPR const bt, CPR const ba, CPR const bb) { emit_XL(0x4c000342, bt.index, ba.index, bb.index, false); } +void CRORCL(CPR const bt, CPR const ba, CPR const bb) { emit_XL(0x4c000342, bt.index, ba.index, bb.index, true); } +void CRXOR(CPR const bt, CPR const ba, CPR const bb) { emit_XL(0x4c000182, bt.index, ba.index, bb.index, false); } +void CRXORL(CPR const bt, CPR const ba, CPR const bb) { emit_XL(0x4c000182, bt.index, ba.index, bb.index, true); } +void DCBF(GPR const rt, GPR const ra, GPR const rb) { emit_X(0x7c0000ac, ra, rt, rb, false); } +void DCBF_(GPR const rt, GPR const ra, GPR const rb) { emit_X(0x7c0000ac, ra, rt, rb, true); } +void DCBI(GPR const rt, GPR const ra, GPR const rb) { emit_X(0x7c0003ac, ra, rt, rb, false); } +void DCBI_(GPR const rt, GPR const ra, GPR const rb) { emit_X(0x7c0003ac, ra, rt, rb, true); } +void DCBST(GPR const rt, GPR const ra, GPR const rb) { emit_X(0x7c00006c, ra, rt, rb, false); } +void DCBST_(GPR const rt, GPR const ra, GPR const rb) { emit_X(0x7c00006c, ra, rt, rb, true); } +void DCBT(GPR const rt, GPR const ra, GPR const rb) { emit_X(0x7c00022c, ra, rt, rb, false); } +void DCBT_(GPR const rt, GPR const ra, GPR const rb) { emit_X(0x7c00022c, ra, rt, rb, true); } +void DCBTST(GPR const rt, GPR const ra, GPR const rb) { emit_X(0x7c0001ec, ra, rt, rb, false); } +void DCBTST_(GPR const rt, GPR const ra, GPR const rb) { emit_X(0x7c0001ec, ra, rt, rb, true); } +void DCBZ(GPR const rt, GPR const ra, GPR const rb) { emit_X(0x7c0007ec, ra, rt, rb, false); } +void DCBZ_(GPR const rt, GPR const ra, GPR const rb) { emit_X(0x7c0007ec, ra, rt, rb, true); } +void DIVD(GPR const rt, GPR const ra, GPR const rb) { emit_XO(0x7c0003d2, rt, ra, rb, false, false); } +void DIVDO(GPR const rt, GPR const ra, GPR const rb) { emit_XO(0x7c0003d2, rt, ra, rb, true, false); } +void DIVD_(GPR const rt, GPR const ra, GPR const rb) { emit_XO(0x7c0003d2, rt, ra, rb, false, true); } +void DIVDO_(GPR const rt, GPR const ra, GPR const rb) { emit_XO(0x7c0003d2, rt, ra, rb, true, true); } +void DIVDU(GPR const rt, GPR const ra, GPR const rb) { emit_XO(0x7c000392, rt, ra, rb, false, false); } +void DIVDUO(GPR const rt, GPR const ra, GPR const rb) { emit_XO(0x7c000392, rt, ra, rb, true, false); } +void DIVDU_(GPR const rt, GPR const ra, GPR const rb) { emit_XO(0x7c000392, rt, ra, rb, false, true); } +void DIVDUO_(GPR const rt, GPR const ra, GPR const rb) { emit_XO(0x7c000392, rt, ra, rb, true, true); } +void DIVW(GPR const rt, GPR const ra, GPR const rb) { emit_XO(0x7c0003d6, rt, ra, rb, false, false); } +void DIVWO(GPR const rt, GPR const ra, GPR const rb) { emit_XO(0x7c0003d6, rt, ra, rb, true, false); } +void DIVW_(GPR const rt, GPR const ra, GPR const rb) { emit_XO(0x7c0003d6, rt, ra, rb, false, true); } +void DIVWO_(GPR const rt, GPR const ra, GPR const rb) { emit_XO(0x7c0003d6, rt, ra, rb, true, true); } +void DIVWU(GPR const rt, GPR const ra, GPR const rb) { emit_XO(0x7c000396, rt, ra, rb, false, false); } +void DIVWUO(GPR const rt, GPR const ra, GPR const rb) { emit_XO(0x7c000396, rt, ra, rb, true, false); } +void DIVWU_(GPR const rt, GPR const ra, GPR const rb) { emit_XO(0x7c000396, rt, ra, rb, false, true); } +void DIVWUO_(GPR const rt, GPR const ra, GPR const rb) { emit_XO(0x7c000396, rt, ra, rb, true, true); } +void ECIWX(GPR const rt, GPR const ra, GPR const rb) { emit_X(0x7c00026c, ra, rt, rb, false); } +void ECIWX_(GPR const rt, GPR const ra, GPR const rb) { emit_X(0x7c00026c, ra, rt, rb, true); } +void ECOWX(GPR const rt, GPR const ra, GPR const rb) { emit_X(0x7c00036c, ra, rt, rb, false); } +void ECOWX_(GPR const rt, GPR const ra, GPR const rb) { emit_X(0x7c00036c, ra, rt, rb, true); } +void EIEIO(GPR const rt, GPR const ra, GPR const rb) { emit_X(0x7c0006ac, ra, rt, rb, false); } +void EIEIO_(GPR const rt, GPR const ra, GPR const rb) { emit_X(0x7c0006ac, ra, rt, rb, true); } +void EQV(GPR const rt, GPR const ra, GPR const rb) { emit_X(0x7c000238, ra, rt, rb, false); } +void EQV_(GPR const rt, GPR const ra, GPR const rb) { emit_X(0x7c000238, ra, rt, rb, true); } +void EXTSB(GPR const rt, GPR const ra) { emit_X(0x7c000774, ra, rt, R0, false); } +void EXTSB_(GPR const rt, GPR const ra) { emit_X(0x7c000774, ra, rt, R0, true); } +void EXTSH(GPR const rt, GPR const ra) { emit_XO(0x7c000734, rt, ra, R0, false, false); } +void EXTSHC(GPR const rt, GPR const ra) { emit_XO(0x7c000734, rt, ra, R0, true, false); } +void EXTSH_(GPR const rt, GPR const ra) { emit_XO(0x7c000734, rt, ra, R0, false, true); } +void EXTSHC_(GPR const rt, GPR const ra) { emit_XO(0x7c000734, rt, ra, R0, true, true); } +void EXTSW(GPR const rt, GPR const ra) { emit_X(0x7c0007b4, ra, rt, R0, false); } +void EXTSW_(GPR const rt, GPR const ra) { emit_X(0x7c0007b4, ra, rt, R0, true); } +void FABS(GPR const rt, GPR const ra, GPR const rb) { emit_X(0xfc000210, ra, rt, rb, false); } +void FABS_(GPR const rt, GPR const ra, GPR const rb) { emit_X(0xfc000210, ra, rt, rb, true); } +void FADD(FPR const frt, FPR const fra, FPR const frb, FPR const frc) { emit_A(0xfc00002a, frt, fra, frb, frc, false); } +void FADD_(FPR const frt, FPR const fra, FPR const frb, FPR const frc) { emit_A(0xfc00002a, frt, fra, frb, frc, true); } +void FADDS(FPR const frt, FPR const fra, FPR const frb, FPR const frc) { emit_A(0xec00002a, frt, fra, frb, frc, false); } +void FADDS_(FPR const frt, FPR const fra, FPR const frb, FPR const frc) { emit_A(0xec00002a, frt, fra, frb, frc, true); } +void FCFID(GPR const rt, GPR const ra, GPR const rb) { emit_X(0xfc00069c, ra, rt, rb, false); } +void FCFID_(GPR const rt, GPR const ra, GPR const rb) { emit_X(0xfc00069c, ra, rt, rb, true); } +void FCMPO(GPR const rt, GPR const ra, GPR const rb) { emit_X(0xfc000040, ra, rt, rb, false); } +void FCMPO_(GPR const rt, GPR const ra, GPR const rb) { emit_X(0xfc000040, ra, rt, rb, true); } +void FCMPU(CPR const bt, CPR const ba, CPR const bb) { emit_XL(0xfc000000, bt.index, ba.index, bb.index, false); } +void FCMPUL(CPR const bt, CPR const ba, CPR const bb) { emit_XL(0xfc000000, bt.index, ba.index, bb.index, true); } +void FCTID(GPR const rt, GPR const ra, GPR const rb) { emit_X(0xfc00065c, ra, rt, rb, false); } +void FCTID_(GPR const rt, GPR const ra, GPR const rb) { emit_X(0xfc00065c, ra, rt, rb, true); } +void FCTIDZ(GPR const rt, GPR const ra, GPR const rb) { emit_X(0xfc00065e, ra, rt, rb, false); } +void FCTIDZ_(GPR const rt, GPR const ra, GPR const rb) { emit_X(0xfc00065e, ra, rt, rb, true); } +void FCTIW(GPR const rt, GPR const ra, GPR const rb) { emit_X(0xfc00001c, ra, rt, rb, false); } +void FCTIW_(GPR const rt, GPR const ra, GPR const rb) { emit_X(0xfc00001c, ra, rt, rb, true); } +void FCTIWZ(CPR const bt, CPR const ba, CPR const bb) { emit_XL(0xfc00001e, bt.index, ba.index, bb.index, false); } +void FCTIWZL(CPR const bt, CPR const ba, CPR const bb) { emit_XL(0xfc00001e, bt.index, ba.index, bb.index, true); } +void FDIV(FPR const frt, FPR const fra, FPR const frb, FPR const frc) { emit_A(0xfc000024, frt, fra, frb, frc, false); } +void FDIV_(FPR const frt, FPR const fra, FPR const frb, FPR const frc) { emit_A(0xfc000024, frt, fra, frb, frc, true); } +void FDIVS(FPR const frt, FPR const fra, FPR const frb, FPR const frc) { emit_A(0xec000024, frt, fra, frb, frc, false); } +void FDIVS_(FPR const frt, FPR const fra, FPR const frb, FPR const frc) { emit_A(0xec000024, frt, fra, frb, frc, true); } +void FMADD(FPR const frt, FPR const fra, FPR const frb, FPR const frc) { emit_A(0xfc00003a, frt, fra, frb, frc, false); } +void FMADD_(FPR const frt, FPR const fra, FPR const frb, FPR const frc) { emit_A(0xfc00003a, frt, fra, frb, frc, true); } +void FMADDS(FPR const frt, FPR const fra, FPR const frb, FPR const frc) { emit_A(0xec00003a, frt, fra, frb, frc, false); } +void FMADDS_(FPR const frt, FPR const fra, FPR const frb, FPR const frc) { emit_A(0xec00003a, frt, fra, frb, frc, true); } +void FMR(GPR const rt, GPR const ra, GPR const rb) { emit_X(0xfc000090, ra, rt, rb, false); } +void FMR_(GPR const rt, GPR const ra, GPR const rb) { emit_X(0xfc000090, ra, rt, rb, true); } +void FMSUB(FPR const frt, FPR const fra, FPR const frb, FPR const frc) { emit_A(0xfc000038, frt, fra, frb, frc, false); } +void FMSUB_(FPR const frt, FPR const fra, FPR const frb, FPR const frc) { emit_A(0xfc000038, frt, fra, frb, frc, true); } +void FMSUBS(FPR const frt, FPR const fra, FPR const frb, FPR const frc) { emit_A(0xec000038, frt, fra, frb, frc, false); } +void FMSUBS_(FPR const frt, FPR const fra, FPR const frb, FPR const frc) { emit_A(0xec000038, frt, fra, frb, frc, true); } +void FMUL(FPR const frt, FPR const fra, FPR const frb, FPR const frc) { emit_A(0xfc000032, frt, fra, frb, frc, false); } +void FMUL_(FPR const frt, FPR const fra, FPR const frb, FPR const frc) { emit_A(0xfc000032, frt, fra, frb, frc, true); } +void FMULS(FPR const frt, FPR const fra, FPR const frb, FPR const frc) { emit_A(0xec000032, frt, fra, frb, frc, false); } +void FMULS_(FPR const frt, FPR const fra, FPR const frb, FPR const frc) { emit_A(0xec000032, frt, fra, frb, frc, true); } +void FNABS(GPR const rt, GPR const ra, GPR const rb) { emit_X(0xfc000110, ra, rt, rb, false); } +void FNABS_(GPR const rt, GPR const ra, GPR const rb) { emit_X(0xfc000110, ra, rt, rb, true); } +void FNEG(GPR const rt, GPR const ra, GPR const rb) { emit_X(0xfc000050, ra, rt, rb, false); } +void FNEG_(GPR const rt, GPR const ra, GPR const rb) { emit_X(0xfc000050, ra, rt, rb, true); } +void FNMADD(FPR const frt, FPR const fra, FPR const frb, FPR const frc) { emit_A(0xfc00003e, frt, fra, frb, frc, false); } +void FNMADD_(FPR const frt, FPR const fra, FPR const frb, FPR const frc) { emit_A(0xfc00003e, frt, fra, frb, frc, true); } +void FNMADDS(FPR const frt, FPR const fra, FPR const frb, FPR const frc) { emit_A(0xec00003e, frt, fra, frb, frc, false); } +void FNMADDS_(FPR const frt, FPR const fra, FPR const frb, FPR const frc) { emit_A(0xec00003e, frt, fra, frb, frc, true); } +void FNMSUB(FPR const frt, FPR const fra, FPR const frb, FPR const frc) { emit_A(0xfc00003c, frt, fra, frb, frc, false); } +void FNMSUB_(FPR const frt, FPR const fra, FPR const frb, FPR const frc) { emit_A(0xfc00003c, frt, fra, frb, frc, true); } +void FNMSUBS(FPR const frt, FPR const fra, FPR const frb, FPR const frc) { emit_A(0xec00003c, frt, fra, frb, frc, false); } +void FNMSUBS_(FPR const frt, FPR const fra, FPR const frb, FPR const frc) { emit_A(0xec00003c, frt, fra, frb, frc, true); } +void FRES(FPR const frt, FPR const fra, FPR const frb, FPR const frc) { emit_A(0xec000030, frt, fra, frb, frc, false); } +void FRES_(FPR const frt, FPR const fra, FPR const frb, FPR const frc) { emit_A(0xec000030, frt, fra, frb, frc, true); } +void FRSP(GPR const rt, GPR const ra, GPR const rb) { emit_X(0xfc000018, ra, rt, rb, false); } +void FRSP_(GPR const rt, GPR const ra, GPR const rb) { emit_X(0xfc000018, ra, rt, rb, true); } +void FRSQRTE(FPR const frt, FPR const fra, FPR const frb, FPR const frc) { emit_A(0xfc000034, frt, fra, frb, frc, false); } +void FRSQRTE_(FPR const frt, FPR const fra, FPR const frb, FPR const frc) { emit_A(0xfc000034, frt, fra, frb, frc, true); } +void FSEL(FPR const frt, FPR const fra, FPR const frb, FPR const frc) { emit_A(0xfc00002e, frt, fra, frb, frc, false); } +void FSEL_(FPR const frt, FPR const fra, FPR const frb, FPR const frc) { emit_A(0xfc00002e, frt, fra, frb, frc, true); } +void FSUB(FPR const frt, FPR const fra, FPR const frb, FPR const frc) { emit_A(0xfc000028, frt, fra, frb, frc, false); } +void FSUB_(FPR const frt, FPR const fra, FPR const frb, FPR const frc) { emit_A(0xfc000028, frt, fra, frb, frc, true); } +void FSUBS(FPR const frt, FPR const fra, FPR const frb, FPR const frc) { emit_A(0xec000028, frt, fra, frb, frc, false); } +void FSUBS_(FPR const frt, FPR const fra, FPR const frb, FPR const frc) { emit_A(0xec000028, frt, fra, frb, frc, true); } +void ICBI(GPR const rt, GPR const ra, GPR const rb) { emit_X(0x7c0007ac, ra, rt, rb, false); } +void ICBI_(GPR const rt, GPR const ra, GPR const rb) { emit_X(0x7c0007ac, ra, rt, rb, true); } +void ISYNC(GPR const rt, GPR const ra, GPR const rb) { emit_X(0x4c00012c, ra, rt, rb, false); } +void ISYNC_(GPR const rt, GPR const ra, GPR const rb) { emit_X(0x4c00012c, ra, rt, rb, true); } +void LBZ(GPR const rt, GPR const ra, uint32_t d) { emit_D(0x88000000, rt, ra, d); } +void LBZU(GPR const rt, GPR const ra, uint32_t d) { emit_D(0x8c000000, rt, ra, d); } +void LBZUX(GPR const rt, GPR const ra, GPR const rb) { emit_X(0x7c0000ee, ra, rt, rb, false); } +void LBZUX_(GPR const rt, GPR const ra, GPR const rb) { emit_X(0x7c0000ee, ra, rt, rb, true); } +void LBZX(GPR const rt, GPR const ra, GPR const rb) { emit_X(0x7c0000ae, ra, rt, rb, false); } +void LBZX_(GPR const rt, GPR const ra, GPR const rb) { emit_X(0x7c0000ae, ra, rt, rb, true); } +void LD(GPR const rt, GPR const ra, uint32_t d) { emit_DS(0xe8000000, rt, ra, d >> 2); } +void LDARX(GPR const rt, GPR const ra, GPR const rb) { emit_X(0x7c0000a8, ra, rt, rb, false); } +void LDARX_(GPR const rt, GPR const ra, GPR const rb) { emit_X(0x7c0000a8, ra, rt, rb, true); } +void LDU(GPR const rt, GPR const ra, uint32_t d) { emit_DS(0xe8000001, rt, ra, d >> 2); } +void LDUX(GPR const rt, GPR const ra, GPR const rb) { emit_X(0x7c00006a, ra, rt, rb, false); } +void LDUX_(GPR const rt, GPR const ra, GPR const rb) { emit_X(0x7c00006a, ra, rt, rb, true); } +void LDX(GPR const rt, GPR const ra, GPR const rb) { emit_X(0x7c00002a, ra, rt, rb, false); } +void LDX_(GPR const rt, GPR const ra, GPR const rb) { emit_X(0x7c00002a, ra, rt, rb, true); } +void LFD(GPR const rt, GPR const ra, uint32_t d) { emit_D(0xc8000000, rt, ra, d); } +void LFDU(GPR const rt, GPR const ra, uint32_t d) { emit_D(0xcc000000, rt, ra, d); } +void LFDUX(GPR const rt, GPR const ra, GPR const rb) { emit_X(0x7c0004ee, ra, rt, rb, false); } +void LFDUX_(GPR const rt, GPR const ra, GPR const rb) { emit_X(0x7c0004ee, ra, rt, rb, true); } +void LFDX(GPR const rt, GPR const ra, GPR const rb) { emit_X(0x7c0004ae, ra, rt, rb, false); } +void LFDX_(GPR const rt, GPR const ra, GPR const rb) { emit_X(0x7c0004ae, ra, rt, rb, true); } +void LFS(GPR const rt, GPR const ra, uint32_t d) { emit_D(0xc0000000, rt, ra, d); } +void LFSU(GPR const rt, GPR const ra, uint32_t d) { emit_D(0xc4000000, rt, ra, d); } +void LFSUX(GPR const rt, GPR const ra, GPR const rb) { emit_X(0x7c00046e, ra, rt, rb, false); } +void LFSUX_(GPR const rt, GPR const ra, GPR const rb) { emit_X(0x7c00046e, ra, rt, rb, true); } +void LFSX(GPR const rt, GPR const ra, GPR const rb) { emit_X(0x7c00042e, ra, rt, rb, false); } +void LFSX_(GPR const rt, GPR const ra, GPR const rb) { emit_X(0x7c00042e, ra, rt, rb, true); } +void LHA(GPR const rt, GPR const ra, uint32_t d) { emit_D(0xa8000000, rt, ra, d); } +void LHAU(GPR const rt, GPR const ra, uint32_t d) { emit_D(0xac000000, rt, ra, d); } +void LHAUX(GPR const rt, GPR const ra, GPR const rb) { emit_X(0x7c0002ee, ra, rt, rb, false); } +void LHAUX_(GPR const rt, GPR const ra, GPR const rb) { emit_X(0x7c0002ee, ra, rt, rb, true); } +void LHAX(GPR const rt, GPR const ra, GPR const rb) { emit_X(0x7c0002ae, ra, rt, rb, false); } +void LHAX_(GPR const rt, GPR const ra, GPR const rb) { emit_X(0x7c0002ae, ra, rt, rb, true); } +void LHBRX(GPR const rt, GPR const ra, GPR const rb) { emit_X(0x7c00062c, ra, rt, rb, false); } +void LHBRX_(GPR const rt, GPR const ra, GPR const rb) { emit_X(0x7c00062c, ra, rt, rb, true); } +void LHZ(GPR const rt, GPR const ra, uint32_t d) { emit_D(0xa0000000, rt, ra, d); } +void LHZU(GPR const rt, GPR const ra, uint32_t d) { emit_D(0xa4000000, rt, ra, d); } +void LHZUX(GPR const rt, GPR const ra, GPR const rb) { emit_X(0x7c000296, ra, rt, rb, false); } +void LHZUX_(GPR const rt, GPR const ra, GPR const rb) { emit_X(0x7c000296, ra, rt, rb, true); } +void LHZX(GPR const rt, GPR const ra, GPR const rb) { emit_X(0x7c00022e, ra, rt, rb, false); } +void LHZX_(GPR const rt, GPR const ra, GPR const rb) { emit_X(0x7c00022e, ra, rt, rb, true); } +void LMW(GPR const rt, GPR const ra, uint32_t d) { emit_D(0xb8000000, rt, ra, d); } +void LSWI(GPR const rt, GPR const ra, GPR const rb) { emit_X(0x7c0004aa, ra, rt, rb, false); } +void LSWI_(GPR const rt, GPR const ra, GPR const rb) { emit_X(0x7c0004aa, ra, rt, rb, true); } +void LSWX(GPR const rt, GPR const ra, GPR const rb) { emit_X(0x7c00042a, ra, rt, rb, false); } +void LSWX_(GPR const rt, GPR const ra, GPR const rb) { emit_X(0x7c00042a, ra, rt, rb, true); } +void LWA(GPR const rt, GPR const ra, uint32_t d) { emit_DS(0xe8000002, rt, ra, d >> 2); } +void LWARX(GPR const rt, GPR const ra, GPR const rb) { emit_X(0x7c000028, ra, rt, rb, false); } +void LWARX_(GPR const rt, GPR const ra, GPR const rb) { emit_X(0x7c000028, ra, rt, rb, true); } +void LWAUX(GPR const rt, GPR const ra, GPR const rb) { emit_X(0x7c0002ea, ra, rt, rb, false); } +void LWAUX_(GPR const rt, GPR const ra, GPR const rb) { emit_X(0x7c0002ea, ra, rt, rb, true); } +void LWAX(GPR const rt, GPR const ra, GPR const rb) { emit_X(0x7c0002aa, ra, rt, rb, false); } +void LWAX_(GPR const rt, GPR const ra, GPR const rb) { emit_X(0x7c0002aa, ra, rt, rb, true); } +void LWBRX(GPR const rt, GPR const ra, GPR const rb) { emit_X(0x7c00042c, ra, rt, rb, false); } +void LWBRX_(GPR const rt, GPR const ra, GPR const rb) { emit_X(0x7c00042c, ra, rt, rb, true); } +void LWZ(GPR const rt, GPR const ra, uint32_t d) { emit_D(0x80000000, rt, ra, d); } +void LWZU(GPR const rt, GPR const ra, uint32_t d) { emit_D(0x84000000, rt, ra, d); } +void LWZUX(GPR const rt, GPR const ra, GPR const rb) { emit_X(0x7c00006e, ra, rt, rb, false); } +void LWZUX_(GPR const rt, GPR const ra, GPR const rb) { emit_X(0x7c00006e, ra, rt, rb, true); } +void LWZX(GPR const rt, GPR const ra, GPR const rb) { emit_X(0x7c00002e, ra, rt, rb, false); } +void LWZX_(GPR const rt, GPR const ra, GPR const rb) { emit_X(0x7c00002e, ra, rt, rb, true); } +void MCRF(CPR const bt, CPR const ba, CPR const bb) { emit_XL(0x4c000000, bt.index, ba.index, bb.index, false); } +void MCRFL(CPR const bt, CPR const ba, CPR const bb) { emit_XL(0x4c000000, bt.index, ba.index, bb.index, true); } +void MCRFS(GPR const rt, GPR const ra, GPR const rb) { emit_X(0xfc000080, ra, rt, rb, false); } +void MCRFS_(GPR const rt, GPR const ra, GPR const rb) { emit_X(0xfc000080, ra, rt, rb, true); } +void MCRXR(GPR const rt, GPR const ra, GPR const rb) { emit_X(0x7c000400, ra, rt, rb, false); } +void MCRXR_(GPR const rt, GPR const ra, GPR const rb) { emit_X(0x7c000400, ra, rt, rb, true); } +void MFCR(GPR const rt, GPR const ra, GPR const rb) { emit_X(0x7c000026, ra, rt, rb, false); } +void MFCR_(GPR const rt, GPR const ra, GPR const rb) { emit_X(0x7c000026, ra, rt, rb, true); } +void MFFS(GPR const rt, GPR const ra, GPR const rb) { emit_X(0xfc00048e, ra, rt, rb, false); } +void MFFS_(GPR const rt, GPR const ra, GPR const rb) { emit_X(0xfc00048e, ra, rt, rb, true); } +void MFMSR(GPR const rt, GPR const ra, GPR const rb) { emit_X(0x7c0000a6, ra, rt, rb, false); } +void MFMSR_(GPR const rt, GPR const ra, GPR const rb) { emit_X(0x7c0000a6, ra, rt, rb, true); } +void MFSPR(GPR const rt, GPR const ra, GPR const rb) { emit_X(0x7c0002a6, ra, rt, rb, false); } +void MFSPR_(GPR const rt, GPR const ra, GPR const rb) { emit_X(0x7c0002a6, ra, rt, rb, true); } +void MFSR(GPR const rt, GPR const ra, GPR const rb) { emit_X(0x7c0004a6, ra, rt, rb, false); } +void MFSR_(GPR const rt, GPR const ra, GPR const rb) { emit_X(0x7c0004a6, ra, rt, rb, true); } +void MFSRIN(GPR const rt, GPR const ra, GPR const rb) { emit_X(0x7c000526, ra, rt, rb, false); } +void MFSRIN_(GPR const rt, GPR const ra, GPR const rb) { emit_X(0x7c000526, ra, rt, rb, true); } +void MTCRF(GPR const rt, uint32_t spr) { emit_XFX(0x7c000120, rt, spr); } +void MTFSB0(GPR const rt, GPR const ra, GPR const rb) { emit_X(0xfc00008c, ra, rt, rb, false); } +void MTFSB0_(GPR const rt, GPR const ra, GPR const rb) { emit_X(0xfc00008c, ra, rt, rb, true); } +void MTFSB1(GPR const rt, GPR const ra, GPR const rb) { emit_X(0xfc00004c, ra, rt, rb, false); } +void MTFSB1_(GPR const rt, GPR const ra, GPR const rb) { emit_X(0xfc00004c, ra, rt, rb, true); } +void MTFSF() { emit_XFL(0xfc00058e); } +void MTFSFI(GPR const rt, GPR const ra, GPR const rb) { emit_X(0xfc00010c, ra, rt, rb, false); } +void MTFSFI_(GPR const rt, GPR const ra, GPR const rb) { emit_X(0xfc00010c, ra, rt, rb, true); } +void MTMSR(GPR const rt, GPR const ra, GPR const rb) { emit_X(0x7c000124, ra, rt, rb, false); } +void MTMSR_(GPR const rt, GPR const ra, GPR const rb) { emit_X(0x7c000124, ra, rt, rb, true); } +void MTSPR(GPR const rt, GPR const ra, GPR const rb) { emit_X(0x7c0003a6, ra, rt, rb, false); } +void MTSPR_(GPR const rt, GPR const ra, GPR const rb) { emit_X(0x7c0003a6, ra, rt, rb, true); } +void MTSR(GPR const rt, GPR const ra, GPR const rb) { emit_X(0x7c0001a4, ra, rt, rb, false); } +void MTSR_(GPR const rt, GPR const ra, GPR const rb) { emit_X(0x7c0001a4, ra, rt, rb, true); } +void MTSRIN(GPR const rt, GPR const ra, GPR const rb) { emit_X(0x7c0001e4, ra, rt, rb, false); } +void MTSRIN_(GPR const rt, GPR const ra, GPR const rb) { emit_X(0x7c0001e4, ra, rt, rb, true); } +void MULHD(GPR const rt, GPR const ra, GPR const rb) { emit_XO(0x7c000092, rt, ra, rb, false, false); } +void MULHDO(GPR const rt, GPR const ra, GPR const rb) { emit_XO(0x7c000092, rt, ra, rb, true, false); } +void MULHD_(GPR const rt, GPR const ra, GPR const rb) { emit_XO(0x7c000092, rt, ra, rb, false, true); } +void MULHDO_(GPR const rt, GPR const ra, GPR const rb) { emit_XO(0x7c000092, rt, ra, rb, true, true); } +void MULHDU(GPR const rt, GPR const ra, GPR const rb) { emit_XO(0x7c000012, rt, ra, rb, false, false); } +void MULHDUO(GPR const rt, GPR const ra, GPR const rb) { emit_XO(0x7c000012, rt, ra, rb, true, false); } +void MULHDU_(GPR const rt, GPR const ra, GPR const rb) { emit_XO(0x7c000012, rt, ra, rb, false, true); } +void MULHDUO_(GPR const rt, GPR const ra, GPR const rb) { emit_XO(0x7c000012, rt, ra, rb, true, true); } +void MULHW(GPR const rt, GPR const ra, GPR const rb) { emit_XO(0x7c000096, rt, ra, rb, false, false); } +void MULHWO(GPR const rt, GPR const ra, GPR const rb) { emit_XO(0x7c000096, rt, ra, rb, true, false); } +void MULHW_(GPR const rt, GPR const ra, GPR const rb) { emit_XO(0x7c000096, rt, ra, rb, false, true); } +void MULHWO_(GPR const rt, GPR const ra, GPR const rb) { emit_XO(0x7c000096, rt, ra, rb, true, true); } +void MULHWU(GPR const rt, GPR const ra, GPR const rb) { emit_XO(0x7c000016, rt, ra, rb, false, false); } +void MULHWUO(GPR const rt, GPR const ra, GPR const rb) { emit_XO(0x7c000016, rt, ra, rb, true, false); } +void MULHWU_(GPR const rt, GPR const ra, GPR const rb) { emit_XO(0x7c000016, rt, ra, rb, false, true); } +void MULHWUO_(GPR const rt, GPR const ra, GPR const rb) { emit_XO(0x7c000016, rt, ra, rb, true, true); } +void MULLD(GPR const rt, GPR const ra, GPR const rb) { emit_XO(0x7c0001d2, rt, ra, rb, false, false); } +void MULLDO(GPR const rt, GPR const ra, GPR const rb) { emit_XO(0x7c0001d2, rt, ra, rb, true, false); } +void MULLD_(GPR const rt, GPR const ra, GPR const rb) { emit_XO(0x7c0001d2, rt, ra, rb, false, true); } +void MULLDO_(GPR const rt, GPR const ra, GPR const rb) { emit_XO(0x7c0001d2, rt, ra, rb, true, true); } +void MULLI(GPR const rt, GPR const ra, uint32_t d) { emit_D(0x1c000000, rt, ra, d); } +void MULLW(GPR const rt, GPR const ra, GPR const rb) { emit_XO(0x7c0001d6, rt, ra, rb, false, false); } +void MULLWO(GPR const rt, GPR const ra, GPR const rb) { emit_XO(0x7c0001d6, rt, ra, rb, true, false); } +void MULLW_(GPR const rt, GPR const ra, GPR const rb) { emit_XO(0x7c0001d6, rt, ra, rb, false, true); } +void MULLWO_(GPR const rt, GPR const ra, GPR const rb) { emit_XO(0x7c0001d6, rt, ra, rb, true, true); } +void NAND(GPR const rt, GPR const ra, GPR const rb) { emit_X(0x7c0003b8, ra, rt, rb, false); } +void NAND_(GPR const rt, GPR const ra, GPR const rb) { emit_X(0x7c0003b8, ra, rt, rb, true); } +void NEG(GPR const rt, GPR const ra, GPR const rb) { emit_XO(0x7c0000d0, rt, ra, rb, false, false); } +void NEGO(GPR const rt, GPR const ra, GPR const rb) { emit_XO(0x7c0000d0, rt, ra, rb, true, false); } +void NEG_(GPR const rt, GPR const ra, GPR const rb) { emit_XO(0x7c0000d0, rt, ra, rb, false, true); } +void NEGO_(GPR const rt, GPR const ra, GPR const rb) { emit_XO(0x7c0000d0, rt, ra, rb, true, true); } +void NOR(GPR const rt, GPR const ra, GPR const rb) { emit_X(0x7c0000f8, ra, rt, rb, false); } +void NOR_(GPR const rt, GPR const ra, GPR const rb) { emit_X(0x7c0000f8, ra, rt, rb, true); } +void OR(GPR const rt, GPR const ra, GPR const rb) { emit_X(0x7c000378, ra, rt, rb, false); } +void OR_(GPR const rt, GPR const ra, GPR const rb) { emit_X(0x7c000378, ra, rt, rb, true); } +void ORC(GPR const rt, GPR const ra, GPR const rb) { emit_X(0x7c000338, ra, rt, rb, false); } +void ORC_(GPR const rt, GPR const ra, GPR const rb) { emit_X(0x7c000338, ra, rt, rb, true); } +void ORI(GPR const rt, GPR const ra, uint32_t d) { emit_D(0x60000000, ra, rt, d); } +void ORIS(GPR const rt, GPR const ra, uint32_t d) { emit_D(0x64000000, ra, rt, d); } +void RFI(GPR const rt, GPR const ra, GPR const rb) { emit_X(0x4c000064, ra, rt, rb, false); } +void RFI_(GPR const rt, GPR const ra, GPR const rb) { emit_X(0x4c000064, ra, rt, rb, true); } +void RLDCL(GPR const rs, GPR const ra, GPR const rb, uint32_t mb) { emit_MDS(0x78000010, ra, rs, rb, mb, false); } +void RLDCL_(GPR const rs, GPR const ra, GPR const rb, uint32_t mb) { emit_MDS(0x78000010, ra, rs, rb, mb, true); } +void RLDCR(GPR const rs, GPR const ra, GPR const rb, uint32_t mb) { emit_MDS(0x78000012, ra, rs, rb, mb, false); } +void RLDCR_(GPR const rs, GPR const ra, GPR const rb, uint32_t mb) { emit_MDS(0x78000012, ra, rs, rb, mb, true); } +void RLDIC(GPR const rs, GPR const ra, uint32_t mb, uint32_t sh) { emit_MD(0x78000008, ra, rs, mb, sh, false); } +void RLDIC_(GPR const rs, GPR const ra, uint32_t mb, uint32_t sh) { emit_MD(0x78000008, ra, rs, mb, sh, true); } +void RLDICL(GPR const rs, GPR const ra, uint32_t mb, uint32_t sh) { emit_MD(0x78000000, ra, rs, mb, sh, false); } +void RLDICL_(GPR const rs, GPR const ra, uint32_t mb, uint32_t sh) { emit_MD(0x78000000, ra, rs, mb, sh, true); } +void RLDICR(GPR const rs, GPR const ra, uint32_t mb, uint32_t sh) { emit_MD(0x78000004, ra, rs, mb, sh, false); } +void RLDICR_(GPR const rs, GPR const ra, uint32_t mb, uint32_t sh) { emit_MD(0x78000004, ra, rs, mb, sh, true); } +void RLDIMI(GPR const rs, GPR const ra, uint32_t mb, uint32_t sh) { emit_MD(0x7800000c, ra, rs, mb, sh, false); } +void RLDIMI_(GPR const rs, GPR const ra, uint32_t mb, uint32_t sh) { emit_MD(0x7800000c, ra, rs, mb, sh, true); } +void RLWIMI(GPR const rs, GPR const ra, uint32_t sh, uint32_t mb, uint32_t me = 0) { emit_M(0x50000000, ra, rs, sh, mb, me, false); } +void RLWIMI_(GPR const rs, GPR const ra, uint32_t sh, uint32_t mb, uint32_t me = 0) { emit_M(0x50000000, ra, rs, sh, mb, me, true); } +void RLWINM(GPR const rs, GPR const ra, uint32_t sh, uint32_t mb, uint32_t me = 0) { emit_M(0x54000000, ra, rs, sh, mb, me, false); } +void RLWINM_(GPR const rs, GPR const ra, uint32_t sh, uint32_t mb, uint32_t me = 0) { emit_M(0x54000000, ra, rs, sh, mb, me, true); } +void RLWNM(GPR const rs, GPR const ra, GPR const rb, uint32_t mb, uint32_t me = 0) { emit_M(0x5c000000, ra, rs, rb.index, mb, me, false); } +void RLWNM_(GPR const rs, GPR const ra, GPR const rb, uint32_t mb, uint32_t me = 0) { emit_M(0x5c000000, ra, rs, rb.index, mb, me, true); } +void SC(uint32_t lev) { emit_SC(0x44000000, lev); } +void SI(GPR const rt, GPR const ra, uint32_t d) { emit_D(0x30000000, rt, ra, d); } +void SI_(GPR const rt, GPR const ra, uint32_t d) { emit_D(0x34000000, rt, ra, d); } +void SLBIA(GPR const rt, GPR const ra, GPR const rb) { emit_X(0x7c0003e4, ra, rt, rb, false); } +void SLBIA_(GPR const rt, GPR const ra, GPR const rb) { emit_X(0x7c0003e4, ra, rt, rb, true); } +void SLBIE(GPR const rt, GPR const ra, GPR const rb) { emit_X(0x7c000364, ra, rt, rb, false); } +void SLBIE_(GPR const rt, GPR const ra, GPR const rb) { emit_X(0x7c000364, ra, rt, rb, true); } +void SLD(GPR const rt, GPR const ra, GPR const rb) { emit_X(0x7c000036, ra, rt, rb, false); } +void SLD_(GPR const rt, GPR const ra, GPR const rb) { emit_X(0x7c000036, ra, rt, rb, true); } +void SLW(GPR const rt, GPR const ra, GPR const rb) { emit_X(0x7c000030, ra, rt, rb, false); } +void SLW_(GPR const rt, GPR const ra, GPR const rb) { emit_X(0x7c000030, ra, rt, rb, true); } +void SRAD(GPR const rt, GPR const ra, GPR const rb) { emit_X(0x7c000634, ra, rt, rb, false); } +void SRAD_(GPR const rt, GPR const ra, GPR const rb) { emit_X(0x7c000634, ra, rt, rb, true); } +void SRADI(GPR const rt, GPR const ra, uint32_t sh) { emit_XS(0x7c000674, rt, ra, sh, false); } +void SRADI_(GPR const rt, GPR const ra, uint32_t sh) { emit_XS(0x7c000674, rt, ra, sh, true); } +void SRD(GPR const rt, GPR const ra, GPR const rb) { emit_X(0x7c000436, ra, rt, rb, false); } +void SRD_(GPR const rt, GPR const ra, GPR const rb) { emit_X(0x7c000436, ra, rt, rb, true); } +void SRAW(GPR const rt, GPR const ra, GPR const rb) { emit_X(0x7c000630, ra, rt, rb, false); } +void SRAW_(GPR const rt, GPR const ra, GPR const rb) { emit_X(0x7c000630, ra, rt, rb, true); } +void SRAWI(GPR const rt, GPR const ra, GPR const rb) { emit_X(0x7c000670, ra, rt, rb, false); } +void SRAWI_(GPR const rt, GPR const ra, GPR const rb) { emit_X(0x7c000670, ra, rt, rb, true); } +void SRW(GPR const rt, GPR const ra, GPR const rb) { emit_X(0x7c000430, ra, rt, rb, false); } +void SRW_(GPR const rt, GPR const ra, GPR const rb) { emit_X(0x7c000430, ra, rt, rb, true); } +void STB(GPR const rt, GPR const ra, uint32_t d) { emit_D(0x98000000, rt, ra, d); } +void STBU(GPR const rt, GPR const ra, uint32_t d) { emit_D(0x9c000000, rt, ra, d); } +void STBUX(GPR const rt, GPR const ra, GPR const rb) { emit_X(0x7c0001ee, ra, rt, rb, false); } +void STBUX_(GPR const rt, GPR const ra, GPR const rb) { emit_X(0x7c0001ee, ra, rt, rb, true); } +void STBX(GPR const rt, GPR const ra, GPR const rb) { emit_X(0x7c0001ae, ra, rt, rb, false); } +void STBX_(GPR const rt, GPR const ra, GPR const rb) { emit_X(0x7c0001ae, ra, rt, rb, true); } +void STD(GPR const rt, GPR const ra, uint32_t d) { emit_DS(0xf8000000, rt, ra, d >> 2); } +void STDCX(GPR const rt, GPR const ra, GPR const rb) { emit_X(0x7c0001ac, ra, rt, rb, false); } +void STDCX_(GPR const rt, GPR const ra, GPR const rb) { emit_X(0x7c0001ac, ra, rt, rb, true); } +void STDU(GPR const rt, GPR const ra, uint32_t d) { emit_DS(0xf8000001, rt, ra, d >> 2); } +void STDUX(GPR const rt, GPR const ra, GPR const rb) { emit_X(0x7c00016a, ra, rt, rb, false); } +void STDUX_(GPR const rt, GPR const ra, GPR const rb) { emit_X(0x7c00016a, ra, rt, rb, true); } +void STDX(GPR const rt, GPR const ra, GPR const rb) { emit_X(0x7c00012a, ra, rt, rb, false); } +void STDX_(GPR const rt, GPR const ra, GPR const rb) { emit_X(0x7c00012a, ra, rt, rb, true); } +void STFD(GPR const rt, GPR const ra, uint32_t d) { emit_D(0xd8000000, rt, ra, d); } +void STFDU(GPR const rt, GPR const ra, uint32_t d) { emit_D(0xdc000000, rt, ra, d); } +void STFDUX(GPR const rt, GPR const ra, GPR const rb) { emit_X(0x7c0005ee, ra, rt, rb, false); } +void STFDUX_(GPR const rt, GPR const ra, GPR const rb) { emit_X(0x7c0005ee, ra, rt, rb, true); } +void STFDX(GPR const rt, GPR const ra, GPR const rb) { emit_X(0x7c0005ae, ra, rt, rb, false); } +void STFDX_(GPR const rt, GPR const ra, GPR const rb) { emit_X(0x7c0005ae, ra, rt, rb, true); } +void STFIWX(GPR const rt, GPR const ra, GPR const rb) { emit_X(0x7c0007ae, ra, rt, rb, false); } +void STFIWX_(GPR const rt, GPR const ra, GPR const rb) { emit_X(0x7c0007ae, ra, rt, rb, true); } +void STFS(GPR const rt, GPR const ra, uint32_t d) { emit_D(0xd0000000, rt, ra, d); } +void STFSU(GPR const rt, GPR const ra, uint32_t d) { emit_D(0xd4000000, rt, ra, d); } +void STFSUX(GPR const rt, GPR const ra, GPR const rb) { emit_X(0x7c00056e, ra, rt, rb, false); } +void STFSUX_(GPR const rt, GPR const ra, GPR const rb) { emit_X(0x7c00056e, ra, rt, rb, true); } +void STFSX(GPR const rt, GPR const ra, GPR const rb) { emit_X(0x7c00052e, ra, rt, rb, false); } +void STFSX_(GPR const rt, GPR const ra, GPR const rb) { emit_X(0x7c00052e, ra, rt, rb, true); } +void STH(GPR const rt, GPR const ra, uint32_t d) { emit_D(0xb0000000, rt, ra, d); } +void STHBRX(GPR const rt, GPR const ra, GPR const rb) { emit_X(0x7c00072c, ra, rt, rb, false); } +void STHBRX_(GPR const rt, GPR const ra, GPR const rb) { emit_X(0x7c00072c, ra, rt, rb, true); } +void STHU(GPR const rt, GPR const ra, uint32_t d) { emit_D(0xb4000000, rt, ra, d); } +void STHUX(GPR const rt, GPR const ra, GPR const rb) { emit_X(0x7c00036e, ra, rt, rb, false); } +void STHUX_(GPR const rt, GPR const ra, GPR const rb) { emit_X(0x7c00036e, ra, rt, rb, true); } +void STHX(GPR const rt, GPR const ra, GPR const rb) { emit_X(0x7c00032e, ra, rt, rb, false); } +void STHX_(GPR const rt, GPR const ra, GPR const rb) { emit_X(0x7c00032e, ra, rt, rb, true); } +void STMW(GPR const rt, GPR const ra, uint32_t d) { emit_D(0xbc000000, rt, ra, d); } +void STSWI(GPR const rt, GPR const ra, GPR const rb) { emit_X(0x7c0005aa, ra, rt, rb, false); } +void STSWI_(GPR const rt, GPR const ra, GPR const rb) { emit_X(0x7c0005aa, ra, rt, rb, true); } +void STSWX(GPR const rt, GPR const ra, GPR const rb) { emit_X(0x7c00052a, ra, rt, rb, false); } +void STSWX_(GPR const rt, GPR const ra, GPR const rb) { emit_X(0x7c00052a, ra, rt, rb, true); } +void STW(GPR const rt, GPR const ra, uint32_t d) { emit_D(0x90000000, rt, ra, d); } +void STWBRX(GPR const rt, GPR const ra, GPR const rb) { emit_X(0x7c00052c, ra, rt, rb, false); } +void STWBRX_(GPR const rt, GPR const ra, GPR const rb) { emit_X(0x7c00052c, ra, rt, rb, true); } +void STWCX_(GPR const rt, GPR const ra, GPR const rb) { emit_X(0x7c00012c, ra, rt, rb, false); } +void STWCX__(GPR const rt, GPR const ra, GPR const rb) { emit_X(0x7c00012c, ra, rt, rb, true); } +void STWU(GPR const rt, GPR const ra, uint32_t d) { emit_D(0x94000000, rt, ra, d); } +void STWUX(GPR const rt, GPR const ra, GPR const rb) { emit_X(0x7c00016e, ra, rt, rb, false); } +void STWUX_(GPR const rt, GPR const ra, GPR const rb) { emit_X(0x7c00016e, ra, rt, rb, true); } +void STWX(GPR const rt, GPR const ra, GPR const rb) { emit_X(0x7c00012e, ra, rt, rb, false); } +void STWX_(GPR const rt, GPR const ra, GPR const rb) { emit_X(0x7c00012e, ra, rt, rb, true); } +void SUBF(GPR const rt, GPR const ra, GPR const rb) { emit_XO(0x7c000050, rt, ra, rb, false, false); } +void SUBFO(GPR const rt, GPR const ra, GPR const rb) { emit_XO(0x7c000050, rt, ra, rb, true, false); } +void SUBF_(GPR const rt, GPR const ra, GPR const rb) { emit_XO(0x7c000050, rt, ra, rb, false, true); } +void SUBFO_(GPR const rt, GPR const ra, GPR const rb) { emit_XO(0x7c000050, rt, ra, rb, true, true); } +void SUBFC(GPR const rt, GPR const ra, GPR const rb) { emit_XO(0x7c000010, rt, ra, rb, false, false); } +void SUBFCO(GPR const rt, GPR const ra, GPR const rb) { emit_XO(0x7c000010, rt, ra, rb, true, false); } +void SUBFC_(GPR const rt, GPR const ra, GPR const rb) { emit_XO(0x7c000010, rt, ra, rb, false, true); } +void SUBFCO_(GPR const rt, GPR const ra, GPR const rb) { emit_XO(0x7c000010, rt, ra, rb, true, true); } +void SUBFE(GPR const rt, GPR const ra, GPR const rb) { emit_XO(0x7c000110, rt, ra, rb, false, false); } +void SUBFEO(GPR const rt, GPR const ra, GPR const rb) { emit_XO(0x7c000110, rt, ra, rb, true, false); } +void SUBFE_(GPR const rt, GPR const ra, GPR const rb) { emit_XO(0x7c000110, rt, ra, rb, false, true); } +void SUBFEO_(GPR const rt, GPR const ra, GPR const rb) { emit_XO(0x7c000110, rt, ra, rb, true, true); } +void SUBFIC(GPR const rt, GPR const ra, uint32_t d) { emit_D(0x20000000, rt, ra, d); } +void SUBFME(GPR const rt, GPR const ra, GPR const rb) { emit_XO(0x7c0001d0, rt, ra, rb, false, false); } +void SUBFMEO(GPR const rt, GPR const ra, GPR const rb) { emit_XO(0x7c0001d0, rt, ra, rb, true, false); } +void SUBFME_(GPR const rt, GPR const ra, GPR const rb) { emit_XO(0x7c0001d0, rt, ra, rb, false, true); } +void SUBFMEO_(GPR const rt, GPR const ra, GPR const rb) { emit_XO(0x7c0001d0, rt, ra, rb, true, true); } +void SUBFZE(GPR const rt, GPR const ra, GPR const rb) { emit_XO(0x7c000190, rt, ra, rb, false, false); } +void SUBFZEO(GPR const rt, GPR const ra, GPR const rb) { emit_XO(0x7c000190, rt, ra, rb, true, false); } +void SUBFZE_(GPR const rt, GPR const ra, GPR const rb) { emit_XO(0x7c000190, rt, ra, rb, false, true); } +void SUBFZEO_(GPR const rt, GPR const ra, GPR const rb) { emit_XO(0x7c000190, rt, ra, rb, true, true); } +void SYNC(GPR const rt, GPR const ra, GPR const rb) { emit_X(0x7c0004ac, ra, rt, rb, false); } +void SYNC_(GPR const rt, GPR const ra, GPR const rb) { emit_X(0x7c0004ac, ra, rt, rb, true); } +void TD(GPR const rt, GPR const ra, GPR const rb) { emit_X(0x7c000088, ra, rt, rb, false); } +void TD_(GPR const rt, GPR const ra, GPR const rb) { emit_X(0x7c000088, ra, rt, rb, true); } +void TDI(GPR const rt, GPR const ra, uint32_t d) { emit_D(0x08000000, rt, ra, d); } +void TLBIE(GPR const rt, GPR const ra, GPR const rb) { emit_X(0x7c000264, ra, rt, rb, false); } +void TLBIE_(GPR const rt, GPR const ra, GPR const rb) { emit_X(0x7c000264, ra, rt, rb, true); } +void TLBSYNC(GPR const rt, GPR const ra, GPR const rb) { emit_X(0x7c00046c, ra, rt, rb, false); } +void TLBSYNC_(GPR const rt, GPR const ra, GPR const rb) { emit_X(0x7c00046c, ra, rt, rb, true); } +void TW(GPR const rt, GPR const ra, GPR const rb) { emit_X(0x7c000008, ra, rt, rb, false); } +void TW_(GPR const rt, GPR const ra, GPR const rb) { emit_X(0x7c000008, ra, rt, rb, true); } +void TWI(GPR const rt, GPR const ra, uint32_t d) { emit_D(0x0c000000, rt, ra, d); } +void XOR(GPR const rt, GPR const ra, GPR const rb) { emit_X(0x7c000278, ra, rt, rb, false); } +void XOR_(GPR const rt, GPR const ra, GPR const rb) { emit_X(0x7c000278, ra, rt, rb, true); } +void XORI(GPR const rt, GPR const ra, uint32_t d) { emit_D(0x68000000, ra, rt, d); } +void XORIS(GPR const rt, GPR const ra, uint32_t d) { emit_D(0x6c000000, ra, rt, d); } diff --git a/externals/powah/tests.cpp b/externals/powah/tests.cpp new file mode 100644 index 0000000000..e65f293175 --- /dev/null +++ b/externals/powah/tests.cpp @@ -0,0 +1,340 @@ +// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project +// SPDX-License-Identifier: GPL-3.0-or-later + +#include +#include +#include "powah_emit.hpp" + +#define EB32(X) __bswap32(X) + +TEST_CASE("ppc64: addi", "[ppc64]") { + std::vector data(64); + powah::Context ctx(data.data(), data.size()); + + ctx.ADDI(powah::R2, powah::R2, 0); + ctx.ADDIS(powah::R2, powah::R12, 0); + REQUIRE(data[0] == EB32(0x00004238)); + REQUIRE(data[1] == EB32(0x00004c3c)); +} + +TEST_CASE("ppc64: std/mr", "[ppc64]") { + std::vector data(64); + powah::Context ctx(data.data(), data.size()); + + ctx.STD(powah::R26, powah::R1, 144); + ctx.MR(powah::R26, powah::R4); + ctx.STD(powah::R30, powah::R1, 176); + ctx.MR(powah::R30, powah::R3); + ctx.RLDICR(powah::R4, powah::R5, 25, 6); + ctx.STD(powah::R28, powah::R1, 160); + REQUIRE(data[0] == EB32(0x900041fb)); + REQUIRE(data[1] == EB32(0x78239a7c)); + REQUIRE(data[2] == EB32(0xb000c1fb)); + REQUIRE(data[3] == EB32(0x781b7e7c)); + REQUIRE(data[4] == EB32(0x84c9a478)); + REQUIRE(data[5] == EB32(0xa00081fb)); +} + +TEST_CASE("ppc64: sldi", "[ppc64]") { + std::vector data(64); + powah::Context ctx(data.data(), data.size()); + + ctx.SLDI(powah::R3, powah::R5, 37); + REQUIRE(data[0] == EB32(0x862ea378)); +} + +TEST_CASE("ppc64: rldicr", "[ppc64]") { + std::vector data(64); + powah::Context ctx(data.data(), data.size()); + ctx.RLDICR(powah::R1, powah::R1, 0, 0); + ctx.RLDICR(powah::R1, powah::R1, 1, 0); + ctx.RLDICR(powah::R1, powah::R1, 0, 1); + ctx.RLDICR(powah::R1, powah::R1, 1, 1); + ctx.RLDICR(powah::R1, powah::R1, 31, 31); + REQUIRE(data[0] == EB32(0x04002178)); + REQUIRE(data[1] == EB32(0x04082178)); + REQUIRE(data[2] == EB32(0x44002178)); + REQUIRE(data[3] == EB32(0x44082178)); + REQUIRE(data[4] == EB32(0xc4ff2178)); +} + +TEST_CASE("ppc64: mr/or/std", "[ppc64]") { + std::vector data(64); + powah::Context ctx(data.data(), data.size()); + ctx.MR(powah::R27, powah::R7); + ctx.MR(powah::R29, powah::R6); + ctx.OR(powah::R3, powah::R3, powah::R4); + ctx.MR(powah::R4, powah::R28); + ctx.CRMOVE(powah::CPR{8}, powah::CPR{1}); + ctx.MR(powah::R25, powah::R5); + ctx.OR(powah::R3, powah::R3, powah::R26); + ctx.STD(powah::R3, powah::R1, 56); + ctx.MR(powah::R3, powah::R30); + REQUIRE(data[0] == EB32(0x783bfb7c)); + REQUIRE(data[1] == EB32(0x7833dd7c)); + REQUIRE(data[2] == EB32(0x7823637c)); + REQUIRE(data[3] == EB32(0x78e3847f)); + REQUIRE(data[4] == EB32(0x820b014d)); + REQUIRE(data[5] == EB32(0x782bb97c)); + REQUIRE(data[6] == EB32(0x78d3637c)); + REQUIRE(data[7] == EB32(0x380061f8)); + REQUIRE(data[8] == EB32(0x78f3c37f)); +} + +TEST_CASE("ppc64: ld/crand+addi", "[ppc64]") { + std::vector data(64); + powah::Context ctx(data.data(), data.size()); + ctx.LD(powah::R4, powah::R1, 72); + ctx.LWZ(powah::R5, powah::R1, 80); + ctx.CRAND(powah::CPR{20}, powah::CPR{10}, powah::CPR{9}); + ctx.ADDI(powah::R6, powah::R4, 4); + ctx.ANDIS_(powah::R4, powah::R5, 1992); + ctx.LD(powah::R5, powah::R30, 1984); + ctx.LBZ(powah::R3, powah::R1, 84); + ctx.CLRLDI(powah::R26, powah::R6, 8); + ctx.STW(powah::R4, powah::R1, 80); + ctx.ADDI(powah::R5, powah::R5, 1); + ctx.STD(powah::R26, powah::R1, 72); + ctx.STD(powah::R5, powah::R30, 1984); + REQUIRE(data[0] == EB32(0x480081e8)); + REQUIRE(data[1] == EB32(0x5000a180)); + REQUIRE(data[2] == EB32(0x024a8a4e)); + REQUIRE(data[3] == EB32(0x0400c438)); + REQUIRE(data[4] == EB32(0xc807a474)); + REQUIRE(data[5] == EB32(0xc007bee8)); + REQUIRE(data[6] == EB32(0x54006188)); + REQUIRE(data[7] == EB32(0x0002da78)); + REQUIRE(data[8] == EB32(0x50008190)); + REQUIRE(data[9] == EB32(0x0100a538)); + REQUIRE(data[10] == EB32(0x480041fb)); + REQUIRE(data[11] == EB32(0xc007bef8)); +} + +TEST_CASE("ppc64: rotldi", "[ppc64]") { + std::vector data(64); + powah::Context ctx(data.data(), data.size()); + ctx.ROTLDI(powah::R5, powah::R3, 16); + ctx.ROTLDI(powah::R4, powah::R3, 8); + ctx.RLDIMI(powah::R4, powah::R5, 8, 48); + ctx.ROTLDI(powah::R5, powah::R3, 24); + ctx.RLDIMI(powah::R4, powah::R5, 16, 40); + ctx.ROTLDI(powah::R5, powah::R3, 32); + ctx.RLDIMI(powah::R4, powah::R5, 24, 32); + ctx.ROTLDI(powah::R5, powah::R3, 48); + ctx.RLDIMI(powah::R4, powah::R5, 40, 16); + ctx.ROTLDI(powah::R5, powah::R3, 56); + ctx.RLDIMI(powah::R4, powah::R5, 48, 8); + ctx.RLDIMI(powah::R4, powah::R3, 56, 0); + ctx.MR(powah::R3, powah::R4); + REQUIRE(data[0] == EB32(0x00806578)); + REQUIRE(data[1] == EB32(0x00406478)); + REQUIRE(data[2] == EB32(0x2c44a478)); + REQUIRE(data[3] == EB32(0x00c06578)); + REQUIRE(data[4] == EB32(0x2c82a478)); + REQUIRE(data[5] == EB32(0x02006578)); + REQUIRE(data[6] == EB32(0x2cc0a478)); + REQUIRE(data[7] == EB32(0x02806578)); + REQUIRE(data[8] == EB32(0x0e44a478)); + REQUIRE(data[9] == EB32(0x02c06578)); + REQUIRE(data[10] == EB32(0x0e82a478)); + REQUIRE(data[11] == EB32(0x0ec06478)); + REQUIRE(data[12] == EB32(0x7823837c)); +} + +TEST_CASE("ppc64: branch-backwards", "[ppc64]") { + std::vector data(64); + powah::Context ctx(data.data(), data.size()); + powah::Label l_3 = ctx.DefineLabel(); + ctx.LABEL(l_3); + ctx.ADD(powah::R1, powah::R2, powah::R3); + ctx.B(l_3); + ctx.ApplyRelocs(); + REQUIRE(data[0] == EB32(0x141a227c)); + REQUIRE(data[1] == EB32(0xfcffff4b)); +} + +TEST_CASE("ppc64: rlwimi madness", "[ppc64]") { + std::vector data(64); + powah::Context ctx(data.data(), data.size()); + ctx.ROTLWI(powah::R10, powah::R3, 24); + ctx.SRDI(powah::R9, powah::R3, 32); + ctx.RLWIMI(powah::R10, powah::R3, 8, 8, 15); + ctx.RLWIMI(powah::R10, powah::R3, 8, 24, 31); + ctx.ROTLWI(powah::R3, powah::R9, 24); + ctx.RLWIMI(powah::R3, powah::R9, 8, 8, 15); + ctx.RLWIMI(powah::R3, powah::R9, 8, 24, 31); + ctx.RLDIMI(powah::R3, powah::R10, 32, 0); + REQUIRE(data[0] == EB32(0x3ec06a54)); + REQUIRE(data[1] == EB32(0x22006978)); + REQUIRE(data[2] == EB32(0x1e426a50)); + REQUIRE(data[3] == EB32(0x3e466a50)); + REQUIRE(data[4] == EB32(0x3ec02355)); + REQUIRE(data[5] == EB32(0x1e422351)); + REQUIRE(data[6] == EB32(0x3e462351)); + REQUIRE(data[7] == EB32(0x0e004379)); +} + +/* + 0: 78 1b 68 7c mr 8, 3 + 4: 38 28 83 7c and 3, 4, 5 + 8: 74 00 6a 7c cntlzd 10, 3 + c: 76 06 69 7c sradi 9, 3, 32 + 10: 82 d1 4a 79 rldicl 10, 10, 58, 6 + 14: 00 00 29 55 rlwinm 9, 9, 0, 0, 0 + 18: 64 f0 4a 79 sldi 10, 10, 30 + 1c: 78 53 29 7d or 9, 9, 10 + 20: 00 00 28 f9 std 9, 0(8) + 24: 20 00 80 4e blr +*/ +TEST_CASE("ppc64: functor-2", "[ppc64]") { + std::vector data(64); + powah::Context ctx(data.data(), data.size()); + ctx.MR(powah::R8, powah::R3); + ctx.AND(powah::R3, powah::R4, powah::R5); + ctx.CNTLZD(powah::R10, powah::R3); + ctx.SRADI(powah::R9, powah::R3, 32); + ctx.RLDICL(powah::R10, powah::R10, 58, 6); + ctx.RLWINM(powah::R9, powah::R9, 0, 0, 0); + ctx.SLDI(powah::R10, powah::R10, 30); + ctx.OR(powah::R9, powah::R9, powah::R10); + ctx.STD(powah::R9, powah::R8, 0); + ctx.BLR(); + REQUIRE(data[0] == EB32(0x781b687c)); + REQUIRE(data[1] == EB32(0x3828837c)); + REQUIRE(data[2] == EB32(0x74006a7c)); + REQUIRE(data[3] == EB32(0x7606697c)); + REQUIRE(data[4] == EB32(0x82d14a79)); + REQUIRE(data[5] == EB32(0x00002955)); + REQUIRE(data[6] == EB32(0x64f04a79)); + REQUIRE(data[7] == EB32(0x7853297d)); + REQUIRE(data[8] == EB32(0x000028f9)); + REQUIRE(data[9] == EB32(0x2000804e)); +} + +TEST_CASE("ppc64: functor-1", "[ppc64]") { + std::vector data(64); + powah::Context ctx(data.data(), data.size()); + powah::Label l_4 = ctx.DefineLabel(); + powah::Label l_7 = ctx.DefineLabel(); + ctx.CMPLD(powah::CR0, powah::R3, powah::R4); + ctx.MR(powah::R9, powah::R3); + ctx.BGT(powah::CR0, l_7); + ctx.CMPLDI(powah::CR0, powah::R3, 3781); + ctx.LI(powah::R3, 1); + ctx.BGTLR(powah::CR0); + ctx.CMPLD(powah::CR0, powah::R9, powah::R5); + ctx.BLE(powah::CR0, l_4); + ctx.SUBF(powah::R5, powah::R9, powah::R5); + ctx.XOR(powah::R3, powah::R5, powah::R4); + ctx.BLR(); + ctx.LABEL(l_4); + ctx.ADD(powah::R5, powah::R4, powah::R5); + ctx.ADD(powah::R3, powah::R5, powah::R9); + ctx.BLR(); + ctx.LABEL(l_7); + ctx.ADD(powah::R3, powah::R4, powah::R5); + ctx.BLR(); + ctx.ApplyRelocs(); + REQUIRE(data[0] == EB32(0x4020237c)); + REQUIRE(data[1] == EB32(0x781b697c)); + REQUIRE(data[2] == EB32(0x30008141)); + REQUIRE(data[3] == EB32(0xc50e2328)); + REQUIRE(data[4] == EB32(0x01006038)); + REQUIRE(data[5] == EB32(0x2000814d)); + REQUIRE(data[6] == EB32(0x4028297c)); + REQUIRE(data[7] == EB32(0x10008140)); + REQUIRE(data[8] == EB32(0x5028a97c)); + REQUIRE(data[9] == EB32(0x7822a37c)); + REQUIRE(data[10] == EB32(0x2000804e)); + REQUIRE(data[11] == EB32(0x142aa47c)); + REQUIRE(data[12] == EB32(0x144a657c)); + REQUIRE(data[13] == EB32(0x2000804e)); + REQUIRE(data[14] == EB32(0x142a647c)); + REQUIRE(data[15] == EB32(0x2000804e)); +} + +#if defined(ARCHITECTURE_powerpc64) +/* + 0: d619637c mullw 3, 3, 3 + 4: 20006378 clrldi 3, 3, 32 + 8: 2000804e blr +*/ +TEST_CASE("ppc64: live-exec square", "[ppc64]") { + uint32_t* data = (uint32_t*)mmap(nullptr, 4096, PROT_WRITE | PROT_READ | PROT_EXEC, MAP_ANONYMOUS | MAP_PRIVATE, -1, 0); + REQUIRE(data != nullptr); + + powah::Context ctx((void*)data, 4096); + ctx.MULLW(powah::R3, powah::R3, powah::R3); + ctx.CLRLDI(powah::R3, powah::R3, 32); + ctx.BLR(); + REQUIRE(data[0] == EB32(0xd619637c)); + REQUIRE(data[1] == EB32(0x20006378)); + REQUIRE(data[2] == EB32(0x2000804e)); + + auto* fn = (int (*)(int))data; + REQUIRE(fn(4) == 4 * 4); + REQUIRE(fn(8) == 8 * 8); + + munmap((void*)data, 4096); +} + +/* +int f(int a, int b, int c) { + a += (a > b) ? b - 0xffff : c + 402, b += 2, c &= b*c; + return a * a + b ^ c & b; +} +*/ +TEST_CASE("ppc64: live-exec xoralu", "[ppc64]") { + uint32_t* data = (uint32_t*)mmap(nullptr, 4096, PROT_WRITE | PROT_READ | PROT_EXEC, MAP_ANONYMOUS | MAP_PRIVATE, -1, 0); + REQUIRE(data != nullptr); + + powah::Context ctx((void*)data, 4096); + powah::Label l_2 = ctx.DefineLabel(); + powah::Label l_3 = ctx.DefineLabel(); + ctx.CMPW(powah::R3, powah::R4); + ctx.BGT(powah::CR0, l_2); + ctx.ADDI(powah::R6, powah::R5, 402); + ctx.B(l_3); + ctx.LABEL(l_2); + ctx.ADDI(powah::R6, powah::R4, 1); + ctx.ADDIS(powah::R6, powah::R6, -1); + ctx.LABEL(l_3); + ctx.ADDI(powah::R4, powah::R4, 2); + ctx.ADD(powah::R3, powah::R6, powah::R3); + ctx.MULLW(powah::R6, powah::R4, powah::R5); + ctx.MULLW(powah::R3, powah::R3, powah::R3); + ctx.AND(powah::R5, powah::R5, powah::R6); + ctx.ADD(powah::R3, powah::R3, powah::R4); + ctx.AND(powah::R4, powah::R5, powah::R4); + ctx.XOR(powah::R3, powah::R3, powah::R4); + ctx.EXTSW(powah::R3, powah::R3); + ctx.BLR(); + ctx.ApplyRelocs(); + REQUIRE(data[0] == EB32(0x0020037c)); + REQUIRE(data[1] == EB32(0x0c008141)); + REQUIRE(data[2] == EB32(0x9201c538)); + REQUIRE(data[3] == EB32(0x0c000048)); + REQUIRE(data[4] == EB32(0x0100c438)); + REQUIRE(data[5] == EB32(0xffffc63c)); + REQUIRE(data[6] == EB32(0x02008438)); + REQUIRE(data[7] == EB32(0x141a667c)); + REQUIRE(data[8] == EB32(0xd629c47c)); + REQUIRE(data[9] == EB32(0xd619637c)); + REQUIRE(data[10] == EB32(0x3830a57c)); + REQUIRE(data[11] == EB32(0x1422637c)); + REQUIRE(data[12] == EB32(0x3820a47c)); + REQUIRE(data[13] == EB32(0x7822637c)); + REQUIRE(data[14] == EB32(0xb407637c)); + REQUIRE(data[15] == EB32(0x2000804e)); + + auto const orig = [](int a, int b, int c) { + a += (a > b) ? b - 0xffff : c + 402, b += 2, c &= b*c; + return a * a + b ^ c & b; + }; + auto* fn = (int (*)(int, int, int))data; + REQUIRE(fn(0, 1, 2) == orig(0, 1, 2)); + REQUIRE(fn(6456, 4564, 4564561) == orig(6456, 4564, 4564561)); + + munmap((void*)data, 4096); +} +#endif diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index a2abc7d1b3..9c62379d02 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -8,7 +8,7 @@ include_directories(.) # Dynarmic -if ((ARCHITECTURE_x86_64 OR ARCHITECTURE_arm64 OR ARCHITECTURE_riscv64 OR ARCHITECTURE_loongarch64) AND NOT YUZU_STATIC_ROOM) +if ((ARCHITECTURE_x86_64 OR ARCHITECTURE_arm64 OR ARCHITECTURE_riscv64 OR ARCHITECTURE_loongarch64 OR ARCHITECTURE_powerpc64) AND NOT YUZU_STATIC_ROOM) add_subdirectory(dynarmic) add_library(dynarmic::dynarmic ALIAS dynarmic) endif() diff --git a/src/android/app/build.gradle.kts b/src/android/app/build.gradle.kts index 69dd6a8e4f..3ae6d73994 100644 --- a/src/android/app/build.gradle.kts +++ b/src/android/app/build.gradle.kts @@ -259,7 +259,7 @@ android { externalNativeBuild { cmake { - version = "3.31.5" + version = "3.31.6" path = file("${edenDir}/CMakeLists.txt") } } diff --git a/src/android/app/src/main/java/org/yuzu/yuzu_emu/dialogs/QuickSettings.kt b/src/android/app/src/main/java/org/yuzu/yuzu_emu/dialogs/QuickSettings.kt index c2ef683cfd..7ba7772bd7 100644 --- a/src/android/app/src/main/java/org/yuzu/yuzu_emu/dialogs/QuickSettings.kt +++ b/src/android/app/src/main/java/org/yuzu/yuzu_emu/dialogs/QuickSettings.kt @@ -3,13 +3,10 @@ package org.yuzu.yuzu_emu.dialogs -import android.content.res.ColorStateList -import android.graphics.Rect import android.view.LayoutInflater import android.view.MotionEvent import android.view.View import android.view.ViewGroup -import android.widget.LinearLayout import android.widget.RadioGroup import android.widget.TextView import androidx.drawerlayout.widget.DrawerLayout @@ -21,28 +18,11 @@ import org.yuzu.yuzu_emu.features.settings.model.BooleanSetting import org.yuzu.yuzu_emu.features.settings.model.IntSetting import org.yuzu.yuzu_emu.fragments.EmulationFragment import org.yuzu.yuzu_emu.utils.NativeConfig -import org.yuzu.yuzu_emu.utils.NativePostProcessing import org.yuzu.yuzu_emu.features.settings.model.AbstractSetting import org.yuzu.yuzu_emu.features.settings.model.AbstractShortSetting import org.yuzu.yuzu_emu.features.settings.model.AbstractIntSetting class QuickSettings(val emulationFragment: EmulationFragment) { - private val expandedShaders = mutableSetOf() - - private fun forgetShaderSlot(index: Int) { - val shifted = mutableSetOf() - for (slot in expandedShaders) { - if (slot < index) { - shifted.add(slot) - } - if (slot > index) { - shifted.add(slot - 1) - } - } - expandedShaders.clear() - expandedShaders.addAll(shifted) - } - private fun saveSettings() { if (emulationFragment.shouldUseCustom) { NativeConfig.savePerGameConfig() @@ -252,589 +232,6 @@ class QuickSettings(val emulationFragment: EmulationFragment) { container.addView(itemView) } - fun addChoice( - title: String, - container: ViewGroup, - choices: List, - selectedIndex: Int, - onSelected: (Int) -> Unit - ) { - val inflater = LayoutInflater.from(emulationFragment.requireContext()) - val itemView = inflater.inflate(R.layout.item_quick_settings_menu, container, false) - val headerView = itemView.findViewById(R.id.setting_header) - val titleView = itemView.findViewById(R.id.setting_title) - val valueView = itemView.findViewById(R.id.setting_value) - val expandIcon = itemView.findViewById(R.id.expand_icon) - val radioGroup = itemView.findViewById(R.id.radio_group) - - titleView.text = title - - var current = "" - if (selectedIndex in choices.indices) { - current = choices[selectedIndex] - } - valueView.text = current - headerView.visibility = View.VISIBLE - - var isExpanded = false - choices.forEachIndexed { index, name -> - val radioButton = com.google.android.material.radiobutton.MaterialRadioButton( - emulationFragment.requireContext() - ) - radioButton.text = name - radioButton.id = View.generateViewId() - radioButton.isChecked = index == selectedIndex - radioButton.setPadding(16, 8, 16, 8) - - radioButton.setOnCheckedChangeListener { _, isChecked -> - if (isChecked) { - valueView.text = name - onSelected(index) - } - } - radioGroup.addView(radioButton) - } - - headerView.setOnClickListener { - isExpanded = !isExpanded - if (isExpanded) { - radioGroup.visibility = View.VISIBLE - expandIcon.animate().rotation(180f).setDuration(200).start() - } else { - radioGroup.visibility = View.GONE - expandIcon.animate().rotation(0f).setDuration(200).start() - } - } - - container.addView(itemView) - } - - fun addStepSlider( - title: String, - container: ViewGroup, - steps: Int, - selectedStep: Int, - describe: (Int) -> String, - onCommitted: (Int) -> Unit, - onChanged: (Int) -> Unit - ) { - val inflater = LayoutInflater.from(emulationFragment.requireContext()) - val itemView = inflater.inflate(R.layout.item_quick_settings_menu, container, false) - - val sliderContainer = itemView.findViewById(R.id.slider_container) - val titleView = itemView.findViewById(R.id.slider_title) - val valueDisplay = itemView.findViewById(R.id.slider_value_display) - val slider = itemView.findViewById( - R.id.setting_slider - ) - - titleView.text = title - sliderContainer.visibility = View.VISIBLE - - slider.valueFrom = 0f - slider.valueTo = steps.toFloat() - slider.stepSize = 1f - slider.value = selectedStep.toFloat().coerceIn(0f, steps.toFloat()) - valueDisplay.text = describe(slider.value.toInt()) - - slider.addOnChangeListener { _, value, fromUser -> - if (fromUser) { - val step = value.toInt() - onChanged(step) - valueDisplay.text = describe(step) - } - } - - var pressedValue = slider.value - - slider.setOnTouchListener { _, event -> - val drawer = emulationFragment.view?.findViewById(R.id.drawer_layout) - when (event.action) { - MotionEvent.ACTION_DOWN -> { - drawer?.requestDisallowInterceptTouchEvent(true) - pressedValue = slider.value - } - MotionEvent.ACTION_UP, MotionEvent.ACTION_CANCEL -> { - drawer?.requestDisallowInterceptTouchEvent(false) - if (slider.value != pressedValue) { - onCommitted(slider.value.toInt()) - } - } - } - false - } - - container.addView(itemView) - } - - fun addShaderCard( - index: Int, - title: String, - summary: String, - container: ViewGroup, - onRemove: () -> Unit - ): ViewGroup { - val inflater = LayoutInflater.from(emulationFragment.requireContext()) - val itemView = inflater.inflate(R.layout.item_quick_settings_shader, container, false) - - val headerView = itemView.findViewById(R.id.shader_header) - val titleView = itemView.findViewById(R.id.shader_title) - val summaryView = itemView.findViewById(R.id.shader_summary) - val removeView = itemView.findViewById(R.id.shader_remove) - val expandIcon = itemView.findViewById(R.id.shader_expand) - val bodyView = itemView.findViewById(R.id.shader_body) - - titleView.text = title - if (summary.isEmpty()) { - summaryView.visibility = View.GONE - } else { - summaryView.text = summary - } - - var isExpanded = expandedShaders.contains(index) - if (isExpanded) { - bodyView.visibility = View.VISIBLE - expandIcon.rotation = 180f - } - - headerView.setOnClickListener { - isExpanded = !isExpanded - if (isExpanded) { - expandedShaders.add(index) - bodyView.visibility = View.VISIBLE - expandIcon.animate().rotation(180f).setDuration(200).start() - } else { - expandedShaders.remove(index) - bodyView.visibility = View.GONE - expandIcon.animate().rotation(0f).setDuration(200).start() - } - } - - removeView.setOnClickListener { - onRemove() - } - - container.addView(itemView) - return bodyView - } - - fun addEffectPicker( - container: ViewGroup, - choices: List, - hasEffects: Boolean, - onRemoveAll: () -> Unit, - onPicked: (Int) -> Unit - ) { - val context = emulationFragment.requireContext() - val inflater = LayoutInflater.from(context) - val itemView = inflater.inflate(R.layout.item_quick_settings_add, container, false) - - val button = itemView.findViewById( - R.id.add_button - ) - val removeButton = - itemView.findViewById( - R.id.remove_all_button - ) - val choiceGroup = itemView.findViewById(R.id.add_choices) - - choices.forEachIndexed { index, name -> - val radioButton = com.google.android.material.radiobutton.MaterialRadioButton(context) - radioButton.text = name - radioButton.id = View.generateViewId() - radioButton.setPadding(16, 8, 16, 8) - radioButton.setOnCheckedChangeListener { _, isChecked -> - if (isChecked) { - onPicked(index) - } - } - choiceGroup.addView(radioButton) - } - - var closedLabel = R.string.post_processing_add - if (hasEffects) { - closedLabel = R.string.post_processing_open_list - removeButton.visibility = View.VISIBLE - } - button.setText(closedLabel) - - val removeBackground = MaterialColors.getColor( - removeButton, - com.google.android.material.R.attr.colorErrorContainer - ) - val removeForeground = MaterialColors.getColor( - removeButton, - com.google.android.material.R.attr.colorOnErrorContainer - ) - removeButton.backgroundTintList = ColorStateList.valueOf(removeBackground) - removeButton.setTextColor(removeForeground) - removeButton.iconTint = ColorStateList.valueOf(removeForeground) - removeButton.setOnClickListener { - onRemoveAll() - } - - val slide = context.resources.displayMetrics.density * 24.0f - - var isOpen = false - button.setOnClickListener { - isOpen = !isOpen - if (isOpen) { - choiceGroup.alpha = 0.0f - choiceGroup.translationY = slide - choiceGroup.visibility = View.VISIBLE - choiceGroup.animate() - .alpha(1.0f) - .translationY(0.0f) - .setDuration(220) - .withEndAction { - choiceGroup.requestRectangleOnScreen( - Rect(0, 0, choiceGroup.width, choiceGroup.height), - false - ) - } - .start() - - button.setText(R.string.post_processing_close_list) - button.setIconResource(R.drawable.ic_clear) - } else { - choiceGroup.animate() - .alpha(0.0f) - .translationY(slide) - .setDuration(160) - .withEndAction { - choiceGroup.visibility = View.GONE - } - .start() - - button.setText(closedLabel) - button.setIconResource(R.drawable.ic_add) - } - } - - container.addView(itemView) - } - - fun addPresetBand(container: ViewGroup, name: String, summary: String) { - val inflater = LayoutInflater.from(emulationFragment.requireContext()) - val itemView = inflater.inflate(R.layout.item_quick_settings_preset, container, false) - - val titleView = itemView.findViewById(R.id.preset_title) - val summaryView = itemView.findViewById(R.id.preset_summary) - val switchView = itemView.findViewById(R.id.preset_switch) - - titleView.text = name - if (summary.isEmpty()) { - summaryView.visibility = View.GONE - } else { - summaryView.text = summary - } - - switchView.isChecked = NativePostProcessing.isEnabled() - switchView.setOnCheckedChangeListener { _, checked -> - emulationFragment.editPostProcessing { - NativePostProcessing.setEnabled(checked) - } - } - - container.addView(itemView) - } - - fun addPostProcessing(container: ViewGroup, onStructureChanged: () -> Unit) { - val usable = NativePostProcessing.catalog().filter { it.valid } - if (usable.isEmpty()) { - return - } - - val preset = NativePostProcessing.getActivePreset() - if (preset.isNotEmpty()) { - addDivider(container) - - var summary = "" - val described = NativePostProcessing.presets().firstOrNull { it.name == preset } - if (described != null) { - summary = described.description - } - if (summary.isEmpty()) { - summary = - YuzuApplication.appContext.getString(R.string.post_processing_preset_locked) - } - if (NativePostProcessing.isPresetModified()) { - summary = summary + "\n" + - YuzuApplication.appContext.getString(R.string.post_processing_preset_modified) - } - - addPresetBand(container, preset, summary) - return - } - - val labels = mutableListOf() - val files = mutableListOf() - val techniques = mutableListOf() - - for (effect in usable) { - for (technique in effect.techniques) { - var label = effect.label - if (effect.techniques.size > 1) { - label = effect.label + " \u00b7 " + technique - } - labels.add(label) - files.add(effect.file) - techniques.add(technique) - } - } - - addDivider(container) - - val chain = NativePostProcessing.chain() - chain.forEachIndexed { index, entry -> - val effect = usable.firstOrNull { it.file == entry.file } - - var title = entry.file - var summary = "" - if (effect != null) { - title = effect.label - if (effect.techniques.size > 1) { - title = effect.label + " \u00b7 " + entry.technique - } - summary = effect.description - } - - val body = addShaderCard(index, title, summary, container) { - emulationFragment.editPostProcessing { - NativePostProcessing.remove(index) - } - forgetShaderSlot(index) - onStructureChanged() - } - - if (effect != null) { - for (uniform in effect.uniforms) { - addUniformSliders(body, index, uniform) - } - } - } - - addEffectPicker( - container, - labels, - chain.isNotEmpty(), - { - emulationFragment.editPostProcessing { - NativePostProcessing.clearChain() - } - expandedShaders.clear() - onStructureChanged() - } - ) { picked -> - emulationFragment.editPostProcessing { - NativePostProcessing.append(files[picked], techniques[picked]) - } - onStructureChanged() - } - } - - private fun addUniformSliders( - container: ViewGroup, - index: Int, - uniform: NativePostProcessing.Uniform - ) { - if (uniform.uiType == NativePostProcessing.UI_HIDDEN) { - return - } - - for (component in 0 until uniform.components) { - var title = uniform.label - if (uniform.components > 1) { - title = uniform.label + " [" + component + "]" - } - - var value = uniform.defaultAt(component) - if (NativePostProcessing.hasValue(index, uniform.name)) { - value = NativePostProcessing.getValue(index, uniform.name, component) - } - - val steps = uniform.steps - val step = Math.round((value - uniform.min) / uniform.step) - - addStepSlider( - title, - container, - steps, - step, - { position -> uniform.describe(position) }, - { emulationFragment.persistPostProcessing() } - ) { position -> - NativePostProcessing.setValue( - index, - uniform.name, - component, - uniform.min + position * uniform.step - ) - } - } - } - - private fun addFrameGenCell(inflater: LayoutInflater, row: ViewGroup): TextView { - val cell = inflater.inflate(R.layout.item_quick_settings_frame_gen_cell, row, false) - as TextView - row.addView(cell) - return cell - } - - fun addFrameGen(container: ViewGroup) { - val inflater = LayoutInflater.from(emulationFragment.requireContext()) - val itemView = inflater.inflate(R.layout.item_quick_settings_frame_gen, container, false) - - val multiplierRow = itemView.findViewById(R.id.frame_gen_multipliers) - val targetRow = itemView.findViewById(R.id.frame_gen_targets) - val targetSection = itemView.findViewById(R.id.frame_gen_target_section) - val flowRow = itemView.findViewById(R.id.frame_gen_flow) - val flowSection = itemView.findViewById(R.id.frame_gen_flow_section) - - val multiplierNames = - emulationFragment.resources.getStringArray(R.array.frameGenMultiplierNames) - val multiplierValues = - emulationFragment.resources.getIntArray(R.array.frameGenMultiplierValues) - val targetValues = - emulationFragment.resources.getIntArray(R.array.frameGenTargetRateValues) - val flowValues = - emulationFragment.resources.getIntArray(R.array.frameGenFlowScaleValues) - - val columns = maxOf( - multiplierValues.size + 1, - targetValues.size, - flowValues.size + 1 - ).toFloat() - multiplierRow.weightSum = columns - targetRow.weightSum = columns - flowRow.weightSum = columns - - val powerCell = addFrameGenCell(inflater, multiplierRow) - - val multiplierCells = mutableListOf() - for (name in multiplierNames) { - val cell = addFrameGenCell(inflater, multiplierRow) - cell.text = name - multiplierCells.add(cell) - } - - val targetCells = mutableListOf() - for (value in targetValues) { - val cell = addFrameGenCell(inflater, targetRow) - if (value == 0) { - cell.setText(R.string.frame_gen_fixed) - } else { - cell.text = value.toString() - } - targetCells.add(cell) - } - - val autoCell = addFrameGenCell(inflater, flowRow) - autoCell.setText(R.string.frame_gen_flow_auto) - - val flowCells = mutableListOf() - for (value in flowValues) { - val cell = addFrameGenCell(inflater, flowRow) - cell.text = "$value%" - flowCells.add(cell) - } - - val inactiveAlpha = 0.38f - - fun refresh() { - val enabled = BooleanSetting.RENDERER_FRAME_GEN.getBoolean(needsGlobal = false) - val multiplier = IntSetting.RENDERER_FRAME_GEN_MULTIPLIER.getInt(needsGlobal = false) - val target = IntSetting.RENDERER_FRAME_GEN_TARGET_RATE.getInt(needsGlobal = false) - val fixed = target == 0 - val flowAuto = - BooleanSetting.RENDERER_FRAME_GEN_FLOW_SCALE_AUTO.getBoolean(needsGlobal = false) - val flowScale = IntSetting.RENDERER_FRAME_GEN_FLOW_SCALE.getInt(needsGlobal = false) - - var powerLabel = R.string.frame_gen_off - var rowAlpha = inactiveAlpha - if (enabled) { - powerLabel = R.string.frame_gen_on - rowAlpha = 1.0f - } - - var multiplierAlpha = inactiveAlpha - if (enabled && fixed) { - multiplierAlpha = 1.0f - } - - powerCell.setText(powerLabel) - powerCell.isSelected = enabled - - multiplierCells.forEachIndexed { index, cell -> - cell.isEnabled = enabled - cell.isSelected = enabled && fixed && multiplierValues[index] == multiplier - cell.alpha = multiplierAlpha - } - - targetSection.alpha = rowAlpha - targetCells.forEachIndexed { index, cell -> - cell.isEnabled = enabled - cell.isSelected = enabled && targetValues[index] == target - } - - flowSection.alpha = rowAlpha - autoCell.isEnabled = enabled - autoCell.isSelected = enabled && flowAuto - - flowCells.forEachIndexed { index, cell -> - cell.isEnabled = enabled - cell.isSelected = enabled && !flowAuto && flowValues[index] == flowScale - } - } - - powerCell.setOnClickListener { - if (BooleanSetting.RENDERER_FRAME_GEN.getBoolean(needsGlobal = false)) { - BooleanSetting.RENDERER_FRAME_GEN.setBoolean(false) - } else { - IntSetting.RENDERER_FRAME_GEN_MULTIPLIER.setInt(multiplierValues.first()) - IntSetting.RENDERER_FRAME_GEN_TARGET_RATE.setInt(0) - BooleanSetting.RENDERER_FRAME_GEN.setBoolean(true) - } - saveSettings() - refresh() - } - - multiplierCells.forEachIndexed { index, cell -> - cell.setOnClickListener { - IntSetting.RENDERER_FRAME_GEN_MULTIPLIER.setInt(multiplierValues[index]) - IntSetting.RENDERER_FRAME_GEN_TARGET_RATE.setInt(0) - saveSettings() - refresh() - } - } - - targetCells.forEachIndexed { index, cell -> - cell.setOnClickListener { - IntSetting.RENDERER_FRAME_GEN_TARGET_RATE.setInt(targetValues[index]) - saveSettings() - refresh() - } - } - - autoCell.setOnClickListener { - BooleanSetting.RENDERER_FRAME_GEN_FLOW_SCALE_AUTO.setBoolean(true) - saveSettings() - refresh() - } - - flowCells.forEachIndexed { index, cell -> - cell.setOnClickListener { - IntSetting.RENDERER_FRAME_GEN_FLOW_SCALE.setInt(flowValues[index]) - BooleanSetting.RENDERER_FRAME_GEN_FLOW_SCALE_AUTO.setBoolean(false) - saveSettings() - refresh() - } - } - - refresh() - container.addView(itemView) - } - fun addDivider(container: ViewGroup) { val inflater = LayoutInflater.from(emulationFragment.requireContext()) val dividerView = inflater.inflate(R.layout.item_quick_settings_divider, container, false) diff --git a/src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/model/BooleanSetting.kt b/src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/model/BooleanSetting.kt index 6c33fc7812..5eaaaaecac 100644 --- a/src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/model/BooleanSetting.kt +++ b/src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/model/BooleanSetting.kt @@ -25,10 +25,12 @@ enum class BooleanSetting(override val key: String) : AbstractBooleanSetting { RENDERER_USE_DISK_SHADER_CACHE("use_disk_shader_cache"), RENDERER_FORCE_MAX_CLOCK("force_max_clock"), RENDERER_ASYNCHRONOUS_GPU_EMULATION("use_asynchronous_gpu_emulation"), + RENDERER_ASYNC_PRESENTATION("async_presentation"), RENDERER_ASYNCHRONOUS_SHADERS("use_asynchronous_shaders"), RENDERER_REACTIVE_FLUSHING("use_reactive_flushing"), ENABLE_BUFFER_HISTORY("enable_buffer_history"), USE_OPTIMIZED_VERTEX_BUFFERS("use_optimized_vertex_buffers"), + ENABLE_GPU_BUFFER_READBACK("enable_gpu_buffer_readback"), SYNC_MEMORY_OPERATIONS("sync_memory_operations"), BUFFER_REORDER_DISABLE("disable_buffer_reorder"), RENDERER_DEBUG("debug"), @@ -36,7 +38,9 @@ enum class BooleanSetting(override val key: String) : AbstractBooleanSetting { RENDERER_VERTEX_INPUT_DYNAMIC_STATE("vertex_input_dynamic_state"), RENDERER_SAMPLE_SHADING("sample_shading"), RENDERER_FRAME_GEN("frame_gen"), + RENDERER_FRAME_GEN_FP16("frame_gen_fp16"), RENDERER_FRAME_GEN_FLOW_SCALE_AUTO("frame_gen_flow_scale_auto"), + RENDERER_FRAME_GEN_DUMP_FLOW("frame_gen_dump_flow"), GPU_UNSWIZZLE_ENABLED("gpu_unswizzle_enabled"), PICTURE_IN_PICTURE("picture_in_picture"), USE_CUSTOM_RTC("custom_rtc_enabled"), @@ -93,7 +97,7 @@ enum class BooleanSetting(override val key: String) : AbstractBooleanSetting { ENABLE_QUICK_SETTINGS("enable_quick_settings"); - //external fun isFrameSkippingEnabled(): Boolean +// external fun isFrameSkippingEnabled(): Boolean external fun isFrameInterpolationEnabled(): Boolean override fun getBoolean(needsGlobal: Boolean): Boolean = diff --git a/src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/model/FxPresetNameSetting.kt b/src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/model/FxPresetNameSetting.kt deleted file mode 100644 index 496cb5390a..0000000000 --- a/src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/model/FxPresetNameSetting.kt +++ /dev/null @@ -1,36 +0,0 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - -package org.yuzu.yuzu_emu.features.settings.model - -class FxPresetNameSetting(private val onNamed: (String) -> Unit) : AbstractStringSetting { - override val key: String - get() = "fx_preset_name" - - override val defaultValue: Any - get() = "" - - override val isRuntimeModifiable: Boolean - get() = true - - override val pairedSettingKey: String - get() = "" - - override val isSwitchable: Boolean - get() = false - - override val isSaveable: Boolean - get() = true - - override var global: Boolean - get() = true - set(_) {} - - override fun getString(needsGlobal: Boolean): String = "" - - override fun setString(value: String) = onNamed(value) - - override fun getValueAsString(needsGlobal: Boolean): String = "" - - override fun reset() {} -} diff --git a/src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/model/FxUniformSetting.kt b/src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/model/FxUniformSetting.kt deleted file mode 100644 index 23c7837e12..0000000000 --- a/src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/model/FxUniformSetting.kt +++ /dev/null @@ -1,67 +0,0 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - -package org.yuzu.yuzu_emu.features.settings.model - -import org.yuzu.yuzu_emu.utils.NativePostProcessing -import kotlin.math.roundToInt - -abstract class FxUniformSetting( - protected val index: Int, - protected val uniform: NativePostProcessing.Uniform, - protected val component: Int -) : AbstractSetting { - override val key: String - get() = "fx_${index}_${uniform.name}_$component" - - override val isRuntimeModifiable: Boolean - get() = true - - override val pairedSettingKey: String - get() = "" - - override val isSwitchable: Boolean - get() = false - - override val isSaveable: Boolean - get() = true - - override var global: Boolean - get() = true - set(_) {} - - protected fun currentValue(): Float { - if (NativePostProcessing.hasValue(index, uniform.name)) { - return NativePostProcessing.getValue(index, uniform.name, component) - } - return uniform.defaultAt(component) - } - - protected fun commit(value: Float) { - NativePostProcessing.setValue(index, uniform.name, component, value) - NativePostProcessing.store() - } - - override fun reset() = commit(uniform.defaultAt(component)) -} - -class FxUniformSliderSetting( - index: Int, - uniform: NativePostProcessing.Uniform, - component: Int -) : FxUniformSetting(index, uniform, component), AbstractIntSetting { - override val defaultValue: Any - get() = ((uniform.defaultAt(component) - uniform.min) / uniform.step).roundToInt() - - override fun getInt(needsGlobal: Boolean): Int = - ((currentValue() - uniform.min) / uniform.step).roundToInt() - - override fun setInt(value: Int) = commit(uniform.min + value * uniform.step) - - override fun getValueAsString(needsGlobal: Boolean): String { - if (uniform.kind == NativePostProcessing.KIND_FLOAT) { - return String.format("%.3f", currentValue()) - } - return currentValue().roundToInt().toString() - } -} diff --git a/src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/model/Settings.kt b/src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/model/Settings.kt index 23c5ceb88b..fc4df4952d 100644 --- a/src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/model/Settings.kt +++ b/src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/model/Settings.kt @@ -12,7 +12,6 @@ object Settings { SECTION_SYSTEM(R.string.preferences_system), SECTION_RENDERER(R.string.preferences_graphics), SECTION_FRAME_GEN(R.string.frame_gen), - SECTION_POST_PROCESSING(R.string.post_processing), SECTION_PERFORMANCE_STATS(R.string.stats_overlay_options), SECTION_INPUT_OVERLAY(R.string.input_overlay_options), SECTION_SOC_OVERLAY(R.string.soc_overlay_options), diff --git a/src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/model/StringSetting.kt b/src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/model/StringSetting.kt index e3ccf9e998..43fb1fe0fe 100644 --- a/src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/model/StringSetting.kt +++ b/src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/model/StringSetting.kt @@ -13,7 +13,6 @@ enum class StringSetting(override val key: String) : AbstractStringSetting { DEVICE_NAME("device_name"), LOG_FILTER("log_filter"), PROGRAM_ARGS("program_args"), - POST_SHADER_CHAIN("post_shader_chain"), WEB_TOKEN("eden_token"), WEB_USERNAME("eden_username") diff --git a/src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/model/view/FxButtonSetting.kt b/src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/model/view/FxButtonSetting.kt deleted file mode 100644 index 3fc999e267..0000000000 --- a/src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/model/view/FxButtonSetting.kt +++ /dev/null @@ -1,13 +0,0 @@ -// 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.StringRes - -class FxButtonSetting( - @StringRes titleId: Int, - val onClick: () -> Unit -) : SettingsItem(emptySetting, titleId, "", 0, "") { - override val type = TYPE_FX_BUTTON -} diff --git a/src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/model/view/FxPresetSetting.kt b/src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/model/view/FxPresetSetting.kt deleted file mode 100644 index 9873b1c396..0000000000 --- a/src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/model/view/FxPresetSetting.kt +++ /dev/null @@ -1,14 +0,0 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - -package org.yuzu.yuzu_emu.features.settings.model.view - -class FxPresetSetting( - titleString: String, - descriptionString: String = "", - val deletable: Boolean = false, - val onApply: () -> Unit, - val onDelete: () -> Unit = {} -) : SettingsItem(emptySetting, 0, titleString, 0, descriptionString) { - override val type = TYPE_FX_PRESET -} diff --git a/src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/model/view/FxShaderCardSetting.kt b/src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/model/view/FxShaderCardSetting.kt deleted file mode 100644 index e54ac3b5a0..0000000000 --- a/src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/model/view/FxShaderCardSetting.kt +++ /dev/null @@ -1,19 +0,0 @@ -// 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 org.yuzu.yuzu_emu.utils.NativePostProcessing - -class FxShaderCardSetting( - titleString: String, - descriptionString: String, - val index: Int, - val expanded: Boolean, - val uniforms: List, - val onToggle: () -> Unit, - val onRemove: () -> Unit, - val onReset: () -> Unit -) : SettingsItem(emptySetting, 0, titleString, 0, descriptionString) { - override val type = TYPE_FX_SHADER -} diff --git a/src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/model/view/FxToolbarSetting.kt b/src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/model/view/FxToolbarSetting.kt deleted file mode 100644 index e62b0b914b..0000000000 --- a/src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/model/view/FxToolbarSetting.kt +++ /dev/null @@ -1,19 +0,0 @@ -// 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.StringRes - -class FxToolbarSetting( - @StringRes val addLabelId: Int, - val listOpen: Boolean, - val presetLabel: String, - val hasEffects: Boolean, - val createPreset: StringInputSetting, - val onAdd: () -> Unit, - val onPresets: () -> Unit, - val onRemoveAll: () -> Unit -) : SettingsItem(emptySetting, 0, "", 0, "") { - override val type = TYPE_FX_TOOLBAR -} diff --git a/src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/model/view/SettingsItem.kt b/src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/model/view/SettingsItem.kt index f968a0ae18..30d784267a 100644 --- a/src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/model/view/SettingsItem.kt +++ b/src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/model/view/SettingsItem.kt @@ -123,7 +123,9 @@ abstract class SettingsItem( IntSetting.RENDERER_FRAME_GEN_TARGET_RATE.key, IntSetting.RENDERER_FRAME_GEN_QUEUE_TARGET.key, BooleanSetting.RENDERER_FRAME_GEN_FLOW_SCALE_AUTO.key, - IntSetting.RENDERER_FRAME_GEN_FLOW_SCALE.key + IntSetting.RENDERER_FRAME_GEN_FLOW_SCALE.key, + BooleanSetting.RENDERER_FRAME_GEN_FP16.key, + BooleanSetting.RENDERER_FRAME_GEN_DUMP_FLOW.key ) const val TYPE_HEADER = 0 @@ -142,10 +144,6 @@ abstract class SettingsItem( const val TYPE_LAUNCHABLE = 13 const val TYPE_PATH = 14 const val TYPE_GPU_UNSWIZZLE = 15 - const val TYPE_FX_TOOLBAR = 16 - const val TYPE_FX_PRESET = 17 - const val TYPE_FX_SHADER = 18 - const val TYPE_FX_BUTTON = 19 const val FASTMEM_COMBINED = "fastmem_combined" const val GPU_UNSWIZZLE_COMBINED = "gpu_unswizzle_combined" @@ -707,6 +705,20 @@ abstract class SettingsItem( units = "%" ) ) + put( + SwitchSetting( + BooleanSetting.RENDERER_FRAME_GEN_FP16, + titleId = R.string.frame_gen_fp16, + descriptionId = R.string.frame_gen_fp16_description + ) + ) + put( + SwitchSetting( + BooleanSetting.RENDERER_FRAME_GEN_DUMP_FLOW, + titleId = R.string.frame_gen_dump_flow, + descriptionId = R.string.frame_gen_dump_flow_description + ) + ) put( SingleChoiceSetting( IntSetting.RENDERER_SCREEN_LAYOUT, @@ -753,6 +765,13 @@ abstract class SettingsItem( descriptionId = R.string.renderer_asynchronous_gpu_emulation_description ) ) + put( + SwitchSetting( + BooleanSetting.RENDERER_ASYNC_PRESENTATION, + titleId = R.string.renderer_async_presentation, + descriptionId = R.string.renderer_async_presentation_description + ) + ) put( SingleChoiceSetting( IntSetting.DMA_ACCURACY, @@ -901,6 +920,13 @@ abstract class SettingsItem( descriptionId = R.string.enable_buffer_history_description ) ) + put( + SwitchSetting( + BooleanSetting.ENABLE_GPU_BUFFER_READBACK, + titleId = R.string.enable_gpu_buffer_readback, + descriptionId = R.string.enable_gpu_buffer_readback_description + ) + ) put( SwitchSetting( BooleanSetting.USE_OPTIMIZED_VERTEX_BUFFERS, diff --git a/src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/ui/SettingsAdapter.kt b/src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/ui/SettingsAdapter.kt index 8d47db94e0..d7311eded5 100644 --- a/src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/ui/SettingsAdapter.kt +++ b/src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/ui/SettingsAdapter.kt @@ -23,10 +23,6 @@ import com.google.android.material.timepicker.TimeFormat import org.yuzu.yuzu_emu.R import org.yuzu.yuzu_emu.SettingsNavigationDirections import org.yuzu.yuzu_emu.databinding.ListItemSettingBinding -import org.yuzu.yuzu_emu.databinding.ListItemSettingFxButtonBinding -import org.yuzu.yuzu_emu.databinding.ListItemSettingFxPresetBinding -import org.yuzu.yuzu_emu.databinding.ListItemSettingFxShaderBinding -import org.yuzu.yuzu_emu.databinding.ListItemSettingFxToolbarBinding import org.yuzu.yuzu_emu.databinding.ListItemSettingInputBinding import org.yuzu.yuzu_emu.databinding.ListItemSettingSwitchBinding import org.yuzu.yuzu_emu.databinding.ListItemSettingsHeaderBinding @@ -110,34 +106,6 @@ class SettingsAdapter( GpuUnswizzleViewHolder(ListItemSettingBinding.inflate(inflater), this) } - SettingsItem.TYPE_FX_TOOLBAR -> { - FxToolbarViewHolder( - ListItemSettingFxToolbarBinding.inflate(inflater, parent, false), - this - ) - } - - SettingsItem.TYPE_FX_PRESET -> { - FxPresetViewHolder( - ListItemSettingFxPresetBinding.inflate(inflater, parent, false), - this - ) - } - - SettingsItem.TYPE_FX_SHADER -> { - FxShaderCardViewHolder( - ListItemSettingFxShaderBinding.inflate(inflater, parent, false), - this - ) - } - - SettingsItem.TYPE_FX_BUTTON -> { - FxButtonViewHolder( - ListItemSettingFxButtonBinding.inflate(inflater, parent, false), - this - ) - } - else -> { HeaderViewHolder(ListItemSettingsHeaderBinding.inflate(inflater), this) } diff --git a/src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/ui/SettingsFragmentPresenter.kt b/src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/ui/SettingsFragmentPresenter.kt index 824a54181e..bdb10c3146 100644 --- a/src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/ui/SettingsFragmentPresenter.kt +++ b/src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/ui/SettingsFragmentPresenter.kt @@ -18,7 +18,6 @@ import org.yuzu.yuzu_emu.features.input.model.NpadStyleIndex import org.yuzu.yuzu_emu.features.settings.model.AbstractBooleanSetting import org.yuzu.yuzu_emu.features.settings.model.AbstractIntSetting import org.yuzu.yuzu_emu.features.settings.model.BooleanSetting -import org.yuzu.yuzu_emu.features.settings.model.FxPresetNameSetting import org.yuzu.yuzu_emu.features.settings.model.ByteSetting import org.yuzu.yuzu_emu.features.settings.model.IntSetting import org.yuzu.yuzu_emu.features.settings.model.LongSetting @@ -31,7 +30,6 @@ import org.yuzu.yuzu_emu.features.settings.model.view.* import org.yuzu.yuzu_emu.utils.InputHandler import org.yuzu.yuzu_emu.utils.LosslessScalingHelper import org.yuzu.yuzu_emu.utils.NativeConfig -import org.yuzu.yuzu_emu.utils.NativePostProcessing import org.yuzu.yuzu_emu.utils.DirectoryInitialization import org.yuzu.yuzu_emu.utils.FullscreenHelper import androidx.core.content.edit @@ -46,14 +44,6 @@ class SettingsFragmentPresenter( ) { private var settingsList = ArrayList() - private val expandedShaderSlots = mutableSetOf() - - private var shaderPickerOpen = false - - private var presetPickerOpen = false - - private var postProcessingSynced = false - private val context get() = YuzuApplication.appContext // Extension for altering settings list based on each setting's properties @@ -124,6 +114,7 @@ class SettingsFragmentPresenter( ) { add(IntSetting.RENDERER_FRAME_GEN_FLOW_SCALE.key) } + add(BooleanSetting.RENDERER_FRAME_GEN_FP16.key) } } @@ -172,7 +163,6 @@ class SettingsFragmentPresenter( MenuTag.SECTION_SYSTEM -> addSystemSettings(sl) MenuTag.SECTION_RENDERER -> addGraphicsSettings(sl) MenuTag.SECTION_FRAME_GEN -> addFrameGenSettings(sl) - MenuTag.SECTION_POST_PROCESSING -> addPostProcessingSettings(sl) MenuTag.SECTION_PERFORMANCE_STATS -> addPerformanceOverlaySettings(sl) MenuTag.SECTION_SOC_OVERLAY -> addSocOverlaySettings(sl) MenuTag.SECTION_INPUT_OVERLAY -> addInputOverlaySettings(sl) @@ -200,209 +190,6 @@ class SettingsFragmentPresenter( } } - private fun addPostProcessingSettings(sl: ArrayList) { - if (!postProcessingSynced) { - postProcessingSynced = true - NativePostProcessing.reload() - } - - val usable = NativePostProcessing.catalog().filter { it.valid } - - sl.apply { - if (usable.isEmpty()) { - add( - RunnableSetting( - titleId = R.string.post_processing_empty, - descriptionString = NativePostProcessing.getShaderDirectory(), - isRunnable = false - ) {} - ) - return@apply - } - - val labels = mutableListOf() - val summaries = mutableListOf() - val files = mutableListOf() - val techniques = mutableListOf() - for (effect in usable) { - for (technique in effect.techniques) { - if (effect.techniques.size == 1) { - labels.add(effect.label) - } else { - labels.add(effect.label + " \u00b7 " + technique) - } - summaries.add(effect.description) - files.add(effect.file) - techniques.add(technique) - } - } - - val chain = NativePostProcessing.chain() - val active = NativePostProcessing.getActivePreset() - - var addLabel = R.string.post_processing_add - if (chain.isNotEmpty()) { - addLabel = R.string.post_processing_open_list - } - if (shaderPickerOpen) { - addLabel = R.string.post_processing_close_list - } - - var presetLabel = context.getString(R.string.post_processing_presets) - if (active.isNotEmpty()) { - presetLabel = active - } - - val createPreset = StringInputSetting( - setting = FxPresetNameSetting { name -> - NativePostProcessing.savePreset(name, "") - settingsViewModel.setReloadListAndNotifyDataset(true) - }, - titleId = R.string.post_processing_preset_new, - descriptionId = R.string.post_processing_preset_new_description, - validator = { it != null && it.isNotBlank() && !it.contains('=') }, - errorId = R.string.post_processing_preset_name_invalid - ) - - add( - FxToolbarSetting( - addLabelId = addLabel, - listOpen = shaderPickerOpen, - presetLabel = presetLabel, - hasEffects = chain.isNotEmpty(), - createPreset = createPreset, - onAdd = { - shaderPickerOpen = !shaderPickerOpen - presetPickerOpen = false - settingsViewModel.setReloadListAndNotifyDataset(true) - }, - onPresets = { - presetPickerOpen = !presetPickerOpen - shaderPickerOpen = false - settingsViewModel.setReloadListAndNotifyDataset(true) - }, - onRemoveAll = { - NativePostProcessing.clearChain() - NativePostProcessing.clearPreset() - NativePostProcessing.store() - expandedShaderSlots.clear() - shaderPickerOpen = false - settingsViewModel.setReloadListAndNotifyDataset(true) - } - ) - ) - - if (shaderPickerOpen) { - for (choice in labels.indices) { - add( - RunnableSetting( - titleString = labels[choice], - descriptionString = summaries[choice], - isRunnable = true - ) { - NativePostProcessing.append(files[choice], techniques[choice]) - NativePostProcessing.store() - shaderPickerOpen = false - settingsViewModel.setReloadListAndNotifyDataset(true) - } - ) - } - } - - if (presetPickerOpen) { - add( - FxPresetSetting( - titleString = context.getString(R.string.post_processing_preset_none), - onApply = { - NativePostProcessing.clearPreset() - presetPickerOpen = false - settingsViewModel.setReloadListAndNotifyDataset(true) - } - ) - ) - for (preset in NativePostProcessing.presets()) { - add( - FxPresetSetting( - titleString = preset.name, - descriptionString = preset.description, - deletable = !preset.bundled, - onApply = { - NativePostProcessing.applyPreset(preset.name) - NativePostProcessing.store() - presetPickerOpen = false - expandedShaderSlots.clear() - settingsViewModel.setReloadListAndNotifyDataset(true) - }, - onDelete = { - NativePostProcessing.deletePreset(preset.name) - settingsViewModel.setReloadListAndNotifyDataset(true) - } - ) - ) - } - } - - if (active.isNotEmpty()) { - add( - FxButtonSetting(titleId = R.string.post_processing_preset_reset) { - NativePostProcessing.applyPreset(active) - NativePostProcessing.store() - expandedShaderSlots.clear() - settingsViewModel.setReloadListAndNotifyDataset(true) - } - ) - } - - for (index in chain.indices) { - val entry = chain[index] - val effect = usable.firstOrNull { it.file == entry.file } - - var header = entry.file - var summary = "" - var uniforms = emptyList() - if (effect != null) { - header = effect.label - if (effect.techniques.size > 1) { - header = effect.label + " \u00b7 " + entry.technique - } - summary = effect.description - uniforms = effect.uniforms - } - - val isOpen = expandedShaderSlots.contains(index) - - add( - FxShaderCardSetting( - titleString = header, - descriptionString = summary, - index = index, - expanded = isOpen, - uniforms = uniforms, - onToggle = { - if (isOpen) { - expandedShaderSlots.remove(index) - } else { - expandedShaderSlots.add(index) - } - settingsViewModel.setReloadListAndNotifyDataset(true) - }, - onRemove = { - NativePostProcessing.remove(index) - NativePostProcessing.store() - expandedShaderSlots.clear() - settingsViewModel.setReloadListAndNotifyDataset(true) - }, - onReset = { - NativePostProcessing.resetValues(index) - NativePostProcessing.store() - settingsViewModel.setReloadListAndNotifyDataset(true) - } - ) - ) - } - } - } - private fun addConfigSettings(sl: ArrayList) { sl.apply { add( @@ -549,6 +336,7 @@ class SettingsFragmentPresenter( add(BooleanSetting.RENDERER_FORCE_MAX_CLOCK.key) add(BooleanSetting.RENDERER_REACTIVE_FLUSHING.key) add(BooleanSetting.ENABLE_BUFFER_HISTORY.key) + add(BooleanSetting.ENABLE_GPU_BUFFER_READBACK.key) add(BooleanSetting.USE_OPTIMIZED_VERTEX_BUFFERS.key) add(HeaderSetting(R.string.hacks)) @@ -559,6 +347,7 @@ class SettingsFragmentPresenter( add(BooleanSetting.RENDERER_ASYNCHRONOUS_SHADERS.key) add(IntSetting.ANDROID_PIPELINE_WORKERS.key) add(BooleanSetting.RENDERER_ASYNCHRONOUS_GPU_EMULATION.key) + add(BooleanSetting.RENDERER_ASYNC_PRESENTATION.key) add(SettingsItem.GPU_UNSWIZZLE_COMBINED) add(HeaderSetting(R.string.extensions)) @@ -1550,6 +1339,7 @@ class SettingsFragmentPresenter( add(BooleanSetting.DUMP_GUEST_SHADERS.key) add(BooleanSetting.GPU_LOG_SHADER_DUMPS.key) add(BooleanSetting.DUMP_MACROS.key) + add(BooleanSetting.RENDERER_FRAME_GEN_DUMP_FLOW.key) add(BooleanSetting.GPU_LOG_MEMORY_TRACKING.key) add(BooleanSetting.GPU_LOG_DRIVER_DEBUG.key) add(IntSetting.GPU_LOG_RING_BUFFER_SIZE.key) diff --git a/src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/ui/viewholder/FxButtonViewHolder.kt b/src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/ui/viewholder/FxButtonViewHolder.kt deleted file mode 100644 index 914f96085a..0000000000 --- a/src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/ui/viewholder/FxButtonViewHolder.kt +++ /dev/null @@ -1,28 +0,0 @@ -// 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.databinding.ListItemSettingFxButtonBinding -import org.yuzu.yuzu_emu.features.settings.model.view.FxButtonSetting -import org.yuzu.yuzu_emu.features.settings.model.view.SettingsItem -import org.yuzu.yuzu_emu.features.settings.ui.SettingsAdapter - -class FxButtonViewHolder( - val binding: ListItemSettingFxButtonBinding, - adapter: SettingsAdapter -) : SettingViewHolder(binding.root, adapter) { - private lateinit var setting: FxButtonSetting - - override fun bind(item: SettingsItem) { - setting = item as FxButtonSetting - - binding.fxButton.text = item.title - binding.fxButton.setOnClickListener { setting.onClick.invoke() } - } - - override fun onClick(clicked: View) {} - - override fun onLongClick(clicked: View): Boolean = true -} diff --git a/src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/ui/viewholder/FxPresetViewHolder.kt b/src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/ui/viewholder/FxPresetViewHolder.kt deleted file mode 100644 index d8634c1002..0000000000 --- a/src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/ui/viewholder/FxPresetViewHolder.kt +++ /dev/null @@ -1,35 +0,0 @@ -// 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.databinding.ListItemSettingFxPresetBinding -import org.yuzu.yuzu_emu.features.settings.model.view.FxPresetSetting -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 FxPresetViewHolder( - val binding: ListItemSettingFxPresetBinding, - adapter: SettingsAdapter -) : SettingViewHolder(binding.root, adapter) { - private lateinit var setting: FxPresetSetting - - override fun bind(item: SettingsItem) { - setting = item as FxPresetSetting - - binding.presetName.text = item.title - binding.presetDescription.text = item.description - binding.presetDescription.setVisible(item.description.isNotEmpty()) - - binding.presetRow.setOnClickListener { setting.onApply.invoke() } - - binding.presetDelete.setVisible(setting.deletable) - binding.presetDelete.setOnClickListener { setting.onDelete.invoke() } - } - - override fun onClick(clicked: View) {} - - override fun onLongClick(clicked: View): Boolean = true -} diff --git a/src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/ui/viewholder/FxShaderCardViewHolder.kt b/src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/ui/viewholder/FxShaderCardViewHolder.kt deleted file mode 100644 index fc72f04225..0000000000 --- a/src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/ui/viewholder/FxShaderCardViewHolder.kt +++ /dev/null @@ -1,100 +0,0 @@ -// 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.LayoutInflater -import android.view.View -import org.yuzu.yuzu_emu.databinding.ItemSettingFxActionsBinding -import org.yuzu.yuzu_emu.databinding.ItemSettingFxSliderBinding -import org.yuzu.yuzu_emu.databinding.ListItemSettingFxShaderBinding -import org.yuzu.yuzu_emu.features.settings.model.FxUniformSliderSetting -import org.yuzu.yuzu_emu.features.settings.model.view.FxShaderCardSetting -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.NativePostProcessing -import org.yuzu.yuzu_emu.utils.ViewUtils.setVisible - -class FxShaderCardViewHolder( - val binding: ListItemSettingFxShaderBinding, - adapter: SettingsAdapter -) : SettingViewHolder(binding.root, adapter) { - private lateinit var setting: FxShaderCardSetting - - override fun bind(item: SettingsItem) { - setting = item as FxShaderCardSetting - - binding.shaderTitle.text = item.title - binding.shaderSummary.text = item.description - binding.shaderSummary.setVisible(item.description.isNotEmpty()) - - var rotation = 0f - if (setting.expanded) { - rotation = 180f - } - binding.shaderExpand.rotation = rotation - - binding.shaderHeader.setOnClickListener { setting.onToggle.invoke() } - binding.shaderRemove.setOnClickListener { setting.onRemove.invoke() } - - binding.shaderBody.removeAllViews() - binding.shaderBody.setVisible(setting.expanded) - if (!setting.expanded) { - return - } - - val inflater = LayoutInflater.from(binding.root.context) - for (uniform in setting.uniforms) { - if (uniform.uiType == NativePostProcessing.UI_HIDDEN) { - continue - } - for (component in 0 until uniform.components) { - addSlider(inflater, uniform, component) - } - } - addActions(inflater) - } - - private fun addSlider( - inflater: LayoutInflater, - uniform: NativePostProcessing.Uniform, - component: Int - ) { - val row = ItemSettingFxSliderBinding.inflate(inflater, binding.shaderBody, false) - val value = FxUniformSliderSetting(setting.index, uniform, component) - - var title = uniform.label - if (uniform.components > 1) { - title = uniform.label + " [" + component + "]" - } - row.fxSliderTitle.text = title - - val steps = uniform.steps.toFloat() - row.fxSlider.valueFrom = 0f - row.fxSlider.valueTo = steps - row.fxSlider.stepSize = 1f - row.fxSlider.value = value.getInt(false).toFloat().coerceIn(0f, steps) - row.fxSliderValue.text = uniform.describe(row.fxSlider.value.toInt()) - - row.fxSlider.addOnChangeListener { _, position, fromUser -> - if (fromUser) { - value.setInt(position.toInt()) - row.fxSliderValue.text = uniform.describe(position.toInt()) - } - } - - binding.shaderBody.addView(row.root) - } - - private fun addActions(inflater: LayoutInflater) { - val row = ItemSettingFxActionsBinding.inflate(inflater, binding.shaderBody, false) - - row.fxReset.setOnClickListener { setting.onReset.invoke() } - - binding.shaderBody.addView(row.root) - } - - override fun onClick(clicked: View) {} - - override fun onLongClick(clicked: View): Boolean = true -} diff --git a/src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/ui/viewholder/FxToolbarViewHolder.kt b/src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/ui/viewholder/FxToolbarViewHolder.kt deleted file mode 100644 index 21bad70040..0000000000 --- a/src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/ui/viewholder/FxToolbarViewHolder.kt +++ /dev/null @@ -1,57 +0,0 @@ -// 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.content.res.ColorStateList -import android.view.View -import com.google.android.material.color.MaterialColors -import org.yuzu.yuzu_emu.R -import org.yuzu.yuzu_emu.databinding.ListItemSettingFxToolbarBinding -import org.yuzu.yuzu_emu.features.settings.model.view.FxToolbarSetting -import org.yuzu.yuzu_emu.features.settings.model.view.SettingsItem -import org.yuzu.yuzu_emu.features.settings.ui.SettingsAdapter - -class FxToolbarViewHolder( - val binding: ListItemSettingFxToolbarBinding, - adapter: SettingsAdapter -) : SettingViewHolder(binding.root, adapter) { - private lateinit var setting: FxToolbarSetting - - override fun bind(item: SettingsItem) { - setting = item as FxToolbarSetting - - binding.fxAdd.setText(setting.addLabelId) - var addIcon = R.drawable.ic_add - if (setting.listOpen) { - addIcon = R.drawable.ic_clear - } - binding.fxAdd.setIconResource(addIcon) - binding.fxAdd.setOnClickListener { setting.onAdd.invoke() } - - binding.fxPresets.text = setting.presetLabel - binding.fxPresets.setOnClickListener { setting.onPresets.invoke() } - - binding.fxCreatePreset.isEnabled = setting.hasEffects - binding.fxCreatePreset.setOnClickListener { - adapter.onStringInputClick(setting.createPreset, bindingAdapterPosition) - } - - val removeBackground = MaterialColors.getColor( - binding.fxRemoveAll, - com.google.android.material.R.attr.colorErrorContainer - ) - val removeForeground = MaterialColors.getColor( - binding.fxRemoveAll, - com.google.android.material.R.attr.colorOnErrorContainer - ) - binding.fxRemoveAll.backgroundTintList = ColorStateList.valueOf(removeBackground) - binding.fxRemoveAll.iconTint = ColorStateList.valueOf(removeForeground) - binding.fxRemoveAll.isEnabled = setting.hasEffects - binding.fxRemoveAll.setOnClickListener { setting.onRemoveAll.invoke() } - } - - override fun onClick(clicked: View) {} - - override fun onLongClick(clicked: View): Boolean = true -} diff --git a/src/android/app/src/main/java/org/yuzu/yuzu_emu/fragments/EmulationFragment.kt b/src/android/app/src/main/java/org/yuzu/yuzu_emu/fragments/EmulationFragment.kt index 3323b3cf9a..016ac57356 100644 --- a/src/android/app/src/main/java/org/yuzu/yuzu_emu/fragments/EmulationFragment.kt +++ b/src/android/app/src/main/java/org/yuzu/yuzu_emu/fragments/EmulationFragment.kt @@ -92,10 +92,8 @@ import org.yuzu.yuzu_emu.utils.GameIconUtils import org.yuzu.yuzu_emu.utils.GpuDriverHelper import org.yuzu.yuzu_emu.utils.InputHandler import org.yuzu.yuzu_emu.utils.Log -import org.yuzu.yuzu_emu.utils.LosslessScalingHelper import org.yuzu.yuzu_emu.utils.NativeConfig import org.yuzu.yuzu_emu.utils.NativeFreedrenoConfig -import org.yuzu.yuzu_emu.utils.NativePostProcessing import org.yuzu.yuzu_emu.utils.ViewUtils import org.yuzu.yuzu_emu.utils.ViewUtils.setVisible import org.yuzu.yuzu_emu.utils.collect @@ -885,8 +883,6 @@ class EmulationFragment : Fragment(), SurfaceHolder.Callback { if (shouldUseCustom) { SettingsFile.loadCustomConfig(game!!) } - refreshPostProcessing() - addQuickSettings() } } @@ -1091,34 +1087,6 @@ class EmulationFragment : Fragment(), SurfaceHolder.Callback { } } - private fun withPerGameConfig(create: Boolean, action: () -> Unit) { - val target = game - var owned = false - if (target != null && !NativeConfig.isPerGameConfigLoaded()) { - if (create || SettingsFile.getCustomSettingsFile(target).exists()) { - SettingsFile.loadCustomConfig(target) - owned = true - } - } - action() - if (owned) { - NativeConfig.unloadPerGameConfig() - } - } - - fun refreshPostProcessing() = withPerGameConfig(false) { - NativePostProcessing.reload() - } - - fun persistPostProcessing() = withPerGameConfig(true) { - NativePostProcessing.persist() - } - - fun editPostProcessing(action: () -> Unit) = withPerGameConfig(true) { - action() - NativePostProcessing.persist() - } - private fun addQuickSettings() { binding.quickSettingsSheet.apply { val container = binding.quickSettingsSheet.findViewById(R.id.quick_settings_container) @@ -1189,11 +1157,6 @@ class EmulationFragment : Fragment(), SurfaceHolder.Callback { quickSettings.addDivider(container) - if (LosslessScalingHelper.isInstalled() && LosslessScalingHelper.isSupportedByGpu()) { - quickSettings.addFrameGen(container) - quickSettings.addDivider(container) - } - quickSettings.addIntSetting( R.string.renderer_accuracy, container, @@ -1231,10 +1194,6 @@ class EmulationFragment : Fragment(), SurfaceHolder.Callback { R.array.rendererAntiAliasingNames, R.array.rendererAntiAliasingValues ) - - quickSettings.addPostProcessing(container) { - addQuickSettings() - } } } diff --git a/src/android/app/src/main/java/org/yuzu/yuzu_emu/fragments/GamePropertiesFragment.kt b/src/android/app/src/main/java/org/yuzu/yuzu_emu/fragments/GamePropertiesFragment.kt index d2505c5f61..a2d6563e50 100644 --- a/src/android/app/src/main/java/org/yuzu/yuzu_emu/fragments/GamePropertiesFragment.kt +++ b/src/android/app/src/main/java/org/yuzu/yuzu_emu/fragments/GamePropertiesFragment.kt @@ -383,20 +383,6 @@ class GamePropertiesFragment : Fragment() { } ) ) - add( - SubmenuProperty( - R.string.post_processing, - R.string.post_processing_per_game_description, - R.drawable.ic_post_processing, - action = { - val action = HomeNavigationDirections.actionGlobalSettingsActivity( - args.game, - Settings.MenuTag.SECTION_POST_PROCESSING - ) - binding.root.findNavController().navigate(action) - } - ) - ) if (GpuDriverHelper.isAdrenoGpu()) { add( diff --git a/src/android/app/src/main/java/org/yuzu/yuzu_emu/fragments/HomeSettingsFragment.kt b/src/android/app/src/main/java/org/yuzu/yuzu_emu/fragments/HomeSettingsFragment.kt index 2b4cfc5ca8..bd4d8465f3 100644 --- a/src/android/app/src/main/java/org/yuzu/yuzu_emu/fragments/HomeSettingsFragment.kt +++ b/src/android/app/src/main/java/org/yuzu/yuzu_emu/fragments/HomeSettingsFragment.kt @@ -171,20 +171,6 @@ class HomeSettingsFragment : Fragment() { ) ) } - add( - HomeSetting( - R.string.post_processing, - R.string.post_processing_description, - R.drawable.ic_post_processing, - { - val action = HomeNavigationDirections.actionGlobalSettingsActivity( - null, - Settings.MenuTag.SECTION_POST_PROCESSING - ) - binding.root.findNavController().navigate(action) - } - ) - ) add( HomeSetting( R.string.lossless_scaling, diff --git a/src/android/app/src/main/java/org/yuzu/yuzu_emu/model/DriverViewModel.kt b/src/android/app/src/main/java/org/yuzu/yuzu_emu/model/DriverViewModel.kt index fe53a99e3e..41f03c2488 100644 --- a/src/android/app/src/main/java/org/yuzu/yuzu_emu/model/DriverViewModel.kt +++ b/src/android/app/src/main/java/org/yuzu/yuzu_emu/model/DriverViewModel.kt @@ -23,7 +23,6 @@ import org.yuzu.yuzu_emu.model.Driver.Companion.toDriver import org.yuzu.yuzu_emu.utils.GpuDriverHelper import org.yuzu.yuzu_emu.NativeLibrary import org.yuzu.yuzu_emu.utils.GpuDriverMetadata -import org.yuzu.yuzu_emu.utils.DirectoryInitialization import org.yuzu.yuzu_emu.utils.NativeConfig import java.io.File @@ -147,11 +146,11 @@ class DriverViewModel : ViewModel() { private fun wipeGameShaders(game: Game) { viewModelScope.launch { withContext(Dispatchers.IO) { - val userDirectory = DirectoryInitialization.userDirectory + val externalFilesDir = YuzuApplication.appContext.getExternalFilesDir(null) ?: return@withContext val shaderDir = File( - userDirectory + - "/cache/shader/" + game.settingsName.lowercase() + externalFilesDir.absolutePath + + "/shader/" + game.settingsName.lowercase() ) if (shaderDir.exists()) { shaderDir.deleteRecursively() diff --git a/src/android/app/src/main/java/org/yuzu/yuzu_emu/model/Game.kt b/src/android/app/src/main/java/org/yuzu/yuzu_emu/model/Game.kt index f5f0cda0e9..799708dfa7 100644 --- a/src/android/app/src/main/java/org/yuzu/yuzu_emu/model/Game.kt +++ b/src/android/app/src/main/java/org/yuzu/yuzu_emu/model/Game.kt @@ -1,4 +1,4 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project +// SPDX-FileCopyrightText: Copyright 2025 Eden Emulator Project // SPDX-License-Identifier: GPL-3.0-or-later // SPDX-FileCopyrightText: 2023 yuzu Emulator Project @@ -37,7 +37,7 @@ class Game( val settingsName: String get() { - val programIdLong = programId.toLongOrNull() ?: 0L + val programIdLong = programId.toLong() return if (programIdLong == 0L) { FileUtil.getFilename(Uri.parse(path)) } else { @@ -47,7 +47,7 @@ class Game( val programIdHex: String get() { - val programIdLong = programId.toLongOrNull() ?: 0L + val programIdLong = programId.toLong() return if (programIdLong == 0L) { "0" } else { @@ -100,7 +100,7 @@ class Game( companion object { val extensions: Set = HashSet( - listOf("xci", "nsp", "nca", "nro", "nsz", "xcz") + listOf("xci", "nsp", "nca", "nro") ) } } diff --git a/src/android/app/src/main/java/org/yuzu/yuzu_emu/utils/GameHelper.kt b/src/android/app/src/main/java/org/yuzu/yuzu_emu/utils/GameHelper.kt index bb2337a310..411b764e36 100644 --- a/src/android/app/src/main/java/org/yuzu/yuzu_emu/utils/GameHelper.kt +++ b/src/android/app/src/main/java/org/yuzu/yuzu_emu/utils/GameHelper.kt @@ -109,7 +109,7 @@ object GameHelper { // File extensions considered as external content, buuut should // be done better imo. - private val externalContentExtensions = setOf("nsp", "xci", "nsz", "xcz") + private val externalContentExtensions = setOf("nsp", "xci") private fun scanContentContainersRecursive( files: Array, diff --git a/src/android/app/src/main/java/org/yuzu/yuzu_emu/utils/NativePostProcessing.kt b/src/android/app/src/main/java/org/yuzu/yuzu_emu/utils/NativePostProcessing.kt deleted file mode 100644 index 2c04900064..0000000000 --- a/src/android/app/src/main/java/org/yuzu/yuzu_emu/utils/NativePostProcessing.kt +++ /dev/null @@ -1,242 +0,0 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - -package org.yuzu.yuzu_emu.utils - -import org.json.JSONArray -import org.json.JSONObject - -object NativePostProcessing { - const val KIND_BOOL = 0 - const val KIND_INT = 1 - const val KIND_FLOAT = 2 - - const val UI_HIDDEN = 0 - const val UI_SLIDER = 1 - const val UI_DRAG = 2 - const val UI_COMBO = 3 - const val UI_RADIO = 4 - const val UI_CHECKBOX = 5 - const val UI_COLOR = 6 - const val UI_INPUT_BOX = 7 - - external fun getCatalogJson(): String - - external fun getChainJson(): String - - external fun append(file: String, technique: String) - - external fun replace(index: Int, file: String, technique: String) - - external fun remove(index: Int) - - external fun move(index: Int, delta: Int) - - external fun resetValues(index: Int) - - external fun getValue(index: Int, uniform: String, component: Int): Float - - external fun hasValue(index: Int, uniform: String): Boolean - - external fun setValue(index: Int, uniform: String, component: Int, value: Float) - - external fun store() - - external fun reload() - - external fun clearChain() - - external fun getPresetsJson(): String - - external fun getActivePreset(): String - - external fun isPresetModified(): Boolean - - external fun applyPreset(name: String): Boolean - - external fun savePreset(name: String, description: String): Boolean - - external fun deletePreset(name: String): Boolean - - external fun clearPreset() - - external fun isEnabled(): Boolean - - external fun setEnabled(enabled: Boolean) - - external fun getPresetDirectory(): String - - fun persist() { - val perGame = NativeConfig.isPerGameConfigLoaded() - store() - if (perGame) { - NativeConfig.savePerGameConfig() - } else { - NativeConfig.saveGlobalConfig() - } - } - - - external fun getShaderDirectory(): String - - data class Uniform( - val name: String, - val label: String, - val tooltip: String, - val category: String, - val kind: Int, - val uiType: Int, - val components: Int, - val min: Float, - val max: Float, - val step: Float, - val items: List, - val defaults: List - ) { - val steps: Int - get() { - val span = max - min - if (step <= 0f) { - return 1 - } - val count = Math.round(span / step) - if (count < 1) { - return 1 - } - return count - } - - fun describe(position: Int): String { - val value = min + position * step - if (kind == NativePostProcessing.KIND_FLOAT) { - return String.format("%.3f", value) - } - return Math.round(value).toString() - } - - fun defaultAt(component: Int): Float { - if (component < defaults.size) { - return defaults[component] - } - return 0f - } - } - - data class Effect( - val file: String, - val name: String, - val label: String, - val description: String, - val error: String, - val techniques: List, - val uniforms: List - ) { - val valid: Boolean - get() = error.isEmpty() && techniques.isNotEmpty() - } - - data class ChainEntry(val file: String, val technique: String) - - data class Preset( - val name: String, - val description: String, - val bundled: Boolean - ) - - fun presets(): List { - val out = mutableListOf() - val array = JSONArray(getPresetsJson()) - for (i in 0 until array.length()) { - val obj = array.getJSONObject(i) - out.add( - Preset( - name = obj.optString("name"), - description = obj.optString("description"), - bundled = obj.optBoolean("bundled") - ) - ) - } - return out - } - - fun catalog(): List { - val out = mutableListOf() - val array = JSONArray(getCatalogJson()) - for (i in 0 until array.length()) { - val obj = array.getJSONObject(i) - out.add( - Effect( - file = obj.optString("file"), - name = obj.optString("name"), - label = obj.optString("label"), - description = obj.optString("description"), - error = obj.optString("error"), - techniques = obj.optJSONArray("techniques").toStringList(), - uniforms = obj.optJSONArray("uniforms").toUniformList() - ) - ) - } - return out - } - - fun chain(): List { - val out = mutableListOf() - val array = JSONArray(getChainJson()) - for (i in 0 until array.length()) { - val obj = array.getJSONObject(i) - out.add(ChainEntry(obj.optString("file"), obj.optString("technique"))) - } - return out - } - - fun findEffect(file: String): Effect? = catalog().firstOrNull { it.file == file } - - private fun JSONArray?.toStringList(): List { - if (this == null) { - return emptyList() - } - val out = mutableListOf() - for (i in 0 until length()) { - out.add(optString(i)) - } - return out - } - - private fun JSONArray?.toFloatList(): List { - if (this == null) { - return emptyList() - } - val out = mutableListOf() - for (i in 0 until length()) { - out.add(optDouble(i, 0.0).toFloat()) - } - return out - } - - private fun JSONArray?.toUniformList(): List { - if (this == null) { - return emptyList() - } - val out = mutableListOf() - for (i in 0 until length()) { - val obj: JSONObject = optJSONObject(i) ?: continue - out.add( - Uniform( - name = obj.optString("name"), - label = obj.optString("label"), - tooltip = obj.optString("tooltip"), - category = obj.optString("category"), - kind = obj.optInt("kind", KIND_FLOAT), - uiType = obj.optInt("uiType", UI_HIDDEN), - components = obj.optInt("components", 1), - min = obj.optDouble("min", 0.0).toFloat(), - max = obj.optDouble("max", 1.0).toFloat(), - step = obj.optDouble("step", 0.01).toFloat(), - items = obj.optJSONArray("items").toStringList(), - defaults = obj.optJSONArray("defaults").toFloatList() - ) - ) - } - return out - } -} diff --git a/src/android/app/src/main/jni/CMakeLists.txt b/src/android/app/src/main/jni/CMakeLists.txt index 337d9fea1b..86c05d7c0d 100644 --- a/src/android/app/src/main/jni/CMakeLists.txt +++ b/src/android/app/src/main/jni/CMakeLists.txt @@ -17,7 +17,6 @@ add_library(yuzu-android SHARED android_config.cpp android_config.h native_input.cpp - native_post_processing.cpp ) set_property(TARGET yuzu-android PROPERTY IMPORTED_LOCATION ${FFmpeg_LIBRARY_DIR}) diff --git a/src/android/app/src/main/jni/game_metadata.cpp b/src/android/app/src/main/jni/game_metadata.cpp index 9b6cd44e9f..49d92bca75 100644 --- a/src/android/app/src/main/jni/game_metadata.cpp +++ b/src/android/app/src/main/jni/game_metadata.cpp @@ -76,9 +76,7 @@ jboolean Java_org_yuzu_yuzu_1emu_utils_GameMetadata_getIsValid(JNIEnv* env, jobj auto const file_type = loader->GetFileType(); if (file_type == Loader::FileType::Unknown || file_type == Loader::FileType::Error) return false; - if ((file_type == Loader::FileType::NSP || file_type == Loader::FileType::XCI || - file_type == Loader::FileType::NSZ || file_type == Loader::FileType::XCZ) && - !Loader::IsBootableGameContainer(file, file_type)) + if ((file_type == Loader::FileType::NSP || file_type == Loader::FileType::XCI) && !Loader::IsBootableGameContainer(file, file_type)) return false; u64 program_id = 0; return loader->ReadProgramId(program_id) == Loader::ResultStatus::Success; diff --git a/src/android/app/src/main/jni/native.cpp b/src/android/app/src/main/jni/native.cpp index d4f7689934..423edc2c1b 100644 --- a/src/android/app/src/main/jni/native.cpp +++ b/src/android/app/src/main/jni/native.cpp @@ -788,7 +788,7 @@ int Java_org_yuzu_yuzu_1emu_NativeLibrary_installFileToNand(JNIEnv* env, jobject jboolean Java_org_yuzu_yuzu_1emu_NativeLibrary_doesUpdateMatchProgram(JNIEnv* env, jobject jobj, jstring jprogramId, jstring jupdatePath) { - const u64 program_id = FileSys::GetBaseTitleID(EmulationSession::GetProgramId(env, jprogramId)); + u64 program_id = EmulationSession::GetProgramId(env, jprogramId); std::string updatePath = Common::Android::GetJString(env, jupdatePath); std::shared_ptr nsp = std::make_shared( EmulationSession::GetInstance().System().GetFilesystem()->OpenFile( @@ -796,7 +796,7 @@ jboolean Java_org_yuzu_yuzu_1emu_NativeLibrary_doesUpdateMatchProgram(JNIEnv* en for (const auto& item : nsp->GetNCAs()) { for (const auto& nca_details : item.second) { if (nca_details.second->GetName().ends_with(".cnmt.nca")) { - const auto update_id = FileSys::GetBaseTitleID(nca_details.second->GetTitleId()); + auto update_id = nca_details.second->GetTitleId() & ~0xFFFULL; if (update_id == program_id) { return true; } @@ -1168,7 +1168,7 @@ VkPhysicalDeviceProperties GetVulkanDeviceProperties() { return physical_device.GetProperties(); } -bool GetFrameGenerationSupport() { +bool GetVulkanMemoryModelSupport() { Common::DynamicLibrary library; if (!library.Open("libvulkan.so")) { return false; @@ -1183,13 +1183,9 @@ bool GetFrameGenerationSupport() { const Vulkan::vk::PhysicalDevice physical_device(physical_devices[0], dld); - VkPhysicalDeviceShaderFloat16Int8Features float16_int8{ - .sType = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_FLOAT16_INT8_FEATURES, - .pNext = nullptr, - }; VkPhysicalDeviceVulkanMemoryModelFeatures memory_model{ .sType = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_VULKAN_MEMORY_MODEL_FEATURES, - .pNext = &float16_int8, + .pNext = nullptr, }; VkPhysicalDeviceFeatures2 features{ .sType = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_FEATURES_2, @@ -1197,7 +1193,7 @@ bool GetFrameGenerationSupport() { }; physical_device.GetFeatures2(features); - return memory_model.vulkanMemoryModel == VK_TRUE && float16_int8.shaderFloat16 == VK_TRUE; + return memory_model.vulkanMemoryModel == VK_TRUE; } } // namespace @@ -1276,7 +1272,7 @@ jstring Java_org_yuzu_yuzu_1emu_NativeLibrary_getVulkanApiVersion(JNIEnv* env, j jboolean Java_org_yuzu_yuzu_1emu_NativeLibrary_supportsFrameGeneration(JNIEnv* env, jobject jobj) { try { - return static_cast(GetFrameGenerationSupport()); + return static_cast(GetVulkanMemoryModelSupport()); } catch (...) { return static_cast(false); } diff --git a/src/android/app/src/main/jni/native_config.cpp b/src/android/app/src/main/jni/native_config.cpp index 1b8e343986..09a79ce4d7 100644 --- a/src/android/app/src/main/jni/native_config.cpp +++ b/src/android/app/src/main/jni/native_config.cpp @@ -15,22 +15,10 @@ #include "frontend_common/config.h" #include "frontend_common/settings_generator.h" #include "native.h" -#ifdef HAS_RESHADE -#include "video_core/post_processing/fx_chain.h" -#endif std::unique_ptr global_config; std::unique_ptr per_game_config; -#ifdef HAS_RESHADE -static void ResetFxChainToGlobal() { - VideoCore::UseGlobalFxSettings(); - VideoCore::FxChain::Instance().LoadFromSettings(); -} -#else -static void ResetFxChainToGlobal() {} -#endif - template Settings::Setting* getSetting(JNIEnv* env, jstring jkey) { auto key = Common::Android::GetJString(env, jkey); @@ -51,7 +39,6 @@ extern "C" { void Java_org_yuzu_yuzu_1emu_utils_NativeConfig_initializeGlobalConfig(JNIEnv* env, jobject obj) { global_config = std::make_unique(); FrontendCommon::GenerateSettings(); - ResetFxChainToGlobal(); } void Java_org_yuzu_yuzu_1emu_utils_NativeConfig_unloadGlobalConfig(JNIEnv* env, jobject obj) { @@ -60,7 +47,6 @@ void Java_org_yuzu_yuzu_1emu_utils_NativeConfig_unloadGlobalConfig(JNIEnv* env, void Java_org_yuzu_yuzu_1emu_utils_NativeConfig_reloadGlobalConfig(JNIEnv* env, jobject obj) { global_config->AndroidConfig::ReloadAllValues(); - ResetFxChainToGlobal(); } void Java_org_yuzu_yuzu_1emu_utils_NativeConfig_saveGlobalConfig(JNIEnv* env, jobject obj) { diff --git a/src/android/app/src/main/jni/native_post_processing.cpp b/src/android/app/src/main/jni/native_post_processing.cpp deleted file mode 100644 index 7fb04e7f9f..0000000000 --- a/src/android/app/src/main/jni/native_post_processing.cpp +++ /dev/null @@ -1,350 +0,0 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - -#include -#include -#include - -#include -#include - -#include "common/android/android_common.h" -#ifdef HAS_RESHADE -#include "android_config.h" -#include "video_core/post_processing/fx_chain.h" -#include "common/settings.h" -#include "video_core/post_processing/fx_effect.h" -#include "video_core/post_processing/fx_preset.h" - -extern std::unique_ptr per_game_config; -#endif - -namespace { - -#ifdef HAS_RESHADE -bool EditingPerGame() { - return per_game_config != nullptr; -} - -void BeginFxEdit() { - if (!EditingPerGame()) { - return; - } - VideoCore::UsePerGameFxSettings(); -} - -nlohmann::json SerializeUniform(const VideoCore::FxUniformDesc& uniform) { - nlohmann::json out; - out["name"] = uniform.name; - out["label"] = uniform.label; - out["tooltip"] = uniform.tooltip; - out["category"] = uniform.category; - out["kind"] = static_cast(uniform.kind); - out["uiType"] = static_cast(uniform.ui_type); - out["components"] = uniform.components; - out["min"] = uniform.ui_min; - out["max"] = uniform.ui_max; - out["step"] = uniform.ui_step; - out["items"] = uniform.items; - - nlohmann::json defaults = nlohmann::json::array(); - for (u32 i = 0; i < uniform.components; ++i) { - defaults.push_back(uniform.default_value[i]); - } - out["defaults"] = defaults; - - return out; -} - -std::array DefaultValueOf(size_t index, const std::string& uniform) { - const auto entries = VideoCore::FxChain::Instance().Entries(); - if (index >= entries.size()) { - return {}; - } - const VideoCore::FxEffectDesc* effect = VideoCore::FindFxEffect(entries[index].file); - if (effect == nullptr) { - return {}; - } - const VideoCore::FxUniformDesc* desc = VideoCore::FindFxUniform(*effect, uniform); - if (desc == nullptr) { - return {}; - } - return desc->default_value; -} -#endif - -} // Anonymous namespace - -extern "C" { - -jstring Java_org_yuzu_yuzu_1emu_utils_NativePostProcessing_getCatalogJson(JNIEnv* env, - jobject obj) { - nlohmann::json out = nlohmann::json::array(); - -#ifdef HAS_RESHADE - VideoCore::FxChain::Instance().DropUnknownEntries(); - - for (const auto& effect : VideoCore::GetFxCatalog()) { - nlohmann::json entry; - entry["file"] = effect.file; - entry["name"] = effect.name; - entry["label"] = effect.label; - entry["description"] = effect.description; - entry["error"] = effect.error; - entry["techniques"] = effect.techniques; - - nlohmann::json uniforms = nlohmann::json::array(); - for (const auto& uniform : effect.uniforms) { - uniforms.push_back(SerializeUniform(uniform)); - } - entry["uniforms"] = uniforms; - - out.push_back(entry); - } -#endif - - return Common::Android::ToJString(env, out.dump()); -} - -jstring Java_org_yuzu_yuzu_1emu_utils_NativePostProcessing_getChainJson(JNIEnv* env, jobject obj) { - nlohmann::json out = nlohmann::json::array(); - -#ifdef HAS_RESHADE - for (const auto& entry : VideoCore::FxChain::Instance().Entries()) { - nlohmann::json item; - item["file"] = entry.file; - item["technique"] = entry.technique; - - nlohmann::json values = nlohmann::json::object(); - for (const auto& [name, value] : entry.values) { - values[name] = {value[0], value[1], value[2], value[3]}; - } - item["values"] = values; - - out.push_back(item); - } -#endif - - return Common::Android::ToJString(env, out.dump()); -} - -void Java_org_yuzu_yuzu_1emu_utils_NativePostProcessing_append(JNIEnv* env, jobject obj, - jstring jfile, jstring jtechnique) { -#ifdef HAS_RESHADE - VideoCore::FxChain::Instance().Append(Common::Android::GetJString(env, jfile), - Common::Android::GetJString(env, jtechnique)); -#endif -} - -void Java_org_yuzu_yuzu_1emu_utils_NativePostProcessing_replace(JNIEnv* env, jobject obj, - jint index, jstring jfile, - jstring jtechnique) { -#ifdef HAS_RESHADE - VideoCore::FxChain::Instance().Replace(static_cast(index), - Common::Android::GetJString(env, jfile), - Common::Android::GetJString(env, jtechnique)); -#endif -} - -void Java_org_yuzu_yuzu_1emu_utils_NativePostProcessing_remove(JNIEnv* env, jobject obj, - jint index) { -#ifdef HAS_RESHADE - VideoCore::FxChain::Instance().Remove(static_cast(index)); -#endif -} - -void Java_org_yuzu_yuzu_1emu_utils_NativePostProcessing_move(JNIEnv* env, jobject obj, jint index, - jint delta) { -#ifdef HAS_RESHADE - VideoCore::FxChain::Instance().Move(static_cast(index), delta); -#endif -} - -void Java_org_yuzu_yuzu_1emu_utils_NativePostProcessing_resetValues(JNIEnv* env, jobject obj, - jint index) { -#ifdef HAS_RESHADE - VideoCore::FxChain::Instance().ResetValues(static_cast(index)); -#endif -} - -jfloat Java_org_yuzu_yuzu_1emu_utils_NativePostProcessing_getValue(JNIEnv* env, jobject obj, - jint index, jstring juniform, - jint component) { -#ifdef HAS_RESHADE - if (component < 0 || component >= 4) { - return 0.0f; - } - const auto value = VideoCore::FxChain::Instance().GetValue( - static_cast(index), Common::Android::GetJString(env, juniform)); - return value[static_cast(component)]; -#else - return 0.0f; -#endif -} - -jboolean Java_org_yuzu_yuzu_1emu_utils_NativePostProcessing_hasValue(JNIEnv* env, jobject obj, - jint index, - jstring juniform) { -#ifdef HAS_RESHADE - return static_cast(VideoCore::FxChain::Instance().HasValue( - static_cast(index), Common::Android::GetJString(env, juniform))); -#else - return static_cast(false); -#endif -} - -void Java_org_yuzu_yuzu_1emu_utils_NativePostProcessing_setValue(JNIEnv* env, jobject obj, - jint index, jstring juniform, - jint component, jfloat value) { -#ifdef HAS_RESHADE - if (component < 0 || component >= 4) { - return; - } - const std::string uniform = Common::Android::GetJString(env, juniform); - auto& chain = VideoCore::FxChain::Instance(); - const auto slot = static_cast(index); - - auto current = chain.GetValue(slot, uniform); - if (!chain.HasValue(slot, uniform)) { - current = DefaultValueOf(slot, uniform); - } - - current[static_cast(component)] = value; - chain.SetValue(slot, uniform, current); -#endif -} - -void Java_org_yuzu_yuzu_1emu_utils_NativePostProcessing_store(JNIEnv* env, jobject obj) { -#ifdef HAS_RESHADE - BeginFxEdit(); - VideoCore::FxChain::Instance().StoreToSettings(); -#endif -} - -void Java_org_yuzu_yuzu_1emu_utils_NativePostProcessing_reload(JNIEnv* env, jobject obj) { -#ifdef HAS_RESHADE - if (!EditingPerGame()) { - VideoCore::UseGlobalFxSettings(); - } - VideoCore::FxChain::Instance().LoadFromSettings(); -#endif -} - -void Java_org_yuzu_yuzu_1emu_utils_NativePostProcessing_clearChain(JNIEnv* env, jobject obj) { -#ifdef HAS_RESHADE - VideoCore::FxChain::Instance().Clear(); -#endif -} - -jstring Java_org_yuzu_yuzu_1emu_utils_NativePostProcessing_getShaderDirectory(JNIEnv* env, - jobject obj) { -#ifdef HAS_RESHADE - return Common::Android::ToJString(env, VideoCore::GetFxRootDirectory().string()); -#else - return Common::Android::ToJString(env, ""); -#endif -} - -jstring Java_org_yuzu_yuzu_1emu_utils_NativePostProcessing_getPresetsJson(JNIEnv* env, - jobject obj) { - nlohmann::json out = nlohmann::json::array(); -#ifdef HAS_RESHADE - VideoCore::ReloadFxPresetCatalog(); - - for (const auto& preset : VideoCore::GetFxPresetCatalog()) { - nlohmann::json entry; - entry["name"] = preset.name; - entry["description"] = preset.description; - entry["bundled"] = preset.bundled; - out.push_back(entry); - } -#endif - return Common::Android::ToJString(env, out.dump()); -} - -jstring Java_org_yuzu_yuzu_1emu_utils_NativePostProcessing_getActivePreset(JNIEnv* env, - jobject obj) { -#ifdef HAS_RESHADE - return Common::Android::ToJString(env, VideoCore::GetActiveFxPreset()); -#else - return Common::Android::ToJString(env, ""); -#endif -} - -jboolean Java_org_yuzu_yuzu_1emu_utils_NativePostProcessing_isPresetModified(JNIEnv* env, - jobject obj) { -#ifdef HAS_RESHADE - return static_cast(VideoCore::IsActiveFxPresetModified()); -#else - return static_cast(false); -#endif -} - -jboolean Java_org_yuzu_yuzu_1emu_utils_NativePostProcessing_applyPreset(JNIEnv* env, jobject obj, - jstring jname) { -#ifdef HAS_RESHADE - BeginFxEdit(); - return static_cast( - VideoCore::ApplyFxPreset(Common::Android::GetJString(env, jname))); -#else - return static_cast(false); -#endif -} - -jboolean Java_org_yuzu_yuzu_1emu_utils_NativePostProcessing_savePreset(JNIEnv* env, jobject obj, - jstring jname, - jstring jdescription) { -#ifdef HAS_RESHADE - BeginFxEdit(); - return static_cast( - VideoCore::SaveFxPreset(Common::Android::GetJString(env, jname), - Common::Android::GetJString(env, jdescription))); -#else - return static_cast(false); -#endif -} - -jboolean Java_org_yuzu_yuzu_1emu_utils_NativePostProcessing_deletePreset(JNIEnv* env, jobject obj, - jstring jname) { -#ifdef HAS_RESHADE - BeginFxEdit(); - return static_cast( - VideoCore::DeleteFxPreset(Common::Android::GetJString(env, jname))); -#else - return static_cast(false); -#endif -} - -void Java_org_yuzu_yuzu_1emu_utils_NativePostProcessing_clearPreset(JNIEnv* env, jobject obj) { -#ifdef HAS_RESHADE - BeginFxEdit(); - VideoCore::SetActiveFxPreset(std::string_view()); -#endif -} - -jboolean Java_org_yuzu_yuzu_1emu_utils_NativePostProcessing_isEnabled(JNIEnv* env, jobject obj) { -#ifdef HAS_RESHADE - return static_cast(Settings::values.post_shader_enabled.GetValue()); -#else - return static_cast(false); -#endif -} - -void Java_org_yuzu_yuzu_1emu_utils_NativePostProcessing_setEnabled(JNIEnv* env, jobject obj, - jboolean enabled) { -#ifdef HAS_RESHADE - BeginFxEdit(); - Settings::values.post_shader_enabled.SetValue(enabled != JNI_FALSE); -#endif -} - -jstring Java_org_yuzu_yuzu_1emu_utils_NativePostProcessing_getPresetDirectory(JNIEnv* env, - jobject obj) { -#ifdef HAS_RESHADE - return Common::Android::ToJString(env, VideoCore::GetFxPresetDirectory().string()); -#else - return Common::Android::ToJString(env, ""); -#endif -} - -} // extern "C" diff --git a/src/android/app/src/main/res/color/frame_gen_cell_text.xml b/src/android/app/src/main/res/color/frame_gen_cell_text.xml deleted file mode 100644 index 6e671681bf..0000000000 --- a/src/android/app/src/main/res/color/frame_gen_cell_text.xml +++ /dev/null @@ -1,5 +0,0 @@ - - - - - diff --git a/src/android/app/src/main/res/drawable/frame_gen_cell_background.xml b/src/android/app/src/main/res/drawable/frame_gen_cell_background.xml deleted file mode 100644 index 6f76a37718..0000000000 --- a/src/android/app/src/main/res/drawable/frame_gen_cell_background.xml +++ /dev/null @@ -1,31 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/android/app/src/main/res/drawable/ic_post_processing.xml b/src/android/app/src/main/res/drawable/ic_post_processing.xml deleted file mode 100644 index 06ce58d40e..0000000000 --- a/src/android/app/src/main/res/drawable/ic_post_processing.xml +++ /dev/null @@ -1,10 +0,0 @@ - - - diff --git a/src/android/app/src/main/res/drawable/shader_card_background.xml b/src/android/app/src/main/res/drawable/shader_card_background.xml deleted file mode 100644 index 40e840695a..0000000000 --- a/src/android/app/src/main/res/drawable/shader_card_background.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - diff --git a/src/android/app/src/main/res/layout/item_quick_settings_add.xml b/src/android/app/src/main/res/layout/item_quick_settings_add.xml deleted file mode 100644 index 1af62f917b..0000000000 --- a/src/android/app/src/main/res/layout/item_quick_settings_add.xml +++ /dev/null @@ -1,58 +0,0 @@ - - - - - - - - - - - - - - diff --git a/src/android/app/src/main/res/layout/item_quick_settings_frame_gen.xml b/src/android/app/src/main/res/layout/item_quick_settings_frame_gen.xml deleted file mode 100644 index e5f8baa3d3..0000000000 --- a/src/android/app/src/main/res/layout/item_quick_settings_frame_gen.xml +++ /dev/null @@ -1,111 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/android/app/src/main/res/layout/item_quick_settings_frame_gen_cell.xml b/src/android/app/src/main/res/layout/item_quick_settings_frame_gen_cell.xml deleted file mode 100644 index 0d4d0af3a8..0000000000 --- a/src/android/app/src/main/res/layout/item_quick_settings_frame_gen_cell.xml +++ /dev/null @@ -1,13 +0,0 @@ - - diff --git a/src/android/app/src/main/res/layout/item_quick_settings_preset.xml b/src/android/app/src/main/res/layout/item_quick_settings_preset.xml deleted file mode 100644 index 935ce4d45d..0000000000 --- a/src/android/app/src/main/res/layout/item_quick_settings_preset.xml +++ /dev/null @@ -1,47 +0,0 @@ - - - - - - - - - - - - - - diff --git a/src/android/app/src/main/res/layout/item_quick_settings_shader.xml b/src/android/app/src/main/res/layout/item_quick_settings_shader.xml deleted file mode 100644 index dac3bb4de8..0000000000 --- a/src/android/app/src/main/res/layout/item_quick_settings_shader.xml +++ /dev/null @@ -1,82 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/android/app/src/main/res/layout/item_setting_fx_actions.xml b/src/android/app/src/main/res/layout/item_setting_fx_actions.xml deleted file mode 100644 index c7df946416..0000000000 --- a/src/android/app/src/main/res/layout/item_setting_fx_actions.xml +++ /dev/null @@ -1,20 +0,0 @@ - - - - - - diff --git a/src/android/app/src/main/res/layout/item_setting_fx_slider.xml b/src/android/app/src/main/res/layout/item_setting_fx_slider.xml deleted file mode 100644 index 1e2989195f..0000000000 --- a/src/android/app/src/main/res/layout/item_setting_fx_slider.xml +++ /dev/null @@ -1,41 +0,0 @@ - - - - - - - - - - - - - - diff --git a/src/android/app/src/main/res/layout/list_item_setting_fx_button.xml b/src/android/app/src/main/res/layout/list_item_setting_fx_button.xml deleted file mode 100644 index 8d207888cb..0000000000 --- a/src/android/app/src/main/res/layout/list_item_setting_fx_button.xml +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - diff --git a/src/android/app/src/main/res/layout/list_item_setting_fx_preset.xml b/src/android/app/src/main/res/layout/list_item_setting_fx_preset.xml deleted file mode 100644 index a212f67f4b..0000000000 --- a/src/android/app/src/main/res/layout/list_item_setting_fx_preset.xml +++ /dev/null @@ -1,65 +0,0 @@ - - - - - - - - - - - - - - - - - - diff --git a/src/android/app/src/main/res/layout/list_item_setting_fx_shader.xml b/src/android/app/src/main/res/layout/list_item_setting_fx_shader.xml deleted file mode 100644 index e6f7b12eb4..0000000000 --- a/src/android/app/src/main/res/layout/list_item_setting_fx_shader.xml +++ /dev/null @@ -1,82 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/android/app/src/main/res/layout/list_item_setting_fx_toolbar.xml b/src/android/app/src/main/res/layout/list_item_setting_fx_toolbar.xml deleted file mode 100644 index 074c5a0662..0000000000 --- a/src/android/app/src/main/res/layout/list_item_setting_fx_toolbar.xml +++ /dev/null @@ -1,64 +0,0 @@ - - - - - - - - - - - - diff --git a/src/android/app/src/main/res/values-ar/strings.xml b/src/android/app/src/main/res/values-ar/strings.xml index 3be04d9186..a3d7b2b515 100644 --- a/src/android/app/src/main/res/values-ar/strings.xml +++ b/src/android/app/src/main/res/values-ar/strings.xml @@ -1,7 +1,7 @@ - سيعمل هذا البرنامج على تشغيل ألعاب منصة ألعاب «نينتندو سويتش». لا يتضمن البرنامج أي ألعاب أو مفاتيح تفعيل.

قبل البدء، يرجى تحديد موقع ملف prod.keys ]]> في مساحة التخزين بجهازك.

مزيد من المعلومات]]>
+ سيشغل هذا البرنامج ألعاب جهاز Nintendo Switch. لا يتضمن البرنامج أي ألعاب أو مفاتيح.

قبل أن تبدأ، يرجى تحديد موقع ملف prod.keys ]]> على وحدة تخزين جهازك.

اعرف المزيد]]>
الإشعارات والأخطاء عرض الإشعارات عند حدوث خطأ ما. لم يتم منح إذن الإشعار! @@ -28,7 +28,7 @@ السلوك إخفاء الطبقة تلقائيًا إخفاء طبقة ذراع التحكم باللمس تلقائيًا بعد مرور الوقت المحدد من عدم النشاط. - تفعيل إخفاء الطبقة تلقائيًا + تمكين إخفاء الطبقة تلقائيًا إخفاء الطبقة عند إدخال ذراع التحكم إخفاء تلقائي لطبقة عناصر التحكم باللمس عند استخدام ذراع تحكم فعلية. تظهر الطبقة مرة أخرى عند فصل ذراع التحكم. عكس أزرار التأكيد/الرجوع في وحدة التحكم @@ -51,7 +51,7 @@ التخصيص الرؤية طبقة الأداء - تفعيل طبقة إحصائيات الأداء + تمكين طبقة إحصائيات الأداء ضبط المعلومات التي يتم عرضها في طبقة إحصائيات الأداء عرض معدل الإطارات عرض معدل الإطارات الحالي @@ -81,7 +81,7 @@ عرض طبقة معلومات الجهاز - تفعيل طبقة الجهاز + تمكين طبقة الجهاز طبقة الجهاز ضبط المعلومات التي يتم عرضها في طبقة الجهاز @@ -98,8 +98,8 @@ مزامنة سرعة النواة قم بمزامنة سرعة النواة مع النسبة المئوية للسرعة القصوى لتحسين الأداء دون تغيير السرعة الفعلية للعبة. - تفعيل محاكاة MMU المضيف - يعمل هذا التحسين على تسريع وصول الذاكرة بواسطة البرنامج الضيف. يؤدي تفعيله إلى إجراء عمليات قراءة/كتابة ذاكرة الضيف مباشرة في الذاكرة والاستفادة من MMU المضيف. يؤدي تعطيل هذا إلى إجبار جميع عمليات الوصول إلى الذاكرة على استخدام محاكاة MMU البرمجية. + تمكين محاكاة MMU المضيف + يعمل هذا التحسين على تسريع وصول الذاكرة بواسطة البرنامج الضيف. يؤدي تمكينه إلى إجراء عمليات قراءة/كتابة ذاكرة الضيف مباشرة في الذاكرة والاستفادة من MMU المضيف. يؤدي تعطيل هذا إلى إجبار جميع عمليات الوصول إلى الذاكرة على استخدام محاكاة MMU البرمجية. مقابض تصحيح الأخطاء للإستخدام في التطوير فقط. 0 إلى 65535 @@ -254,7 +254,7 @@ إعداد بيانات المحاكي يلزم وجود مفاتيح حتى يعمل المحاكي، ويوصى باستخدام الفيرموير ويكون ضروريًا لاستخدام تطبيق القائمة الرئيسية. منح الأذونات - منح أذونات اختيارية لاستخدام ميزات محددة في المحاكي + منح أذونات اختيارية لاستخدام ميزات معينة للمحاكي العديد من الألعاب تتطلب الوصول إلى الفيرموير لتشغيل بشكل صحيح. https://yuzu-mirror.github.io/help/quickstart/#guide-introduction الإشعارات @@ -291,25 +291,6 @@ أداة جلب برامج تشغيل وحدة المعالجة الرسومية إدارة برامج تشغيل وحدة معالجة الرسومات تثبيت برامج تشغيل بديلة لأداء أو دقة أفضل - تأثيرات ما بعد المعالجة - تأثيرات ReShade FX التي يتم تطبيقها بعد عملية العرض - ضبط تسلسل التأثيرات لهذه اللعبة - إضافة تأثير - إزالة - فتح القائمة - إغلاق القائمة - إزالة التأثيرات - الإعداد مسبقًا نشط. قم بتعديله في «تأثيرات ما بعد المعالجة» قبل بدء اللعبة. - تم تغيير القيم عن الإعداد الأصلي. - الإعدادات المسبقة - إعداد مسبق جديد - يحفظ التأثيرات التي قمت بتحميلها، مع قيمها الحالية، كإعداد مسبق يمكنك اختياره لاحقًا. - قم بتسمية الإعداد المسبق باسم لا يحتوي على علامة يساوي. - لا يوجد إعداد مسبق - حذف الإعداد المسبق - إعادة تعيين القيم المحددة مسبقًا - إعادة التعيين إلى الإعدادات الافتراضية - لم يتم العثور على أي ملفات. ضع ملفات .fx في هذا المجلد: توليد الإطار ضبط إعدادات إنشاء الإطارات لهذه اللعبة قم بإدراج الإطارات المُستكملة بين الإطارات المُعالجة باستخدام تقنية التحجيم بدون فقدان الجودة. يُفرض هذا الخيار عرض الإطارات وفقًا لترتيب FIFO عند تفعيله. @@ -324,13 +305,8 @@ 60 إطارًا في الثانية 90 إطارًا في الثانية 120 إطارًا في الثانية - تشغيل - إيقاف - مستقر - تلقائي - قم بتشغيل أو إيقاف توليد الإطارات واختر مضاعف الإطارات. - توليد إطارات بمعدل إطارات مستهدف. ويتم ضبط المضاعف تلقائيًا. - الدقة المستخدمة لتقدير الحركة بين الإطارات. تقلل القيم المنخفضة من الوقت الذي تستهلكه وحدة معالجة الرسومات. + 144 إطارًا في الثانية + 165 إطارًا في الثانية هدف قائمة انتظار الإطارات كم عدد الإطارات المكتملة التي قد تنتظر قبل عرضها؟ تعمل قوائم الانتظار الأكبر حجمًا على امتصاص الارتفاعات المفاجئة في حمل وحدة معالجة الرسومات على حساب زمن انتقال الإدخال. أقل زمن انتقال (بدون تخزين مؤقت) @@ -340,17 +316,21 @@ قم بتقدير الحركة بناءً على الدقة التي تعرضها اللعبة فعليًّا، بدلاً من الإخراج الذي تم رفع دقته. ولا يؤثر ذلك على الدقة بأي شكل، لأن رفع الدقة لا يضيف أي تفاصيل تتعلق بالحركة. دقة تقدير الحركة دقة مسار التدفق البصري، كجزء من الناتج. ويُعد خفض هذه القيمة أرخص طريقة لاستعادة الأداء. + مُظلِّلات نصف الدقة + استخدم نسخة التظليل 16 بت. يتم التراجع تلقائيًا إلى الخيار البديل في حالة عدم توفرها في برنامج التشغيل أو الملف. + إفراغ الإطار الذي تم إنشاؤه + قم بكتابة مستويات MIP للتدفق البصري والإطار المُستكمل إلى مجلد lossless/debug مرة واحدة، لغرض استكشاف الأخطاء وإصلاحها توليد الإطار غير متاح - يفتقر برنامج تشغيل وحدة معالجة الرسومات هذا إلى نموذج ذاكرة Vulkan أو دعم الدقة النصفية (float16) التي تتطلبها برامج التظليل الخاصة بـ «Lossless Scaling». - اختياري. قم بتوفير ملف Lossless.dll الخاص بك لتفعيل إنشاء الإطارات لاحقًا + لا يدعم برنامج تشغيل وحدة معالجة الرسومات هذا نموذج ذاكرة Vulkan، الذي تتطلبه برامج التظليل الخاصة بـ«Lossless Scaling». + اختياري. قم بتوفير ملف Lossless.dll الخاص بك لتمكين إنشاء الإطارات لاحقًا تثبيت ملف Lossless.dll يتطلب إنشاء الإطارات أن تكون لديك نسخة قانونية خاصة بك من ملف Lossless.dll المأخوذ من برنامج Lossless Scaling اختر نسخة أخرى من ملف Lossless.dll توليد الإطارات مدعوم - غير مدعوم (لا يتوفر نموذج ذاكرة Vulkan أو float16) + غير مدعوم (لا يتوفر نموذج ذاكرة Vulkan) Lossless Scaling - قم بتوفير نسختك الخاصة من ملف Lossless.dll لتفعيل توليد الإطارات + قم بتوفير نسختك الخاصة من ملف Lossless.dll لتمكين توليد الإطارات مثبت غير مثبت استبدل @@ -502,9 +482,9 @@ نسبة الحد الأقصى للسرعة يحدد النسبة المئوية للحد من سرعة المحاكاة. %100 هي السرعة الطبيعية. القيم الأعلى أو الأقل ستزيد أو تقلل من الحد الأقصى للسرعة. سرعة تيربو - عند تفعيل وضع التيربو، سيتم تشغيل المحاكاة بهذه السرعة. + عند تمكين وضع التيربو، سيتم تشغيل المحاكاة بهذه السرعة. سرعة بطيئة - عند تفعيل الوضع البطيء، سيتم تشغيل المحاكاة بهذه السرعة. + عند تمكين الوضع البطيء، سيتم تشغيل المحاكاة بهذه السرعة. خلفية وحدة المعالجة المركزية دقة وحدة المعالجة المركزية %1$s%2$s @@ -574,10 +554,14 @@ يجبر وحدة معالجة الرسومات على العمل بأقصى سرعة ممكنة (سيظل يتم تطبيق القيود الحرارية). محاكاة غير متزامنة لوحدة معالجة الرسومات يمكن لهذه الحيلة أن تزيد الأداء عن طريق تشغيل محاكاة وحدة معالجة الرسومات بشكل غير متزامن على حساب مشاكل الرسومات وزيادة معدلات الأعطال بسبب العمليات المتعلقة بالتوقيت. + عرض غير متزامن + يمكن لهذه الحيلة أن تزيد من الأداء عن طريق نقل عملية العرض إلى خيط معالجة منفصل على حساب مشاكل الرسوميات. استخدم التنظيف التفاعلي يحسن دقة العرض في بعض الألعاب على حساب الأداء. - تفعيل سجل التخزين المؤقت + تمكين سجل التخزين المؤقت يُتيح هذا الخيار الوصول إلى حالات التخزين المؤقت السابقة. وقد يُحسّن جودة العرض وثبات الأداء في بعض الألعاب. + تفعيل قراءة مخزن وحدة معالجة الرسومات + يحافظ هذا النظام على بيانات المخزن المؤقت المُعدّلة بواسطة وحدة معالجة الرسومات عن طريق قراءتها مرة أخرى قبل التحميل. تتطلب بعض الألعاب ذلك لعرض بعض التأثيرات بشكل صحيح. قد يُسبب ذلك مشاكل إذا لم يتمكن الجهاز من التعامل مع عبء العمل الإضافي. مخازن الرؤوس المُحسّنة يُتيح ربطًا مُحسَّنًا لمخازن الرؤوس لتحسين الأداء. يتطلب برامج تشغيل Mesa 26.0+ Turnip/ برامج تشغيل QCOM. قد يتعطل على برامج تشغيل Turnip القديمة (25.3 وما دون). @@ -614,7 +598,7 @@ يتحكم هذا الخيار في عدد الميزات التي يمكن استخدامها في ExtendedDynamicState (EDS). كلما زادت القيمة، قلّ عدد عمليات تجميع خط الأنابيب بناءً على الحالة الديناميكية التي يدعمها برنامج التشغيل. معطل حالة ديناميكية لإدخال الرأس - يتيح تفعيل هذه الميزة معالجة أكثر مرونة لمدخلات الرؤوس، مما قد يقلل من وقت تجميع خط الأنابيب في vertex/buffer. + يتيح تمكين هذه الميزة معالجة أكثر مرونة لمدخلات الرؤوس، مما قد يقلل من وقت تجميع خط الأنابيب في vertex/buffer. تظليل العينة يسمح هذا الخيار بتنفيذ مُظلل الأجزاء لكل عينة في جزء متعدد العينات بدلاً من تنفيذه مرة واحدة لكل جزء. يُحسّن هذا من جودة الرسومات على حساب بعض الأداء. @@ -823,9 +807,9 @@ النظام وضع الإرساء، المنطقة، اللغة الرسومات - مستوى دقة المحاكاة، الدقة، ذاكرة التخزين المؤقتة للتظليل + مستوى الدقة، الدقة، ذاكرة التخزين المؤقتة للتظليل الإعدادات السريعة - تفعيل الإعدادات السريعة + تمكين الإعدادات السريعة السماح بالوصول إلى قائمة الإعدادات السريعة عن طريق التمرير و زر القائمة الصوت محرك الإخراج، مستوى الصوت @@ -934,7 +918,7 @@ ملف ROM غير موجود اللعبة تتطلب الفيرموير - + نسخ وتثبيت الفيرموير، أو اضغط \"موافق\" للمتابعة على أي حال.]]> جارٍ البحث عن اللعبة... @@ -1095,6 +1079,7 @@ فوري متوازن دقيق + صارم محافظ عدواني @@ -1221,8 +1206,8 @@ وضع الطيران يمرر وضع الطيران إلى نظام تشغيل Switch - تفعيل التطبيق الصغير للطبقة - تفعيل التطبيق الصغير المدمج في Horizon. اضغط مع الاستمرار على زر الشاشة الرئيسية لمدة 1 ثانية لإظهاره. + تمكين التطبيق الصغير للطبقة + تمكين التطبيق الصغير المدمج في Horizon. اضغط مع الاستمرار على زر الشاشة الرئيسية لمدة 1 ثانية لإظهاره. إدارة ملف التعريف diff --git a/src/android/app/src/main/res/values-ckb/strings.xml b/src/android/app/src/main/res/values-ckb/strings.xml index c4b59984c5..eb0c586695 100644 --- a/src/android/app/src/main/res/values-ckb/strings.xml +++ b/src/android/app/src/main/res/values-ckb/strings.xml @@ -474,6 +474,8 @@ فایلی ڕۆم بوونی نییە یارییەکە فریموێر پێویستە + فریموێر دامپ بکە و دابنێ, یان پەنجە بنێ سەر \"باشە\" بۆ بەردەوامبوون هەرچۆنێک بێت.]]> + گەڕان بە دوای یارییە... یاری نەدۆزرایەوە بۆ ناسنامەی ناونیشان: %1$s diff --git a/src/android/app/src/main/res/values-cs/strings.xml b/src/android/app/src/main/res/values-cs/strings.xml index a8e859cb45..9a914959e5 100644 --- a/src/android/app/src/main/res/values-cs/strings.xml +++ b/src/android/app/src/main/res/values-cs/strings.xml @@ -1,6 +1,7 @@ + Tento software umožňuje spouštět hry pro herní konzoli Nintendo Switch. Neobsahuje žádné herní tituly ani klíče.

Nejdříve prosím vyhledejte soubor prod.keys ]]> v úložišti vašeho zařízení.

Další informace]]>
Upozornění a chyby Zobrazí oznámení v případě chyby. Oprávnění k zobrazení oznámení nebylo uděleno! @@ -604,6 +605,8 @@ ROM neexistuje Hra vyžaduje firmware + převezměte a nainstalujte firmware, nebo stiskněte \"OK\" pro pokračování v každém případě.]]> + Hledání hry... Hra nebyla nalezena pro ID titulu: %1$s diff --git a/src/android/app/src/main/res/values-de/strings.xml b/src/android/app/src/main/res/values-de/strings.xml index 8f6b691176..fe190325f6 100644 --- a/src/android/app/src/main/res/values-de/strings.xml +++ b/src/android/app/src/main/res/values-de/strings.xml @@ -1,6 +1,7 @@ + Diese Software führt Spiele für die Nintendo Switch-Konsole aus. Es sind keine Spiele oder Schlüssel enthalten. Suche, bevor du beginnst, deine prod.keys ]]>-Datei auf deinem Gerät.

Mehr Erfahren]]>
Hinweise und Fehler Zeigt Benachrichtigungen an, wenn etwas schief läuft. Berechtigung für Benachrichtigungen nicht zugelassen! @@ -303,13 +304,17 @@ 60 FPS 90 FPS 120 FPS + 144 FPS + 165 FPS Ausbalanciert (1 Bild) Flüssigste (2 Bilder) Frame-Generation nicht verfügbar + Dieser GPU-Treiber unterstützt das Vulkan-Memory-Model nicht, welches Lossless Scaling-Shader benötigen. Optional. Stelle deine eigene Lossless.dll zur Verfügung, um Frame-Generation später zu aktivieren. Installiere Lossless.dll Wähle eine andere Kopie von Lossless.dll Unterstützt + Nicht unterstützt (kein Vulkan-Memory-Model) Lossless Scaling Installiert Nicht installiert @@ -808,6 +813,8 @@ Wirklich fortfahren?
ROM-Datei existiert nicht Spiel erfordert Firmware + dumpen und installieren Sie Firmware, oder drücken Sie \"OK\", um trotzdem zu starten.]]> + Suche nach Spiel... Spiel nicht gefunden für Titel-ID: %1$s @@ -967,6 +974,7 @@ Wirklich fortfahren?
Direkt Ausgewogen Genau + Strikt Konservativ Aggressiv diff --git a/src/android/app/src/main/res/values-es/strings.xml b/src/android/app/src/main/res/values-es/strings.xml index 05135b515e..460ea1f0da 100644 --- a/src/android/app/src/main/res/values-es/strings.xml +++ b/src/android/app/src/main/res/values-es/strings.xml @@ -1,6 +1,7 @@ + Este software arrancará juegos para la consola Nintendo Switch. No se incluyen títulos ni claves de juego.

Antes de continuar, por favor localiza tu archivo en el almacenamiento de tu dispositivo.

Aprender más]]><b>
Avisos y errores Mostrar notificaciones cuando algo vaya mal. ¡Permiso de notificación no concedido! @@ -289,10 +290,6 @@ Obtenedor de controladores de la GPU Gestor de controladores de la GPU Instale los controladores alternativos para obtener un posible mejor rendimiento o precisión - Añadir efecto - Abrir lista - Cerrar lista - Restablecer a predeterminado Generación de fotograma Configurar la generación de fotogramas para este juego Multiplicador de fotograma @@ -304,14 +301,18 @@ 60 FPS 90 FPS 120 FPS + 144 FPS + 165 FPS Latencia más baja (Sin búfer) Equilibrado (1 fotograma) Más suave (2 fotogramas) + Sombreadores de media precisión Generación de fotogramas no disponbile Instalar Lossless.dll Seleccionar una copia diferente de Lossless.dll Generación de fotograma Soportado + No soportado (sin modelo de memoria de Vulkan) Escalado sin pérdidas Instalado No instalado @@ -518,10 +519,14 @@ Fuerza a la GPU a ejecutarse a la velocidad máxima de reloj posible (se seguirán aplicando restricciones térmicas). Emulación de GPU asíncrona Este hack puede aumentar el rendimiento ejecutando la emulación de la GPU de forma asíncrona, a costa de problemas gráficos y un aumento en la tasa de fallos debido a operaciones relacionadas con la sincronización. + Presentación asíncrona + Este hack puede aumentar el rendimiento al mover la presentación a un hilo independiente de la CPU a costa de problemas gráficos. Usar limpieza reactiva Mejora la precisión de renderizado en algunos juegos, pero reduce el rendimiento. Activar el historial del búfer Permite el acceso al estado del búfer anterior. Esta opción puede mejorar la calidad de renderizado y la consistencia en el rendimiento de algunos juegos. + Activar la lectura del buffer de la GPU + Conserva los datos del búfer modificados por la GPU leyéndolos antes de subirlos.\nAlgunos juegos requieren esto para renderizar correctamente ciertos efectos.\nPuede causar problemas si el hardware no puede soportar la carga de trabajo adicional. Búferes de vértices optimizados Permite la optimización del enlace del búfer de vértices para un mejor rendimiento. Requiere controladores Mesa 26.0+ Turnip/ controladores QCOM. Fallará con controladores Turnip más antiguos (versión 25.3 o inferior). @@ -781,7 +786,7 @@ Directorio de los datos de guardado Establecer una ruta personalizada para el almacenamiento de los datos de guardado - Restaurar los valores predeterminados + Restaurar valores predeterminados Migrar datos de guardado ¿Desea migrar los datos de guardado existentes a la nueva ubicación\? Datos de guardado migrados con éxito @@ -875,6 +880,8 @@ Archivo ROM no existe El juego requiere firmware + vuelque e instale el firmware, o pulse \"Aceptar\" para continuar de todos modos.]]> + Buscando juego... Juego no encontrado para el ID de título: %1$s @@ -1034,6 +1041,7 @@ Inmediato Equilibrado Preciso + Estricto Conservador Agresivo diff --git a/src/android/app/src/main/res/values-fr/strings.xml b/src/android/app/src/main/res/values-fr/strings.xml index 7507051dd7..582fc33535 100644 --- a/src/android/app/src/main/res/values-fr/strings.xml +++ b/src/android/app/src/main/res/values-fr/strings.xml @@ -1,6 +1,7 @@ + Ce logiciel permet de jouer à des jeux de la console Nintendo Switch. Aucun titre ni clé de jeu n\'est inclus.

Avant de commencer, veuillez localiser votre fichier prod.keys ]]> sur le stockage de votre appareil.

En savoir plus]]>
Avis et erreurs Affiche des notifications en cas de problème. Permission de notification non accordée ! @@ -784,6 +785,8 @@ Le fichier ROM n\'existe pas Jeu nécessite un firmware + dumper et installer le firmware ou appuyez sur \"OK\" pour continuer quand même.]]> + Recherche du jeu... Jeu non trouvé pour l\'ID de titre : %1$s diff --git a/src/android/app/src/main/res/values-he/strings.xml b/src/android/app/src/main/res/values-he/strings.xml index 265c38fa82..9c42d8cbd9 100644 --- a/src/android/app/src/main/res/values-he/strings.xml +++ b/src/android/app/src/main/res/values-he/strings.xml @@ -510,6 +510,8 @@ קובץ המשחק לא קיים המשחק דורש קושחה + שמור והתקן קושחה או לחץ \"אישור\" כדי להמשיך בכל מקרה.]]> + מחפש משחק... משחק לא נמצא למזהה כותרת: %1$s diff --git a/src/android/app/src/main/res/values-hu/strings.xml b/src/android/app/src/main/res/values-hu/strings.xml index daa9539756..c281e18dea 100644 --- a/src/android/app/src/main/res/values-hu/strings.xml +++ b/src/android/app/src/main/res/values-hu/strings.xml @@ -598,6 +598,8 @@ ROM fájl nem létezik A játék firmware-t igényel + dumpolja és telepítse a firmware-t, vagy nyomja meg az \"OK\" gombot a folytatáshoz.]]> + Játék keresése... A játék nem található a következő címazonosítóhoz: %1$s diff --git a/src/android/app/src/main/res/values-id/strings.xml b/src/android/app/src/main/res/values-id/strings.xml index 6dcb323579..c507b727fb 100644 --- a/src/android/app/src/main/res/values-id/strings.xml +++ b/src/android/app/src/main/res/values-id/strings.xml @@ -1,6 +1,7 @@ + Perangkat lunak ini akan menjalankan permainan dari konsol Nintendo Switch. Permainan maupun keys tidak disediakan.

Sebelum memulai, tolong temukan berkas prod.keys ]]> didalam tempat penyimpanan mu.

Pelajari lebih lanjut]]>
Pemberitahuan dan error Menampilkan pemberitahuan ketika terjadi kesalahan. Izin notifikasi tidak diberikan! @@ -637,6 +638,8 @@ Berkas Tidak Ditemukan Game memerlukan firmware + dump dan instal firmware, atau tekan \"OK\" untuk melanjutkan.]]> + Mencari game... Game tidak ditemukan untuk ID Judul: %1$s diff --git a/src/android/app/src/main/res/values-it/strings.xml b/src/android/app/src/main/res/values-it/strings.xml index 0b74a74aed..18b4faddfc 100644 --- a/src/android/app/src/main/res/values-it/strings.xml +++ b/src/android/app/src/main/res/values-it/strings.xml @@ -1,6 +1,7 @@ + Questo software esegue giochi per la console Nintendo Switch. Non sono inclusi titoli di giochi o chiavi.

Prima di iniziare, individua il file prod.keys]]> nella memoria del tuo dispositivo.

Ulteriori informazioni]]>
Avvisi ed errori Mostra le notifiche quando qualcosa va storto. Autorizzazione di notifica non concessa! @@ -661,6 +662,8 @@ Il file della ROM non esiste Firmware richiesto + Esegui il dump del firmware e installalo, o premi \"OK\" per continuare lo stesso.]]> + Ricerca del gioco in corso... Gioco non trovato per l\'ID titolo: %1$s diff --git a/src/android/app/src/main/res/values-ja/strings.xml b/src/android/app/src/main/res/values-ja/strings.xml index 4b84e82b3d..516cf4cb07 100644 --- a/src/android/app/src/main/res/values-ja/strings.xml +++ b/src/android/app/src/main/res/values-ja/strings.xml @@ -508,6 +508,8 @@ ROMファイルが存在しません ゲームにはファームウェアが必要です + ファームウェアをダンプしてインストールするか、\"OK\"を押して続行してください。]]> + ゲームを検索中... タイトルID: %1$s のゲームが見つかりません diff --git a/src/android/app/src/main/res/values-ko/strings.xml b/src/android/app/src/main/res/values-ko/strings.xml index e9f79165e5..7bd0b38fee 100644 --- a/src/android/app/src/main/res/values-ko/strings.xml +++ b/src/android/app/src/main/res/values-ko/strings.xml @@ -558,6 +558,8 @@ 롬 파일이 존재하지 않음 게임에 펌웨어가 필요합니다 + 펌웨어를 덤프하여 설치하거나 \"확인\"을 눌러 계속 진행하세요.]]> + 게임 검색 중... 타이틀 ID에 대한 게임을 찾을 수 없음: %1$s diff --git a/src/android/app/src/main/res/values-nb/strings.xml b/src/android/app/src/main/res/values-nb/strings.xml index a3fc8bad7c..700ef6106a 100644 --- a/src/android/app/src/main/res/values-nb/strings.xml +++ b/src/android/app/src/main/res/values-nb/strings.xml @@ -487,6 +487,8 @@ ROM-filen finnes ikke Spillet krever fastvare + dump og installer fastvare, eller trykk \"OK\" for å fortsette likevel.]]> + Søker etter spill... Spill ikke funnet for tittel-ID: %1$s diff --git a/src/android/app/src/main/res/values-pl/strings.xml b/src/android/app/src/main/res/values-pl/strings.xml index 9f49ae5dd0..f7129fe560 100644 --- a/src/android/app/src/main/res/values-pl/strings.xml +++ b/src/android/app/src/main/res/values-pl/strings.xml @@ -1,6 +1,7 @@ + To oprogramowanie uruchamia gry na konsoli Nintendo Switch. Żadne tytuły gier ani klucze nie są dołączone.

Zanim zaczniesz, zlokalizuj plik prod.keys ]]> na swoim urządzeniu.

Więcej informacji]]>
Powiadomienia błędy Pokaż powiadomienie gdy coś pójdzie źle Nie zezwolono na powiadomienia! @@ -757,6 +758,8 @@ Plik ROM nie istnieje Gra wymaga oprogramowania sprzętowego + zrzuć i zainstaluj oprogramowanie sprzętowe, lub naciśnij \"OK\", aby kontynuować mimo to.]]> + Wyszukiwanie gry... Nie znaleziono gry dla ID tytułu: %1$s diff --git a/src/android/app/src/main/res/values-pt-rBR/strings.xml b/src/android/app/src/main/res/values-pt-rBR/strings.xml index 533ccbcdf2..335178f90c 100644 --- a/src/android/app/src/main/res/values-pt-rBR/strings.xml +++ b/src/android/app/src/main/res/values-pt-rBR/strings.xml @@ -1,6 +1,7 @@ + Este programa serve para rodar jogos do Nintendo Switch. Nenhum jogo ou chaves do sistema são inclusos

Antes de começar, localize o seu prod.keys ]]> salvo no seu sistema.

Saiba mais]]>
Notificações e erros Mostra notificações quando acontecer um erro. Acesso às notificações não foi permitido! @@ -716,6 +717,8 @@ O arquivo ROM não existe O jogo requer firmware + faça dump e instale o firmware, ou pressione \"OK\" para continuar mesmo assim.]]> + Procurando jogo... Jogo não encontrado para o ID do Título: %1$s diff --git a/src/android/app/src/main/res/values-pt-rPT/strings.xml b/src/android/app/src/main/res/values-pt-rPT/strings.xml index 598c80985a..7ccaed721d 100644 --- a/src/android/app/src/main/res/values-pt-rPT/strings.xml +++ b/src/android/app/src/main/res/values-pt-rPT/strings.xml @@ -609,6 +609,8 @@ uma tentativa de mapeamento automático
O ficheiro da ROM não existe O jogo requer firmware + faça dump e instale o firmware, ou pressione \"OK\" para continuar mesmo assim.]]> + A procurar jogo... Jogo não encontrado para o ID do Título: %1$s diff --git a/src/android/app/src/main/res/values-ru/strings.xml b/src/android/app/src/main/res/values-ru/strings.xml index c291a9276b..630f61ffa4 100644 --- a/src/android/app/src/main/res/values-ru/strings.xml +++ b/src/android/app/src/main/res/values-ru/strings.xml @@ -1,7 +1,7 @@ - Это программное обеспечение предназначено для запуска игр консоли Nintendo Switch. Никакие игры или ключи не входят в комплект.

Перед началом работы найдите файл prod.keys ]]> во внутреннем хранилище вашего устройства.

Узнать больше]]>
+ Это программное обеспечение предназначено для запуска игр для игровой консоли Nintendo Switch. Игры и ключи в комплект не входят.

Прежде чем начать, пожалуйста, найдите файл prod.keys]]> на вашем устройстве.

Узнать больше]]>
Уведомления и ошибки Показывает уведомления, когда что-то пошло не так Вы не предоставили разрешение на уведомления! @@ -291,25 +291,6 @@ Получение драйверов ГПУ Менеджер драйверов ГПУ Установите альтернативные драйверы для потенциально лучшей производительности и/или точности - Эффекты постобработки - Эффекты ReShade FX, применяемые после рендеринга - Настроить цепочку эффектов для этой игры - Добавить эффект - Удалить - Открыть список - Закрыть список - Удалить эффекты - Пресет активен. Отредактируйте его в разделе \"Эффекты постобработки\" перед запуском игры. - Значения изменены относительно исходного пресета. - Пресеты - Новый пресет - Сохраняет загруженные вами эффекты вместе с их текущими значениями в виде пресета, который можно будет выбрать позже. - Дайте пресету имя без знака равенства. - Нет пресета - Удалить пресет - Сбросить значения пресета - Сбросить до значений по умолчанию - Эффекты не найдены. Поместите файлы .fx в эту папку: Генерация кадров Настройка генерации кадров для данной игры Вставляет промежуточные кадры между отрендеренными с помощью Lossless Scaling. При включении принудительно устанавливает режим вывода FIFO. @@ -318,13 +299,6 @@ Целевая частота кадров Выберите значение под ваш дисплей. Множитель подстроится сам, чтобы его держать, и откатит изменения, если игра начнёт тормозить. Использовать фиксированный множитель - Вкл. - Выкл. - Фикс. - Авто - Включите или выключите генерацию кадров и выберите множитель кадров. - Генерация кадров с заданной частотой кадров. Множитель регулируется автоматически. - Разрешение, используемое для оценки движения между кадрами. Меньшие значения экономят время ГПУ. Целевой размер очереди кадров Сколько готовых кадров может ожидать перед выводом на экран. Более длинные очереди сглаживают скачки ГПУ ценой задержки ввода. Минимальная задержка (Без буферизации) @@ -334,15 +308,19 @@ Оценивать движение в разрешении, которое игра действительно рендерит, вместо масштабированного вывода. Ничего не стоит в точности, так как масштабирование не добавляет деталей движения. Разрешение оценки движения Разрешение прохода оптического потока в долях от выходного разрешения. Его понижение — самый дешёвый способ вернуть производительность. + Шейдеры половинной точности + Использовать 16-битную версию шейдеров. Автоматически переключается на обычную, если драйвер или файл не поддерживают её. + Сохранить сгенерированный кадр + Однократно записать уровни мип-карт оптического потока и интерполированный кадр в папку lossless/debug для диагностики. Генерация кадров недоступна - В этом ГПУ драйвере отсутствует поддержка модели памяти Vulkan или половинной точности (float16), которая требуется шейдерам Lossless Scaling. + Драйвер ГПУ не поддерживает модель памяти Vulkan, требуемую шейдерами Lossless Scaling. Опционально. Укажите свой Lossless.dll для включения генерации кадров позже. Установить Lossless.dll Для генерации кадров требуется ваша собственная легальная копия Lossless.dll из Lossless Scaling Выбрать другой файл Lossless.dll Генерация кадров Поддерживается - Не поддерживается (нет модели памяти Vulkan или float16) + Не поддерживается (нет модели памяти Vulkan) Предоставьте свою копию Lossless.dll для включения генерации кадров Установлена Не установлена @@ -563,10 +541,14 @@ Заставляет ГПУ работать на максимально возможных тактовых частотах (тепловые ограничения все равно будут применяться). Асинхронная эмуляция ГПУ Может повысить производительность за счёт асинхронного запуска эмуляции ГПУ, но ценой появления графических ошибок и увеличения частоты вылетов из-за операций, зависящих от синхронизации. + Асинхронная презентация + Может повысить производительность за счёт перемещения вывода кадров в отдельный поток ЦП, но ценой возникновения графических проблем. Реактивная очистка Повышение точности рендеринга в некоторых играх за счет снижения производительности. Включить историю буфера Позволяет обращаться к предыдущим состояниям буфера. Эта опция может повысить качество рендеринга и стабильность производительности в некоторых играх. + Включить обратное чтение буфера ГПУ + Сохраняет измененные ГПУ данные буфера путем чтения их обратно перед выгрузками. Некоторые игры требуют этого, чтобы рендерить определенные эффекты правильно. Может вызывать проблемы если оборудование не может обработать дополнительную рабочую нагрузку. Оптимизированные вершинные буферы Включает оптимизированную привязку вершинного буфера для повышения производительности. Требует Mesa Turnip 26.0+ / QCOM. Приводит к вылету на старых версиях драйверов Turnip (25.3 и ниже). @@ -635,11 +617,6 @@ Логирование Сбрасывать логи отладки построчно Сбрасывает логи отладки после каждой написанной строки, упрощая отладку в случае сбоев или зависаний. - Включить расширенное логирование - Увеличивает максимальный размер файла журнала со 100 МБ до 1 ГБ. - Фильтр журнала - Управляет категориями журнала Eden. Пример: :Info Service.LM:Debug - Ведение журнала ГПУ Уровень журналирования @@ -923,7 +900,7 @@ Файл ROM не существует Игре требуется прошивка - + сохраните и установите прошивку или нажмите \"OK\" для запуска в любом случае.]]> Поиск игры... @@ -1084,6 +1061,7 @@ Мгновенный Сбалансированный Точный + Строгий Консервативный Агрессивный diff --git a/src/android/app/src/main/res/values-sr/strings.xml b/src/android/app/src/main/res/values-sr/strings.xml index 49641692d9..b5d6476e1b 100644 --- a/src/android/app/src/main/res/values-sr/strings.xml +++ b/src/android/app/src/main/res/values-sr/strings.xml @@ -606,6 +606,8 @@ РОМ датотека не постоји Игра захтева firmware + направите дамп и инсталирајте firmware, или притисните \"OK\" да бисте наставили у сваком случају.]]> + Тражење игре... Игра није пронађена за ID наслова: %1$s diff --git a/src/android/app/src/main/res/values-uk/strings.xml b/src/android/app/src/main/res/values-uk/strings.xml index b49e320806..54ce8dfa72 100644 --- a/src/android/app/src/main/res/values-uk/strings.xml +++ b/src/android/app/src/main/res/values-uk/strings.xml @@ -1,6 +1,7 @@ + Цей застосунок запускає ігри для ігрової консолі Nintendo Switch. Він не містить ігор чи ключів.

Перш ніж почати, укажіть розташування файлу prod.keys ]]> у пам’яті вашого пристрою.

Дізнатися більше]]>
Сповіщення та помилки Показує сповіщення у разі виникнення проблем. Дозвіл на сповіщення не надано! @@ -481,6 +482,8 @@ Змушує GPU працювати на максимальній тактовій частоті. Асинхронна емуляція ГП Це обхідне рішення може покращити продуктивність завдяки асинхронному виконанню емуляції ГП, але спричинить проблеми з графікою та збільшить частоту збоїв чутливих до таймінгів операцій. + Асинхронне подання + Це обхідне рішення може покращити продуктивність завдяки переміщенню подання на окремий потік ЦП, але спричинить проблеми з графікою. Реактивне очищення Покращує точність рендерингу в деяких іграх. Увімкнути історію буфера @@ -827,6 +830,8 @@ ROM файлу не існує Гра вимагає прошивки + зробіть дамп і встановіть прошивку, або натисніть \"OK\", щоб продовжити в будь-якому разі.]]> + Пошук гри... Гру не знайдено для ID заголовку: %1$s diff --git a/src/android/app/src/main/res/values-vi/strings.xml b/src/android/app/src/main/res/values-vi/strings.xml index 06e4551f71..d08d87c64a 100644 --- a/src/android/app/src/main/res/values-vi/strings.xml +++ b/src/android/app/src/main/res/values-vi/strings.xml @@ -483,6 +483,8 @@ Tệp ROM không tồn tại Trò chơi yêu cầu firmware + dump và cài đặt firmware, hoặc nhấn \"OK\" để tiếp tục dù sao đi nữa.]]> + Đang tìm kiếm trò chơi... Không tìm thấy trò chơi cho ID Tiêu đề: %1$s diff --git a/src/android/app/src/main/res/values-zh-rCN/strings.xml b/src/android/app/src/main/res/values-zh-rCN/strings.xml index 6ae0f102b2..930058b42d 100644 --- a/src/android/app/src/main/res/values-zh-rCN/strings.xml +++ b/src/android/app/src/main/res/values-zh-rCN/strings.xml @@ -1,7 +1,7 @@ - 本软件可以运行用于 Nintendo Switch 游戏机的游戏。不包含任何游戏或密钥。

在您开始之前, 请定位您设备存储上的 prod.keys ]]> 文件。

了解更多]]>
+ 本软件可以运行Nintendo Switch游戏主机的游戏,但自身并不包含任何游戏或密钥。

请于开始之前选定位于你的设备存储空间中的prod.keys]]>。

了解更多]]>
错误与注意事项 当发生错误时显示通知。 未授予通知权限! @@ -291,25 +291,6 @@ GPU驱动获取器 GPU 驱动管理器 安装替代的驱动程序以获得更好的性能和精度 - 后处理效果 - 在渲染完成后应用 ReShade FX 效果 - 配置此游戏的效果链 - 添加效果 - 移除 - 打开列表 - 关闭列表 - 移除效果 - 预设已激活。在开始游戏前可以在后处理效果中编辑它。 - 数值已从原始预设被更改。 - 预设 - 新建预设 - 把您加载的效果及当前数值保存为一个预设,以便今后选用。 - 请给预设起一个不含等号的名称。 - 无预设 - 删除预设 - 重置预设值 - 重置为默认值 - 找不到效果。请在此文件中放置 .fx 文件: 帧生成 配置针对此游戏的帧生成设定 设定要在使用无损缩放渲染的帧之间应用的插帧。启用后强制采用FIFO呈现模式 。 @@ -324,13 +305,8 @@ 60 FPS 90 FPS 120 FPS - 开 - 关 - 固定 - 自动 - 打开或关闭帧生成并选择帧生成倍数。 - 生成帧到目标帧率。倍率会自动调整。 - 用来估算帧间运动的分辨率。较低的值可以节省 GPU 时间。 + 144 FPS + 165 FPS 帧队列目标 在显示之前有多少已完成渲染的帧正在等待。较大的队列可以缓解 GPU 突发的压力,但会增加输入延迟。 最低延迟 (无缓冲) @@ -340,15 +316,19 @@ 在游戏实际渲染的分辨率下估算运动,而不是在放大后的输出上。不会影响精确性,因为放大并不会增加运动细节。 运动预估分辨率 光流通道的分辨率,以输出的比例表示。降低它是提升性能最经济的做法。 + 半精度着色器 + 使用 16 位着色器变体。如果驱动或文件不支持会自动回退。 + 转储已生成的帧 + 为了排查问题,把光流 mip 级别和插值帧写入 lossless/debug 文件夹一次 帧生成不可用 - 这个 GPU 驱动缺少 Lossless Scaling 着色器所需的 Vulkan 内存模型或半精度 (float16) 支持。 + 这个 GPU 驱动不支持无损缩放着色器所需的 Vulkan 内存模型。 作为可选项。请提供您自己的 Lossless.dll 以便在之后可以启用帧生成。 安装 Lossless.dll 帧生成需要您自己从 Lossless Scaling 获得合法的 Lossless.dll 副本 选择其它 Lossless.dll 副本 帧生成 支持 - 不支持 (无 Vulkan 内存模型或 float16) + 不支持 (无 Vulkan 内存模型) 无损缩放 提供您自己的 Lossless.dll 文件以启用帧生成 已安装 @@ -564,10 +544,14 @@ 强制 GPU 以最大时钟运行 (温控依然生效)。 GPU 异步模拟 此技巧可通过异步运行 GPU 模拟来提升性能,但在执行与时序相关的操作时,可能带来图形显示问题以及增加崩溃概率。 + 异步呈现 + 此技巧通过将图形呈现移至独立的 CPU 线程来提升性能,但可能会带来图形显示问题。 启用反应性刷新 通过牺牲性能来提升某些游戏的渲染精度。 启用缓冲区历史 启用对先前缓冲区状态的访问。此选项可在某些游戏中提升渲染质量并保持性能的一致性。 + 启用 GPU 缓冲区回读 + 在上传前回读经由 GPU 修改过的缓冲区数据,以将其保留。一些游戏会用到这项设定以正确渲染某些效果。如果硬件无法处理额外的工作负载,则可能会导致问题。 优化顶点缓冲区 启用经过优化的顶点缓冲区绑定以提升性能。需要 Mesa 26.0 及以上版本的 Turnip 或 QCOM 驱动程序。若使用较旧版本的 Turnip 驱动 (25.3 及以下版本) 则会导致崩溃。 @@ -636,11 +620,6 @@ 日志记录 按行刷新调试日志 在每行写入时刷新调试日志,使在崩溃或冻结时调试更容易。 - 开启扩展日志 - 将最大日志文件大小从 100 MiB 提升至 1GiB。 - 日志筛选器 - 控制 Eden 的日志类别。例如: *:Info Service.LM:Debug - GPU 日志 日志等级 @@ -924,7 +903,7 @@ ROM 文件不存在 游戏需要固件 - + 转储并安装固件,或点击\"确定\"继续。]]> 正在搜索游戏... @@ -1085,6 +1064,7 @@ 即时 均衡 精确 + 严格 保守式 主动式 diff --git a/src/android/app/src/main/res/values-zh-rTW/strings.xml b/src/android/app/src/main/res/values-zh-rTW/strings.xml index 1391f1bc6e..28d0e93b4e 100644 --- a/src/android/app/src/main/res/values-zh-rTW/strings.xml +++ b/src/android/app/src/main/res/values-zh-rTW/strings.xml @@ -1,12 +1,12 @@ - 本軟體可執行 Nintendo Switch 主機的遊戲,軟體不提供遊戲和金鑰檔案。

在開始之前,請先安裝您的 prod.keys ]]> 檔案,了解更多]]>
+ 本軟體可執行Nintendo Switch主機的遊戲,軟體不提供遊戲和金鑰檔案。<br/> <br/>在開始之前,請先安裝您的 <prod.keys</b> ]]> 檔案,<br /><br />了解更多]]> 通知和錯誤 發生錯誤時顯示通知 未授予通知權限! - Eden 模擬器通知 - Eden 正在執行 + Eden模擬器通知 + Eden正在執行 秒 @@ -16,7 +16,7 @@ 範圍最大必須為%1$d 無效的範圍 - 使用個別遊戲設定中 + 使用個別設定中 顯示虛擬按鍵 @@ -32,7 +32,7 @@ 使用控制器時自動隱藏虛擬按鍵 在使用控制器時自動隱藏畫面上的虛擬按鍵,會在控制器斷開連接後重新出現 反轉手把的 確認/返回 按鈕 - 使用 Eden 時將手把的確認及返回鍵反轉以符合 Switch 與 Xbox 的操作方式 + 使用Eden時將手把的確認及返回鍵反轉以符合Switch與Xbox的操作方式 虛擬按鍵設定 調整虛擬按鍵的位置與顯示設定 @@ -54,7 +54,7 @@ 啟用效能統計疊加層 設定疊加層中顯示的資訊 顯示影格率 - 顯示目前的影格率 + 顯示當前影格率 顯示影格時間 顯示應用程式的記憶體用量 顯示模擬器的記憶體用量 @@ -85,11 +85,11 @@ 裝置疊加層 設定裝置疊加層中顯示的資訊 - 顯示 Eden 的組建版本 + 顯示Eden的組建版本 顯示圖形驅動程式的版本 顯示裝置型號 - 顯示 GPU 型號 - 顯示 CPU 型號 + 顯示GPU型號 + 顯示CPU型號 顯示韌體版本 @@ -99,13 +99,13 @@ 同步核心速度 將核心速度與最大速度百分比同步,在不改變遊戲實際速度的情況下提高效能 啟用主機 MMU 模擬 - 此最佳化可加速客體程式的記憶體存取。啟用後,客體記憶體讀取/寫入將直接在記憶體中執行並利用主機的 MMU。停用此功能將強制所有記憶體存取使用軟體 MMU 模擬 + 此最佳化可加速客體程式的記憶體存取。啟用後,客體記憶體讀取/寫入將直接在記憶體中執行並利用主機的 MMU。停用此功能將強制所有記憶體存取使用軟體 MMU 模擬。 偵錯開關 僅限開發用途 - 0 到 65535 + 0到65535 - NVDEC 模擬 + NVDEC模擬 若在過場動畫中當機請切換成 CPU 無 @@ -121,7 +121,7 @@ 加入 瀏覽公開房間 使用者名稱 - IP 位址 + IP位址 埠 房間建立成功 成功加入房間 @@ -129,8 +129,8 @@ 網路錯誤 連線中斷 使用者名稱已被其他人使用 - MAC 位址衝突 - 主機 ID 衝突 + MAC位址衝突 + 主機ID衝突 版本不符 密碼錯誤 無法連接 @@ -143,7 +143,7 @@ 您已被房主踢出 未知錯誤 房間未初始化 - 房間閒置中 + 房間閒置 正在加入房間 已加入房間 房間管理員 @@ -151,7 +151,7 @@ %1$s 離開 %1$s 被踢出 %1$s 被封鎖 - IP 位址已解封 + 位址已解封 踢出成員 密碼 正在加入… @@ -173,7 +173,7 @@ 封鎖使用者 公開房間 未找到公開房間 - 請輸入密碼 + 需要輸入密碼 :%1$d/%2$d 遊戲 任意遊戲 @@ -184,14 +184,14 @@ 搜尋房間… 遊戲 大廳類型 - 長度需為 3-20 個字元 - 請填寫這個欄位 - 需要 Web 令牌,請前往進階設定 -> 系統 -> 網路 - IP 格式無效 - 必須介於 4-20 個字元之間,並且僅能使用英文字母、數字、句點、破折號、底線和空格(標點符號須為英文格式) - 使用者名稱無效,請在系統 -> 網路中檢查設定 - 必須為 48 個字元,且僅包含小寫字母 a-z - 埠號需為 1-65535 + 長度需為3-20個字元 + 必填 + 需要Web令牌,請前往進階設定 -> 系統 -> 網路 + IP格式無效 + 必須介於4-20個字元之間,並且僅能使用英文字母、數字、句點、破折號、底線和空格(標點符號須為英文格式) + 使用者名稱無效,請在系統→網路中檢查設定 + 必須為48個字元,且僅包含小寫字母a-z + 埠號需為1-65535 取消 確定 重新整理 @@ -201,16 +201,16 @@ 歡迎! - 瞭解如何設定 Eden 並開始模擬 + 瞭解如何設定 Eden 並開始模擬。 開始使用 金鑰 - 使用下方的按鈕安裝您的 prod.keys 檔案 + 使用下方的按鈕安裝您的 prod.keys 檔案。 韌體 使用下方的按鈕安裝您的firmware.zip檔案 遊戲資料夾 使用下方的按鈕選擇您的遊戲資料夾。 完成 - 您已準備就緒\n盡情遊玩您的遊戲! + 您已準備就緒。\n盡情遊玩您的遊戲! 下一步 上一步 新增遊戲 @@ -228,8 +228,8 @@ 不再顯示 遊戲目錄新增成功 檢查更新 - 在 Eden 啟動時檢查有無新版本並選擇是否要下載與安裝更新 - 發現新版本 + 在Eden啟動時檢查有無新版本並選擇是否要下載與安裝更新 + 偵測到新版本 有更新可供安裝:%1$s\n\n您要進行更新嗎? 下載更新中 更新下載失敗 @@ -237,7 +237,7 @@ 更新安裝失敗:%1$s 搜尋 設定 - 找不到遊戲檔案,或者尚未選取遊戲目錄 + 找不到檔案,或者尚未選取遊戲目錄 管理遊戲資料夾 允許 Eden 尋找您的遊戲檔案 跳過選擇遊戲資料夾? @@ -252,7 +252,7 @@ https://yuzu-mirror.github.io/help/quickstart/#guide-introduction 跳過安裝韌體? 設定模擬器資料 - 模擬器需要金鑰才能正常執行,同時建議安裝韌體以啟動 QLaunch 小程式 + 模擬器需要金鑰才能正常執行,同時建議安裝韌體以啟動QLaunch小程式 授予權限 授予權限以使用模擬器的特定功能 許多遊戲需要韌體才能正常運作 @@ -273,10 +273,10 @@ 版本號碼 基本資訊 硬體 - 支援的 ABI - CPU 資訊 - GPU 資訊 - Vulkan 驅動程式版本 + 支援的ABI + CPU資訊 + GPU資訊 + Vulkan驅動程式版本 取得裝置資訊失敗 記憶體資訊 記憶體大小 @@ -287,115 +287,66 @@ 跳過 取消 安裝 Amiibo 金鑰 - 需要先安裝才能在遊戲中使用 Amiibo - GPU 驅動程式下載器 + 若要在遊戲中使用 Amiibo 得先安裝 + GPU驅動程式下載器 GPU 驅動程式管理員 安裝替代驅動程式以取得潛在的更佳效能或準確度 - 後製處理效果 - 在渲染完成後套用 ReShade FX 效果 - 為此遊戲設定特殊濾鏡或效果 - 新增效果 - 移除 - 開啟清單 - 收起清單 - 移除效果 - 濾鏡已啟用。請在開啟遊戲前於\"後製處理效果\"中調整 - 數值已變更,與原始濾鏡設定不同 - 濾鏡 - 新增濾鏡 - 將目前載入的效果及數值儲存為設定檔方便日後使用 - 請為此濾鏡設定檔命名,名稱中不得包含等號且不能與預先提供的設定檔名稱相同 - 無濾鏡 - 刪除濾鏡 - 重設此濾鏡的所有設定值 - 重設為預設值 - 找不到設定檔。請將濾鏡效果的 .fx 檔案放置於此資料夾: 影格生成 調整此遊戲的影格生成設定 - 使用Lossless Scaling在已渲染的影格之間插入補間影格。啟用此功能時,會強制採用FIFO垂直同步 + 使用 Lossless Scaling 在已渲染的影格之間插入補間影格。啟用此功能時,會強制採用 FIFO 垂直同步 影格倍率 - 設定在每個已渲染的影格中要顯示的影格數,數值越高所需的GPU運算時間也會按比例增加。若要求的影格數超過裝置顯示器能呈現的數量將會降低模擬速度 + 設定在每個已渲染的影格中要顯示的影格數。數值越高所需的 GPU 運算時間也會按比例增加。若要求的影格數超過裝置顯示器能呈現的數量將會降低模擬速度 2x 3x 4x 目標影格率 - 選擇裝置顯示器能實際呈現的影格率,之後倍率器會自動升高或降低以維持影格率。如果某個調整導致遊戲本身運作變慢,則會自動復原該設定 + 選擇裝置顯示器能實際呈現的影格率。之後倍率器會自動升高或降低以維持影格率。如果某個調整導致遊戲本身運作變慢,則會自動復原該設定 使用固定倍率 60 FPS 90 FPS 120 FPS - 開啟 - 關閉 - 固定 - 自動 - 開啟或關閉影格生成後選擇影格倍率 - 選擇要生成的目標影格率,倍率器會自動調整 - 用來預測影格之間動態的解析度,較低的數值可以減少 GPU 運算時間 + 144 FPS + 165 FPS 影格佇列目標 最多允許多少個已完成的影格在顯示器前等待,較大的佇列可以吸收 GPU 突發負載,但會增加輸入延遲 最低延遲(無緩衝) - 平衡(1 影格) - 最流暢(2 影格) + 平衡(1影格) + 最流暢(2影格) 配合遊戲調整運動預測 - 以遊戲實際渲染的解析度而非升頻後的輸出進行運動預測,由於升頻後不會增加任何動態細節,因此不會影響準確度 + 以遊戲實際渲染的解析度而非升頻後的輸出進行運動預測。由於升頻後不會增加任何動態細節,因此不會影響準確度 運動預測解析度 - 光流處理的解析度,以輸出解析度的比例表示,降低此設定值是減少效能負載最有效的方法 + 光流處理的解析度,以輸出解析度的比例表示。降低此設定值是減少效能負載最有效的方法 + 半準確著色器 + 使用16位元著色器。如果驅動程式或著色器檔案不支援則會自動切換成其它版本 + 傾印生成的著色器 + 將光流的 MIP 層級與補間影格寫入 Eden 資料夾中的 lossless\debug 資料夾以便進行疑難排解 無法使用影格生成 - 此 GPU 驅動程式缺少 Lossless Scaling 著色器所需的 Vulkan 記憶體模型或半精度浮點數(float16)支援 + Lossless Scaling 的著色器需要 Vulkan 記憶體模型,所選的驅動程式不支援該功能 可選擇安裝自己擁有的 Lossless.dll 以在之後啟用影格生成功能 - 安裝 Lossless.dll - 您需要擁有從合法管道獲得的 Lossless Scaling 並從該軟體的資料夾中取得 Lossless.dll 檔案才能使用影格生成功能 - 安裝不同的 Lossless.dll 檔案 - 影格生成 - 支援 - 不支援(無 Vulkan 記憶體模型或 float16) - Lossless Scaling - 安裝您擁有的 Lossless.dll 檔案以使用影格生成 - 已安裝 - 未安裝 - 更換 - 刪除 - 刪除已安裝的 Lossless.dll 及預先編譯的著色器 - 影格生成功能會停止運作直到您重新安裝Lossless.dll,您的 Lossless.dll原始檔不會被 Eden 修改 - Lossless.dll 未安裝 - 前往 設定 -> Lossless Scaling 安裝以使用影格生成功能 - 請先關閉遊戲 - Lossless.dll 無法在遊戲執行時進行更換 - 沒有東西可以刪除 - 尚未安裝 Lossless.dll - 準備影格生成著色器中... - 成功安裝 Lossless.dll - 無法安裝 Lossless.dll - 無法複製選取的檔案 - 無法讀取選取的檔案 - 選取的檔案並不是 Windows 程式庫。請在 Lossless Scaling 的安裝位置(資料夾)中選擇 Lossless.dll - 這個 Lossless.dll 的副本並未包含影格生成著色器。請更新 Lossless Scaling 後重試 - 無法轉譯影格生成著色器,尚不支援此 Lossless Scaling 版本 - 轉譯的著色器無法寫入到儲存空間,請確認手機容量是否充足 進階設定 - 調整模擬器設定 + 進行模擬器設定 最近遊玩 最近新增 開啟 Eden 資料夾 管理 Eden 的內部檔案 - 自訂 Eden 的主題與介面 + 自訂Eden的主題與介面 找不到檔案管理員 無法開啟 Eden 目錄 請使用檔案管理員的側邊面板手動定位到使用者資料夾 管理儲存資料 - 匯入/匯出遊戲的儲存資料\n壓縮檔必須為.zip格式\n壓縮檔中首個子資料夾名稱必須為遊戲ID - 匯入儲存資料 - 這將會以提供的檔案覆蓋現有的該遊戲儲存資料,您確定要繼續嗎? - 正在匯入儲存資料… - 正在匯出儲存資料… - 已成功匯入 + 導入/導出遊戲的儲存資料\n壓縮檔必須為.zip格式\n壓縮檔中首個子資料夾名稱必須為遊戲 ID + 導入儲存資料 + 這將會以提供的檔案覆寫現有的該遊戲儲存資料,您確定要繼續嗎? + 正在導入儲存資料… + 正在導出儲存資料… + 已成功導入 無效的儲存目錄結構 首個子資料夾名稱必須為遊戲 ID 安裝韌體 韌體必須為 ZIP 壓縮檔,將會用於部分遊戲的啟動 正在安裝韌體 韌體安裝失敗 - 請確保韌體 nca 檔案位於 zip 壓縮檔的根目錄後再試一次 + 請確保韌體 nca 檔案位於 zip 壓縮檔的根目錄,然後再試一次。 韌體解除安裝失敗 分享偵錯記錄 分享 Eden 的記錄檔以便對相關問題進行偵錯 @@ -415,7 +366,7 @@ %1$d 覆寫成功 https://yuzu-mirror.github.io/help/quickstart/#dumping-installed-updates 您的裝置不支援自訂驅動程式 - 此裝置不支援注入自訂驅動程式\n請以後再來查看是否已新增支援! + 此裝置不支援注入自訂驅動程式。\n請以後再來查看是否已新增支援! 管理 Eden 資料 安裝韌體、金鑰,導入/導出使用者資料及安裝其它項目! 遊戲資料夾 @@ -446,12 +397,12 @@ 金鑰安裝失敗 金鑰安裝成功 一個或多個金鑰安裝失敗 - 請確保金鑰檔案具有 .keys 副檔名後重試 - 金鑰初始化失敗,請檢查您的轉儲工具是否為最新版本並重新轉儲金鑰 + 請確保金鑰檔案具有.keys副檔名後重試。 + 金鑰初始化失敗。請檢查您的轉儲工具是否為最新版本並重新轉儲金鑰。 Qlaunch - 從 Switch 系統主畫面啟動應用程式(目前僅支援英文) + 從Switch系統主畫面啟動應用程式(目前僅支援英文) 小程式啟動器 使用已安裝的韌體啟動系統小程式 未安裝韌體 @@ -478,19 +429,19 @@ 這些專案使 Eden Android 版成為可能 組建版本 使用者資料 - 匯入/匯出所有應用程式資料\n\n匯入使用者資料時,現有的使用者資料將被取代!\n\n直接從 Citron 匯入使用者資料可能會出現問題,建議手動匯入所有所需資料 - 正在匯出使用者資料… - 正在匯入使用者資料… + 導入/導出所有應用程式資料。\n\n導入使用者資料時,現有的使用者資料將被取代!\n\n直接從 Citron 導入使用者資料可能會出現問題,建議手動導入所有所需資料。 + 正在導出使用者資料… + 正在導入使用者資料… 無效的 Eden 備份 - 使用者資料匯出成功 - 使用者資料匯入成功 - 匯出已取消 - 請確保使用者資料夾位於 zip 壓縮檔的根目錄,並在 config/config.ini 路徑中包含組態檔案後重試 + 使用者資料導出成功 + 使用者資料導入成功 + 導出已取消 + 請確保使用者資料夾位於 zip 壓縮檔的根目錄,並在 config/config.ini 路徑中包含組態檔案,並再試一次 限制模擬速度 將模擬速度限制在標準速度的指定百分比 限制速度百分比 - 指定模擬速度的百分比,100% 為標準速度,更高或更低的值將會減少或增加速度限制 + 指定模擬速度的百分比。100% 為標準速度,更高或更低的值將會減少或增加速度限制 加速模式 當開啟加速模式時,模擬器將以此速度執行 慢速模式 @@ -517,19 +468,19 @@ CPU 時脈 提高模擬 CPU 回報的時脈,可以減少某些 FPS 限制。較弱的 CPU 可能會出現效能下降的情況,部分遊戲可能會出現異常 - 自訂 CPU 時脈 - 自訂 CPU 時脈,更高的值可能提高效能,但也可能導致遊戲卡死。建議範圍為 77-21000 + 自訂CPU時脈 + 自訂CPU時脈。更高的值可能提高效能,但也可能導致遊戲卡死。建議範圍為77-21000。 時脈 - 記憶體布局 - (實驗性)更改模擬記憶體布局,此設定不會提高效能,但可能有助於使用模組來提高解析度的遊戲的載入。不要在 RAM 為 8GB 或更少的手機上使用。若遊戲崩潰請將進階設定裡偵錯選項中的 CPU 後端改為 Dynarmic(JIT) + 記憶體佈局 + (實驗性)更改模擬記憶體佈局。此設定不會提高效能,但可能有助於使用模組來提高解析度的遊戲的載入。不要在 RAM 為 8GB 或更少的手機上使用。若遊戲崩潰請將進階設定裡偵錯選項中的CPU後端改為 Dynarmic (JIT) 生成 網路令牌 - 用於建立公開大廳的網路令牌,由 48 個小寫字母 a-z 組成 + 用於建立公開大廳的網路令牌。由48個小寫字母a-z組成 網路使用者名稱 - 多人遊戲房間中顯示的使用者名稱。必須為 4-20 個字元,僅能使用英文字母、數字、句點、破折號、底線和空格(標點符號須為英文格式) + 多人遊戲房間中顯示的使用者名稱。必須為4-20個字元,僅能使用英文字母、數字、句點、破折號、底線和空格(標點符號須為英文格式) 網路 @@ -544,64 +495,68 @@ 進階 GPU 模式 - 設定 GPU 模擬的準確度,大多數遊戲在設定為快速時即可正常渲染,但有些需要渲染粒子的遊戲仍需設為準確來避免圖形錯誤 + 設定 GPU 模擬的準確度。大多數遊戲在設定為快速時即可正常渲染,但有些需要渲染粒子的遊戲仍需設為準確來避免圖形錯誤 DMA 準確度 - 控制 DMA 準確度,將準確度設為穩定可以修復某些遊戲中的問題,但在某些情況下也可能影響效能。如果不確定,請保留為預設 + 控制 DMA 準確度。將準確度設為穩定可以修復某些遊戲中的問題,但在某些情況下也可能影響效能。如果不確定,請保留為預設 GPU 同步柵欄模式 - 控制 GPU 同步柵欄模式,即時是速度最快的選項,但可能會導致一些問題;使用平衡可以提供更好的相容性並修復某些遊戲中的錯誤;準確則是在犧牲部分效能的情況下進一步提升相容性;嚴格是最慢的選項,但可以修復那些對同步要求更嚴格的遊戲中的問題;預設則會依照 GPU 準確度設定 + 控制 GPU 同步柵欄模式。即時是速度最快的選項,但可能會導致一些問題。使用平衡可以提供更好的相容性並修復某些遊戲中的錯誤。準確則是在犧牲部分效能的情況下進一步提升相容性。嚴格是最慢的選項,但可以修復那些對同步要求更嚴格的遊戲中的問題。預設則會依照 GPU 準確度設定 各向異性過濾 改善斜角檢視時的紋理品質 - VRAM 使用模式 - 控制 GPU 記憶體的分配與釋放策略 - ASTC 解碼方式 - 選擇 ASTC 壓縮紋理的解碼方式:CPU(慢速、穩定)、GPU(快速、推薦)或 CPU 非同步(無卡頓,可能導致問題) + VRAM使用模式 + 控制GPU記憶體的分配與釋放策略 + ASTC解碼方式 + 選擇ASTC壓縮紋理的解碼方式:CPU(慢速、穩定)、GPU(快速、推薦)或CPU非同步(無卡頓,可能導致問題) 同步記憶體操作 - 確保計算和記憶體操作之間的資料一致性,此選項應能修復某些遊戲中的問題,但在某些情況下可能會降低效能。使用 Unreal Engine 4 的遊戲似乎受影響最大 + 確保計算和記憶體操作之間的資料一致性。 此選項應能修復某些遊戲中的問題,但在某些情況下可能會降低效能。 使用Unreal Engine 4的遊戲似乎受影響最大 磁碟著色器快取 將產生的著色器快取儲存至硬碟以減少中斷 - 強制使用最大時脈(僅限 Adreno) - 強制GPU以可能的最大時脈運作(熱溫限制仍會被套用) + 強制使用最大時脈 (僅限Adreno) + 強制 GPU 以可能的最大時脈執行 (熱溫限制仍會被套用) GPU 非同步模擬 此修改可透過使用 GPU 非同步模擬來提升性能,不過可能會導致圖形問題且會提高在進行時序相關操作時當機的機率 + 非同步呈現 + 此修改可以透過將渲染移至單獨的 CPU 執行緒來提升性能,但可能會導致圖形問題 使用重新啟用排清 - 犧牲效能以改善部分遊戲的轉譯準確度 + 犧牲效能,以改善部分遊戲的轉譯準確度。 啟用緩衝區歷史 - 允許存取先前的緩衝區狀態,此選項可能會改善部分遊戲的渲染品質與效能穩定性 + 允許存取先前的緩衝區狀態。此選項可能會改善部分遊戲的渲染品質與效能穩定性 + 啟用 GPU 緩衝區讀回 + 透過在上傳之前先將 GPU 修改過的緩衝區資料讀回來保存資料,部分遊戲需要啟用此功能才能正常渲染遊戲特效。如果硬體無法負荷可能會導致錯誤 最佳化頂點緩衝區 - 啟用最佳化的頂點緩衝區綁定,需要安裝 Mesa 26.0+ Turnip drivers/Qualcomm drivers。使用舊版 Turnip drivers 會導致當機(25.3 版或更低的版本) + 啟用最佳化的頂點緩衝區綁定。需要安裝 Mesa 26.0+ Turnip drivers/Qualcomm drivers。使用舊版 Turnip drivers 會導致當機 (25.3版和更低的版本) 修改 GPU 時脈 讓遊戲誤以為 GPU 工作能更快完成,避免遊戲為了配合 Switch 的時脈而降低解析度與渲染距離 - 跳過 CPU 內部失效處理 - 在記憶體更新期間跳過某些 CPU 端快取的失效處理,減少 CPU 使用率並提高其性能。可能會導致某些遊戲出現故障或當機 + 跳過CPU內部失效處理 + 在記憶體更新期間跳過某些CPU端快取的失效處理,減少CPU使用率並提高其性能。可能會導致某些遊戲出現故障或當機。 修正光暈特效 - 在 \"薩爾達傳說:織夢島\" 和 \"薩爾達傳說:智慧的再現\" 中減少光暈模糊的問題並移除 \"橫衝直撞:狂飆樂園重製版\" 中的光暈效果(適用於 Adreno A6XX - A7XX/ Turnip)。警告:可能會在其它遊戲中導致圖形異常 + 在 薩爾達傳說:織夢島 和 薩爾達傳說:智慧的再現 中 減少光暈模糊的問題並移除 橫衝直撞:狂飆樂園重製版 中的光暈效果 (Adreno A6XX - A7XX/ Turnip)。警告:可能會在其它遊戲中導致圖形異常 模擬 BGR565 - 修正遊戲中出現的色彩反轉、圖形異常或陰影異常 + 修正遊戲中出現的顏色反轉、圖形異常或陰影異常 啟用舊版重新縮放處理 透過快速重新縮放處理來啟用遊戲重新縮放設定階段的舊版處理方式 使用非同步著色器 - 使用非同步編譯著色器,這可能會減少卡頓,但也可能導致圖形錯誤 + 使用非同步編譯著色器。這可能會減少卡頓,但也可能導致圖形錯誤。 GPU Unswizzle 設定 - 設定基於 GPU 的 Unswizzling 參數或完全停用此功能,調整此設定以在性能與紋理載入品質中取得平衡 + 設定基於 GPU 的 Unswizzling 參數或完全停用此功能。調整此設定以在性能與紋理載入品質中取得平衡 啟用 GPU Unswizzle 停用 GPU Unswizzle 最大紋理尺寸 - 設定 GPU 紋理 Unswizzling 的最大值(MB),雖然 GPU 處理中型和大型紋理的速度較快,但 CPU 處理非常小的紋理可能更有效率。調整此設定以在 GPU 加速與 CPU 負載之間取得平衡 - GPU Unswizzle Stream 大小 - 設定每個影格處理大型紋理 Unswizzling 的資料上限,數值越高載入紋理的速度越快,但會增加畫面延遲;數值較低則能降低 GPU 負載,不過有可能導致至紋理載入不完全甚至突然出現 - GPU Unswizzle Chunk 大小 - 設定 3D 紋理每批次處理的深度切片數量,增加此數值可提升規格較佳 GPU 的處理效率,但在較低規格的硬體上可能導致卡頓或驅動程式逾時 + 設定 GPU 紋理 Unswizzling 的最大值 (MB)。雖然 GPU 處理中型和大型紋理的速度較快,但 CPU 處理非常小的紋理可能更有效率。整此設定以在 GPU 加速與 CPU 負載之間取得平衡 + GPU Unswizzle 流大小 + 設定每個影格處理大型紋理 Unswizzling 的資料上限。數值越高載入紋理的速度越快,但會增加畫面延遲;數值較低則能降低 GPU 負載,不過有可能導致至紋理載入不完全甚至突然出現 + GPU Unswizzle 塊大小 + 設定 3D 紋理每批次處理的深度切片數量。增加此數值可提升規格較佳 GPU 的處理效率,但在較低規格的硬體上可能導致卡頓或驅動程式逾時 預設 擴充功能 擴展動態狀態 - 控制擴展動態狀態中可使用的功能數量,較高的數值可根據驅動程式支援的動態狀態減少管線編譯的次數 + 控制擴展動態狀態中可使用的功能數量。較高的數值可根據驅動程式支援的動態狀態減少管線編譯的次數。 停用 頂點輸入動態狀態 啟用此功能可提供更彈性的頂點輸入處理方式,並可能減少頂點/緩衝區的管線編譯時間 @@ -617,48 +572,43 @@ 子母畫面 位於背景時最小化視窗 - 解析度縮放到 2 倍或更高可能會導致問題,並可能顯著降低設備速度 + 解析度縮放到2倍或更高可能會導致問題,並可能顯著降低設備速度 CPU 時脈 使用自動存根 - 自動補上缺少的服務和功能,可提高相容性但可能導致當機和穩定性問題 + 自動補上缺少的服務和功能。可提高相容性但可能導致當機和穩定性問題。 GPU API 圖形偵錯 將圖形 API 設為慢速偵錯模式 BCn 區塊壓縮紋理修補 - 覆寫 Adreno GPU 的 BCn 紋理格式自動偵測。通常會根據 Android 版本自動偵測(會在 API 28 以上的裝置自動啟用) + 覆寫 Adreno GPU 的 BCn 紋理格式自動偵測。通常會根據 Android 版本自動偵測(會在API 28 以上自動啟用) Fastmem 日誌 按行寫入偵錯日誌 - 寫入一行日誌就立刻更新偵錯記錄,讓程式在當機或畫面凍結時更容易偵錯 - 啟用更詳細的日誌記錄 - 將日誌檔的最大檔案限制從 100MB 提高到 1GB - 日誌過濾器 - 控制 Eden 日誌的紀錄類別。例如: *:Info Service.LM:Debug - + 在每行寫入時重新整理偵錯日誌,讓程式在當機或閃退時更容易偵錯。 GPU 日誌 記錄層級 - GPU 日誌的詳細層級(越高日誌越詳細,不過會更容易過熱) + GPU 日誌的詳細層級 (越高日誌越詳細,不過會更容易過熱) 記錄 Vulkan API 呼叫 在環形緩衝區中記錄所有 Vulkan API 呼叫 傾印 SPIR-V 著色器 - 將重新編譯後的 SPIR-V 二進位檔案(.spv)儲存至 Eden 資料夾裡的 dump 資料夾中。可使用 spirv-dis/spirv-cross/spirv-val 進行檢查 + 將重新編譯後的 SPIR-V 二進位檔案 (.spv) 儲存至 Eden 資料夾裡的 dump 資料夾中。可使用 spirv-dis/spirv-cross/spirv-val 進行檢查 傾印客體(Maxwell)著色器 - 將 Maxwell 客體著色器位元組碼檔案(.ash)儲存至 Eden 資料夾裡的 dump 資料夾中。可使用 nvdisasm 進行檢查 + 將 Maxwell 客體著色器位元組碼檔案 (.ash) 儲存至 Eden 資料夾裡的 dump 資料夾中。可使用 nvdisasm 進行檢查 傾印 Maxwell 巨集 - 將 Maxwell 巨集程式檔案(.macro)儲存至 Eden 資料夾裡的 dump 資料夾中。可使用 envydis 進行檢查 + 將 Maxwell 巨集程式檔案 (.macro) 儲存至 Eden 資料夾裡的 dump 資料夾中。可使用 envydis 進行檢查 追蹤 GPU 記憶體 監控 GPU 記憶體的分配和釋放 驅動程式偵錯資料 擷取驅動程式的特定偵錯資料(例如 Turnip breadcrumbs) 環形緩衝區大小 - 追蹤的近期 Vulkan 呼叫數量(預設為 512) + 追蹤的近期 Vulkan 呼叫數量(預設為 512 ) 64 至 4096 個項目 一般 @@ -688,7 +638,7 @@ 靈敏度 無感帶 用按鈕、按鍵來模擬搖桿 - 修改按鈕模擬左/右搖桿的值,視遊戲不同而有所差異\n(模擬左搖桿時,若將此數值設為 50,則按下按鈕時遊戲裡的人物可能只會走動而不是奔跑;模擬右搖桿時所使用的值則是會影響到轉視角的速度,數值越高代表使用的模擬值越大) + 修改按鈕模擬左/右搖桿的值,視遊戲不同而有所差異\n(模擬左搖桿時,若將此數值設為50,則按下按鈕時遊戲裡的人物可能只會走動而不是奔跑;模擬右搖桿時所使用的值則是會影響到轉視角的速度,數值越高代表使用的模擬值越大) 肩部按鍵 左 SL 左 SR @@ -738,7 +688,7 @@ 按下一個按鈕或肩部按鍵/移動搖桿 將方向鍵配對到 %1$s 配對到 %1$s - 匯入設定檔失敗 + 導入設定檔失敗 儲存設定檔失敗 重設控制器配對 您確定要將此控制器的所有配對重設為預設值?此動作無法復原 @@ -759,21 +709,21 @@ 自動 提交 無 - 匯入 - 匯出 - 匯出失敗 - 匯入失敗 + 導入 + 導出 + 導出失敗 + 導入失敗 正在取消 安裝 - 下載 + 獲取 刪除 編輯 - 已成功匯入 - 已成功匯出 + 已成功導入 + 已成功導出 開始 全域設定 個別遊戲設定 - 匯入完成 + 導入完成 使用全域設定 操作已成功完成 確認 @@ -790,12 +740,12 @@ 顯示版本 - 下載失敗 - 下載過程中發生錯誤 + 獲取失敗 + 獲取過程中發生錯誤 顯示下載 隱藏下載 快取目錄不可用 - 未回傳任何資料 + 回應內容為空 %1$s 安裝成功 驅動程式安裝失敗 無法安裝 %1$s 驅動程式,您的系統支援此驅動程式嗎? @@ -804,9 +754,9 @@ 安裝中… 最新 推薦驅動程式: - GPU 型號 - 不支援的 GPU - 您的 GPU 不支援驅動程式注入,不建議嘗試設定自訂驅動程式 + GPU型號 + 不支援的GPU + 您的GPU不支援驅動程式注入。不建議嘗試設定自訂驅動程式。 設定 @@ -836,21 +786,13 @@ 成功遷移儲存資料 儲存資料遷移失敗 存檔目錄設定完成 - 所選取的位置已有儲存資料,是否要取代該檔案? - 若要自訂路徑必須授予所有檔案的存取權 - 授予權限 - NAND 路徑 - 設定 NAND 資料的自訂路徑 - 虛擬SD卡路徑 - 設定虛擬SD卡儲存空間的自訂路徑 - 路徑設定成功 跳過 - 軟體資訊 + 資訊 程式 ID、開發人員及版本資訊 個別遊戲設定 - 調整此遊戲的專用設定 + 編輯此遊戲的特定設定 啟動設定 路徑 程式 ID @@ -861,7 +803,7 @@ 切換模組、更新及 DLC 遊玩時間: 重設遊玩時間 - 將此遊戲的遊玩時間重設為 0 + 將此遊戲的遊玩時間重設為0 您確定要重設此遊戲的遊玩時間嗎? 遊玩時間已重設 修改遊玩時間 @@ -870,32 +812,32 @@ 小時 分鐘 秒 - 必須介於 0 到 9999 小時之間 - 必須介於 0 到 59 分鐘之間 - 必須介於 0 到 59 秒之間 - 成功修改遊玩時間 + 必須介於0到9999小時之間 + 必須介於0到59分鐘之間 + 必須介於0到59秒之間 + 成功更新遊玩時間 清除著色器快取 清除此遊戲所有已編譯的著色器快取 重新編譯著色器快取的過程中可能會導致遊戲有些微卡頓 著色器快取已成功清除 已刪除著色器快取 - 為了維持Vulkan管線驗證,Eden 已自動清除所有著色器快取,若要預防閃退和圖形錯誤,這是必須的動作。因為著色器需要重新編譯,您在遊戲過程中可能會遇到些微卡頓的情況 + 為了維持Vulkan管線驗證,Eden已自動清除所有著色器快取。為了預防閃退和圖形錯誤,這是必須的動作。因為著色器需要重新編譯,您在遊戲過程中可能會遇到些微卡頓的情況 附加元件:%1$s 儲存資料 管理此遊戲的儲存資料 刪除儲存資料 刪除此遊戲的所有儲存資料 - 這將會刪除此遊戲的所有儲存資料且無法復原,您確定要繼續嗎? + 這將會刪除此遊戲的所有儲存資料,且無法復原,您確定要繼續嗎? 儲存資料已成功刪除 內容類型 更新及 DLC - 模組及金手指 + 模組及密技 重要的˙附加元件通知 - 若要安裝模組及金手指,您必須選擇一個包含 cheats/、romfs/ 或 exefs/ 的目錄。我們無法驗證這些內容是否與您的遊戲相容,所以請謹慎安裝! + 若要安裝模組及密技,您必須選擇一個包含 cheats/、romfs/ 或 exefs/ 的目錄。我們無法驗證這些內容是否與您的遊戲相容,所以請謹慎安裝! 無效的目錄 - 請確保您選取的目錄包含 cheats/、romfs/ 或 exefs/ 資料夾,然後再試一次 + 請確保您選取的目錄包含 cheats/、romfs/ 或 exefs/ 資料夾,然後再試一次。 附加元件已成功安裝 正在驗證內容… 內容安裝通知 @@ -903,37 +845,36 @@ 確認刪除 您確定要刪除此附加元件嗎? 完整性驗證 - 驗證中... 完整性驗證成功! 完整性驗證失敗! 文件可能已經損壞 - 無法正常執行完整性驗證 - 未完成文件完整性檢查 + 無法執行完整性驗證 + 未檢查文件的完整性 以下文件的完整性驗證失敗:\n %1$s 分享設定 - 匯入設定 - 匯出設定 + 導入設定 + 導出設定 分享設定失敗 您的 ROM 已加密 遊戲卡或數位版遊戲。]]> - prod.keys 檔案已安裝,讓遊戲可以正常解密]]> + prod.keys 檔案已安裝,讓遊戲可以解密。]]> 初始化視訊核心時發生錯誤 這經常是因為不相容的 GPU 驅動程式造成,安裝自訂 GPU 驅動程式可能會解決此問題。 ROM 檔案不存在 遊戲需要韌體 - + 轉儲並安裝韌體,或點擊\"確定\"繼續。]]> 正在搜尋遊戲... - 找不到標題 ID 的遊戲: %1$s + 找不到標題ID的遊戲: %1$s 自訂設定失敗 無法套用自訂設定 %1$s: %2$s 使用預設設定啟動 啟動已取消 - 無法套用請求的設定,這可能是由於缺少 GPU 驅動程式或設定問題 + 無法套用請求的設定。這可能是由於缺少GPU驅動程式或設定問題。 已套用自訂設定 正在啟動 %1$s... 無法初始化遊戲 @@ -946,18 +887,18 @@ 設定寫入失敗 套用設定失敗 設定已存在 - %1$s已存在自訂設定\n\n您要取代它嗎?\n\n這個動作無法復原 + %1$s已存在自訂設定\n\n您要覆寫它嗎?\n\n這個動作無法復原 正在檢查現有設定... - 已取消取代該設定 - 取代 + 覆寫已取消 + 覆寫 - 未安裝所需的驅動程式: %s - 無效的驅動程式檔案: %s - 無可用網路連線,請檢查您的網路連線並重試 - 需要 GPU 驅動程式 + 未安裝所需的驅動程式: %s + 無效的驅動程式檔案: %s + 無可用網路連線。請檢查您的網路連線並重試。 + 需要GPU驅動程式 這個遊戲的設定需要 \"%s\"驅動程式,而它並沒有安裝在您的裝置上\n\n要下載並安裝此驅動程式嗎? - 驅動程式下載已取消,沒有所需的驅動程式無法啟動遊戲 + 驅動程式下載已取消。沒有所需的驅動程式無法啟動遊戲。 下載 @@ -966,7 +907,7 @@ 切換控制 相對搖桿中心 方向鍵滑動 - 觸覺回饋 + 觸覺回饋技術 顯示虛擬按鍵 隱藏虛擬按鍵 全部切換 @@ -975,11 +916,10 @@ 不透明度 重設虛擬按鍵 編輯虛擬按鍵 - 對齊網格 暫停模擬 - 繼續模擬 + 取消暫停模擬 疊加層/虛擬按鍵設定 - 導入 Amiibo + 導入Amiibo 觸控螢幕 鎖定側邊選單 解鎖側邊選單 @@ -987,12 +927,12 @@ Amiibo - 該 amiibo 已被移除 - 此遊戲目前沒有在尋找 amiibo - 您所選擇的並不是正確的 amiibo 金鑰檔 + 該amiibo已被移除 + 此遊戲目前沒有在尋找amiibo + 您所選擇的並不是正確的amiibo金鑰檔 選擇的檔案已在使用中 發生未知的錯誤 - Amiibo 已匯入 + 已導入Amiibo @@ -1021,44 +961,13 @@ 臺灣 - 4GB(推薦) - 6GB(不穩定) - 8GB(不穩定) - - - 正常 - 加速 - 超頻 - - - 正常 - 加速 - 超頻 - - - 極小 (16MB) - 小(32MB) - 正常(128MB) - 大(256MB) - 極大(512MB) - - - 極小(4MB) - 小(8MB) - 正常(16MB) - 中(32MB) - 大(64MB) - - - 極小(32) - 小(64) - 正常(128) - 中(256) - 大(512) + 4GB (推薦) + 6GB (不穩定) + 8GB (不穩定) - 攝氏 - 華氏 + 攝氏度 + 華氏度 B @@ -1071,28 +980,20 @@ 無 - - 效能 - 品質 + 準確 預設 不穩定 穩定 - - 預設 - 即時 - 平衡 - 準確 - 保守 積極 - 即時(關閉) + 即時 (關閉) Mailbox - FIFO(開啟) + FIFO (開啟) FIFO 寬鬆 @@ -1114,18 +1015,6 @@ 不合理 偵錯 - - Freedreno 設定 - GPU 驅動程式設定 - 預先提供的設定檔 - 目前使用的設定 - 進階設定 - 變數名稱 (例如: TU_DEBUG) - 變數值 - 新增變數 - 全部清除 - Freedreno 設定已儲存 - 已清除所有 Freedreno 變數 方向鍵 左搖桿 @@ -1193,4 +1082,4 @@ 授權 來自 AMD 的升級圖像品質 -
\ No newline at end of file +
diff --git a/src/android/app/src/main/res/values/arrays.xml b/src/android/app/src/main/res/values/arrays.xml index be367a2fcf..931cf2bfa7 100644 --- a/src/android/app/src/main/res/values/arrays.xml +++ b/src/android/app/src/main/res/values/arrays.xml @@ -174,6 +174,8 @@ @string/frame_gen_target_rate_60 @string/frame_gen_target_rate_90 @string/frame_gen_target_rate_120 + @string/frame_gen_target_rate_144 + @string/frame_gen_target_rate_165 @@ -181,12 +183,8 @@ 60 90 120 - - - - 50 - 75 - 100 + 144 + 165 @@ -558,6 +556,7 @@ @string/gpu_fence_behavior_immediate @string/gpu_fence_behavior_balanced @string/gpu_fence_behavior_accurate + @string/gpu_fence_behavior_strict 0 diff --git a/src/android/app/src/main/res/values/strings.xml b/src/android/app/src/main/res/values/strings.xml index 33e1eaa340..f073000380 100644 --- a/src/android/app/src/main/res/values/strings.xml +++ b/src/android/app/src/main/res/values/strings.xml @@ -298,25 +298,6 @@ GPU driver fetcher GPU driver manager Install alternative drivers for potentially better performance or accuracy - Post-Processing Effects - ReShade FX effects applied after rendering - Configure the effect chain for this game - Add effect - Remove - Open list - Close list - Remove effects - Preset active. Edit it in Post-Processing Effects before starting a game. - Values changed from the original preset. - Presets - New preset - Saves the effects you have loaded, with their current values, as a preset you can pick later. - Give the preset a name without an equals sign. - No preset - Delete preset - Reset preset values - Reset to default - No effects found. Place .fx files in this folder: Frame generation Configure frame generation for this game Insert interpolated frames between rendered ones using Lossless Scaling. Forces FIFO presentation while enabled. @@ -331,13 +312,8 @@ 60 FPS 90 FPS 120 FPS - On - Off - Fixed - Auto - Turn frame generation on or off and choose the frame multiplier. - Generate frames up to a target frame rate. The multiplier adjusts on its own. - Resolution used to estimate motion between frames. Lower values save GPU time. + 144 FPS + 165 FPS Frame queue target How many finished frames may wait ahead of the display. Larger queues absorb GPU spikes at the cost of input latency. Lowest latency (Unbuffered) @@ -347,15 +323,19 @@ Estimate motion at the resolution the game actually renders instead of the upscaled output. Costs nothing in accuracy, since upscaling adds no motion detail. Motion estimation resolution Resolution of the optical flow pass, as a fraction of the output. Lowering it is the cheapest way to reclaim performance. + Half precision shaders + Use the 16-bit shader variant. Falls back automatically if the driver or the file lacks it. + Dump generated frame + Write the optical flow mip levels and the interpolated frame to the lossless/debug folder once, for troubleshooting Frame generation unavailable - This GPU driver lacks the Vulkan memory model or half precision (float16) support that the Lossless Scaling shaders require. + This GPU driver does not support the Vulkan memory model, which the Lossless Scaling shaders require. Optional. Provide your own Lossless.dll to enable frame generation later Install Lossless.dll Frame generation needs your own legal copy of Lossless.dll from Lossless Scaling Select a different copy of Lossless.dll Frame generation Supported - Unsupported (no Vulkan memory model or float16) + Unsupported (no Vulkan memory model) Lossless Scaling Provide your own copy of Lossless.dll to enable frame generation Installed @@ -580,10 +560,14 @@ Forces the GPU to run at the maximum possible clocks (thermal constraints will still be applied). GPU async emulation This hack can increase performance by running GPU emulation asynchronously at the cost of graphical issues and increased crash rates by timing-related operations. + Asynchronous presentation + This hack can increase performance by moving presentation to a separate CPU thread at the cost of graphical issues. Use reactive flushing Improves rendering accuracy in some games at the cost of performance. Enable buffer history Enables access to previous buffer states. This option may improve rendering quality and performance consistency in some games. + Enable GPU Buffer Readback + Preserves GPU-modified buffer data by reading it back before uploads. Some games require this to render certain effects properly. May cause issues if the hardware cannot handle the additional workload. Optimized Vertex Buffers Enables optimized vertex buffer binding for improved performance. Requires Mesa 26.0+ Turnip drivers/ QCOM drivers. Will crash on older Turnip drivers (25.3 and below). @@ -1134,6 +1118,7 @@ Immediate Balanced Accurate + Strict CPU diff --git a/src/audio_core/adsp/apps/opus/opus_decode_object.cpp b/src/audio_core/adsp/apps/opus/opus_decode_object.cpp index a47a7f8527..e2b9eb566c 100644 --- a/src/audio_core/adsp/apps/opus/opus_decode_object.cpp +++ b/src/audio_core/adsp/apps/opus/opus_decode_object.cpp @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/audio_core/adsp/apps/opus/opus_decode_object.h b/src/audio_core/adsp/apps/opus/opus_decode_object.h index feee9587ce..6425f987c6 100644 --- a/src/audio_core/adsp/apps/opus/opus_decode_object.h +++ b/src/audio_core/adsp/apps/opus/opus_decode_object.h @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/audio_core/adsp/apps/opus/opus_multistream_decode_object.h b/src/audio_core/adsp/apps/opus/opus_multistream_decode_object.h index baad58385e..93558ded5d 100644 --- a/src/audio_core/adsp/apps/opus/opus_multistream_decode_object.h +++ b/src/audio_core/adsp/apps/opus/opus_multistream_decode_object.h @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/audio_core/adsp/apps/opus/shared_memory.h b/src/audio_core/adsp/apps/opus/shared_memory.h index b15a1837cc..c696731ed8 100644 --- a/src/audio_core/adsp/apps/opus/shared_memory.h +++ b/src/audio_core/adsp/apps/opus/shared_memory.h @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/audio_core/audio_render_manager.cpp b/src/audio_core/audio_render_manager.cpp index 8c4e74c4be..3c53e3afde 100644 --- a/src/audio_core/audio_render_manager.cpp +++ b/src/audio_core/audio_render_manager.cpp @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2022 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later @@ -12,9 +9,7 @@ namespace AudioCore::Renderer { Manager::Manager(Core::System& system_) - : system{system_} - , system_manager{std::make_unique(system)} -{ + : system{system_}, system_manager{std::make_unique(system)} { std::iota(session_ids.begin(), session_ids.end(), 0); } @@ -43,12 +38,14 @@ Result Manager::GetWorkBufferSize(const AudioRendererParameterInternal& params, s32 Manager::GetSessionId() { std::scoped_lock l{session_lock}; - ASSERT(session_count <= session_ids.size()); - auto const session_id = session_ids[session_count]; - if (session_id >= 0) { - session_ids[session_count] = -1; - session_count++; + auto session_id{session_ids[session_count]}; + + if (session_id == -1) { + return -1; } + + session_ids[session_count] = -1; + session_count++; return session_id; } diff --git a/src/audio_core/in/audio_in_system.cpp b/src/audio_core/in/audio_in_system.cpp index f8946cc0f6..f71a2df6be 100644 --- a/src/audio_core/in/audio_in_system.cpp +++ b/src/audio_core/in/audio_in_system.cpp @@ -14,6 +14,21 @@ #include "core/core_timing.h" #include "core/hle/kernel/k_event.h" +// See texture_cache/util.h +template +#if BOOST_VERSION >= 108100 || __GNUC__ > 12 +[[nodiscard]] boost::container::static_vector FixStaticVectorADL(const boost::container::static_vector& v) { + return v; +} +#else +[[nodiscard]] std::vector FixStaticVectorADL(const boost::container::static_vector& v) { + std::vector u; + for (auto const& e : v) + u.push_back(e); + return u; +} +#endif + namespace AudioCore::AudioIn { System::System(Core::System& system_, Kernel::KEvent* event_, const size_t session_id_) @@ -95,7 +110,7 @@ Result System::Start() { boost::container::static_vector buffers_to_flush{}; buffers.RegisterBuffers(buffers_to_flush); - session->AppendBuffers(buffers_to_flush); + session->AppendBuffers(FixStaticVectorADL(buffers_to_flush)); session->SetRingSize(static_cast(buffers_to_flush.size())); return ResultSuccess; @@ -140,7 +155,7 @@ void System::RegisterBuffers() { if (state == State::Started) { boost::container::static_vector registered_buffers{}; buffers.RegisterBuffers(registered_buffers); - session->AppendBuffers(registered_buffers); + session->AppendBuffers(FixStaticVectorADL(registered_buffers)); } } diff --git a/src/audio_core/opus/decoder.cpp b/src/audio_core/opus/decoder.cpp index 1c13cb60e9..e3a8fe1bfa 100644 --- a/src/audio_core/opus/decoder.cpp +++ b/src/audio_core/opus/decoder.cpp @@ -8,7 +8,6 @@ #include "audio_core/opus/hardware_opus.h" #include "audio_core/opus/parameters.h" #include "common/alignment.h" -#include "common/scope_exit.h" #include "common/swap.h" #include "core/core.h" @@ -29,18 +28,10 @@ OpusDecoder::OpusDecoder(Core::System& system_, HardwareOpus& hardware_opus_) OpusDecoder::~OpusDecoder() { if (decode_object_initialized) { hardware_opus.ShutdownDecodeObject(shared_buffer.data(), shared_buffer.size()); - hardware_opus.UnregisterDecoder(this); } } Result OpusDecoder::Initialize(const OpusParametersEx& params, Kernel::KTransferMemory* transfer_memory, u64 transfer_memory_size) { - R_TRY(hardware_opus.RegisterDecoder(this)); - SCOPE_EXIT { - if (!decode_object_initialized) { - hardware_opus.UnregisterDecoder(this); - } - }; - auto frame_size{params.use_large_frame_size ? 5760 : 1920}; shared_buffer.resize(transfer_memory_size); shared_memory_mapped = true; @@ -70,13 +61,6 @@ Result OpusDecoder::Initialize(const OpusParametersEx& params, Kernel::KTransfer } Result OpusDecoder::Initialize(const OpusMultiStreamParametersEx& params, Kernel::KTransferMemory* transfer_memory, u64 transfer_memory_size) { - R_TRY(hardware_opus.RegisterDecoder(this)); - SCOPE_EXIT { - if (!decode_object_initialized) { - hardware_opus.UnregisterDecoder(this); - } - }; - auto frame_size{params.use_large_frame_size ? 5760 : 1920}; shared_buffer.resize(transfer_memory_size, 0); shared_memory_mapped = true; diff --git a/src/audio_core/opus/hardware_opus.cpp b/src/audio_core/opus/hardware_opus.cpp index 04591c10b6..0037a3e503 100644 --- a/src/audio_core/opus/hardware_opus.cpp +++ b/src/audio_core/opus/hardware_opus.cpp @@ -4,7 +4,6 @@ // SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later -#include #include #include "audio_core/audio_core.h" @@ -46,25 +45,6 @@ HardwareOpus::HardwareOpus(Core::System& system_) opus_decoder.SetSharedMemory(shared_memory); } -Result HardwareOpus::RegisterDecoder(OpusDecoder* decoder) { - std::scoped_lock l{mutex}; - const auto slot = std::ranges::find(decoders, nullptr); - if (slot == decoders.end()) { - R_THROW(ResultOutOfOpusDecoders); - } - *slot = decoder; - R_SUCCEED(); -} - -void HardwareOpus::UnregisterDecoder(OpusDecoder* decoder) { - std::scoped_lock l{mutex}; - const auto slot = std::ranges::find(decoders, decoder); - if (slot == decoders.end()) { - return; - } - *slot = nullptr; -} - u32 HardwareOpus::GetWorkBufferSize(u32 channel) { if (!opus_decoder.IsRunning()) { return 0; diff --git a/src/audio_core/opus/hardware_opus.h b/src/audio_core/opus/hardware_opus.h index b6c7fbe6c8..caa7468401 100644 --- a/src/audio_core/opus/hardware_opus.h +++ b/src/audio_core/opus/hardware_opus.h @@ -1,12 +1,8 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later #pragma once -#include #include #include @@ -16,12 +12,9 @@ #include "core/hle/service/audio/errors.h" namespace AudioCore::OpusDecoder { -class OpusDecoder; class HardwareOpus { public: HardwareOpus(Core::System& system); - Result RegisterDecoder(OpusDecoder* decoder); - void UnregisterDecoder(OpusDecoder* decoder); u32 GetWorkBufferSize(u32 channel); u32 GetWorkBufferSizeForMultiStream(u32 total_stream_count, u32 stereo_stream_count); @@ -46,7 +39,6 @@ public: private: Core::System& system; std::mutex mutex; - std::array decoders{}; ADSP::OpusDecoder::OpusDecoder& opus_decoder; ADSP::OpusDecoder::SharedMemory shared_memory; }; diff --git a/src/audio_core/sink/cubeb_sink.cpp b/src/audio_core/sink/cubeb_sink.cpp index c8c4cb2253..ca42810345 100644 --- a/src/audio_core/sink/cubeb_sink.cpp +++ b/src/audio_core/sink/cubeb_sink.cpp @@ -261,7 +261,6 @@ SinkStream* CubebSink::AcquireSinkStream(Core::System& system, u32 system_channe system_channels = system_channels_; SinkStreamPtr& stream = sink_streams.emplace_back(std::make_unique( ctx, device_channels, system_channels, output_device, input_device, name, type, system)); - stream->SetDeviceVolume(device_volume); return stream.get(); } @@ -281,11 +280,14 @@ void CubebSink::CloseStreams() { } f32 CubebSink::GetDeviceVolume() const { - return device_volume; + if (sink_streams.empty()) { + return 1.0f; + } + + return sink_streams[0]->GetDeviceVolume(); } void CubebSink::SetDeviceVolume(f32 volume) { - device_volume = volume; for (auto& stream : sink_streams) { stream->SetDeviceVolume(volume); } diff --git a/src/audio_core/sink/null_sink.h b/src/audio_core/sink/null_sink.h index 556456c206..b6b43c93e1 100644 --- a/src/audio_core/sink/null_sink.h +++ b/src/audio_core/sink/null_sink.h @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later @@ -41,7 +38,6 @@ public: StreamType type) override { if (null_sink == nullptr) { null_sink = std::make_unique(system, type); - null_sink->SetDeviceVolume(device_volume); } return null_sink.get(); } @@ -49,14 +45,9 @@ public: void CloseStream(SinkStream*) override {} void CloseStreams() override {} f32 GetDeviceVolume() const override { - return device_volume; - } - void SetDeviceVolume(f32 volume) override { - device_volume = volume; - if (null_sink != nullptr) { - null_sink->SetDeviceVolume(volume); - } + return 1.0f; } + void SetDeviceVolume(f32 volume) override {} void SetSystemVolume(f32 volume) override {} private: diff --git a/src/audio_core/sink/sdl3_sink.cpp b/src/audio_core/sink/sdl3_sink.cpp index 02eee9bec2..4816b17259 100644 --- a/src/audio_core/sink/sdl3_sink.cpp +++ b/src/audio_core/sink/sdl3_sink.cpp @@ -28,18 +28,10 @@ namespace { // // Keep in sync with cubeb_sink.cpp name. SDL_SetHint("SDL_AUDIO_DEVICE_APP_NAME", "yuzu Latency Getter"); -#ifdef __ANDROID__ - SDL_SetHintWithPriority(SDL_HINT_AUDIO_DRIVER, "openslES", SDL_HINT_OVERRIDE); if (!SDL_InitSubSystem(SDL_INIT_AUDIO)) { - LOG_WARNING(Audio_Sink, "OpenSL ES audio initialization failed: {}; retrying default drivers", SDL_GetError()); - SDL_ResetHint(SDL_HINT_AUDIO_DRIVER); - } -#endif - if (!SDL_WasInit(SDL_INIT_AUDIO) && !SDL_InitSubSystem(SDL_INIT_AUDIO)) { LOG_CRITICAL(Audio_Sink, "SDL_InitSubSystem audio failed: {}", SDL_GetError()); return false; } - LOG_INFO(Audio_Sink, "SDL audio driver: {}", SDL_GetCurrentAudioDriver()); } return true; } @@ -246,7 +238,6 @@ SinkStream* SDLSink::AcquireSinkStream(Core::System& system, u32 system_channels system_channels = system_channels_; SinkStreamPtr& stream = sink_streams.emplace_back(std::make_unique( device_channels, system_channels, output_device, input_device, type, system)); - stream->SetDeviceVolume(device_volume); return stream.get(); } @@ -265,11 +256,14 @@ void SDLSink::CloseStreams() { } f32 SDLSink::GetDeviceVolume() const { - return device_volume; + if (sink_streams.empty()) { + return 1.0f; + } + + return sink_streams[0]->GetDeviceVolume(); } void SDLSink::SetDeviceVolume(f32 volume) { - device_volume = volume; for (auto& stream : sink_streams) { stream->SetDeviceVolume(volume); } diff --git a/src/audio_core/sink/sink.h b/src/audio_core/sink/sink.h index 2b7069e1a3..e22e8c3e56 100644 --- a/src/audio_core/sink/sink.h +++ b/src/audio_core/sink/sink.h @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later @@ -99,8 +96,6 @@ public: } protected: - /// Master volume, persists stream lifetimes - f32 device_volume{1.0f}; /// Number of device channels supported by the hardware u32 device_channels{2}; /// Number of channels the game is sending diff --git a/src/common/CMakeLists.txt b/src/common/CMakeLists.txt index 5d1b30a549..61e0e64aa8 100644 --- a/src/common/CMakeLists.txt +++ b/src/common/CMakeLists.txt @@ -76,6 +76,7 @@ add_library( logging.h lz4_compression.cpp lz4_compression.h + make_unique_for_overwrite.h math_util.h memory_detect.cpp memory_detect.h @@ -109,6 +110,7 @@ add_library( socket_types.h sparse_large_vector.cpp sparse_large_vector.h + spin_lock.h stb.cpp stb.h steady_clock.cpp @@ -137,8 +139,6 @@ add_library( uuid.cpp uuid.h vector_math.h - zbic_compression.cpp - zbic_compression.h zstd_compression.cpp zstd_compression.h fs/ryujinx_compat.h fs/ryujinx_compat.cpp @@ -149,10 +149,6 @@ add_library( net/net.h net/net.cpp container/unordered_map.h container/unordered_set.h) -set_source_files_properties(zbic_compression.cpp PROPERTIES - INCLUDE_DIRECTORIES "${ZBIC_INCLUDE_DIR}" - COMPILE_OPTIONS "$<$:-Wno-unused-function;-Wno-missing-declarations;-Wno-shadow>") - if(WIN32) target_sources(common PRIVATE windows/timer_resolution.cpp windows/timer_resolution.h) diff --git a/src/common/cpu_features.cpp b/src/common/cpu_features.cpp index 8ccb6847f7..2e02c47826 100644 --- a/src/common/cpu_features.cpp +++ b/src/common/cpu_features.cpp @@ -244,8 +244,7 @@ WallClock::WallClock(bool invariant_, u64 rdtsc_frequency_) noexcept , ns_rdtsc_factor{invariant_ ? GetFixedPoint64Factor(NsRatio::den, rdtsc_frequency_) : 0} , us_rdtsc_factor{invariant_ ? GetFixedPoint64Factor(UsRatio::den, rdtsc_frequency_) : 0} , ms_rdtsc_factor{invariant_ ? GetFixedPoint64Factor(MsRatio::den, rdtsc_frequency_) : 0} - , rdtsc_ns_integer{invariant_ ? rdtsc_frequency_ / NsRatio::den : 1} - , rdtsc_ns_factor{invariant_ ? GetFixedPoint64Factor(rdtsc_frequency_ % NsRatio::den, NsRatio::den) : 0} + , rdtsc_ns_factor{invariant_ ? GetFixedPoint64Factor(rdtsc_frequency_, NsRatio::den) : 1} , cntpct_rdtsc_factor{invariant_ ? GetFixedPoint64Factor(CNTFRQ, rdtsc_frequency_) : 0} , gputick_rdtsc_factor{invariant_ ? GetFixedPoint64Factor(GPUTickFreq, rdtsc_frequency_) : 0} , invariant{invariant_} @@ -292,7 +291,7 @@ bool WallClock::IsNative() const { } u64 WallClock::NsToTicks(std::chrono::nanoseconds ns) const { - return ns.count() * rdtsc_ns_integer + MultiplyHigh(ns.count(), rdtsc_ns_factor); + return invariant ? MultiplyHigh(ns.count(), rdtsc_ns_factor) : ns.count(); } #elif defined(HAS_NCE) namespace { @@ -417,7 +416,7 @@ u64 WallClock::NsToTicks(std::chrono::nanoseconds ns) const { const WallClock g_wall_clock = [] { #if defined(ARCHITECTURE_x86_64) auto const& caps = Common::g_cpu_caps; - return WallClock(caps.invariant_tsc && caps.tsc_frequency > std::nano::den, caps.tsc_frequency); + return WallClock(caps.invariant_tsc && caps.tsc_frequency >= std::nano::den, caps.tsc_frequency); #elif defined(HAS_NCE) return WallClock(false, 1); #else diff --git a/src/common/cpu_features.h b/src/common/cpu_features.h index 61aa2767ab..7dcb550f8f 100644 --- a/src/common/cpu_features.h +++ b/src/common/cpu_features.h @@ -96,7 +96,6 @@ public: u64 ns_rdtsc_factor; u64 us_rdtsc_factor; u64 ms_rdtsc_factor; - u64 rdtsc_ns_integer; u64 rdtsc_ns_factor; u64 cntpct_rdtsc_factor; u64 gputick_rdtsc_factor; diff --git a/src/common/error.cpp b/src/common/error.cpp index 1d67dad6a9..070c9a5c7e 100644 --- a/src/common/error.cpp +++ b/src/common/error.cpp @@ -17,33 +17,35 @@ namespace Common { -// glibc, mlibc, musl, and newlib all define their own variants of strerror_r -// We don't need to use the preprocessor, we can just select depending on return type -template std::string HandleStrerrorR(T r, char *err_str); -template<> std::string HandleStrerrorR(char* r, char *) { return std::string{r}; } -template<> std::string HandleStrerrorR(const char* r, char *) { return std::string{r}; } -template<> std::string HandleStrerrorR(int r, char *err_str) { - return std::string{r != 0 - ? "(strerror_r failed to format error)" - : err_str}; -} - std::string NativeErrorToString(int e) { #ifdef _WIN32 LPSTR err_str; + DWORD res = FormatMessageA(FORMAT_MESSAGE_FROM_SYSTEM | FORMAT_MESSAGE_ALLOCATE_BUFFER | FORMAT_MESSAGE_IGNORE_INSERTS, nullptr, e, MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT), - LPSTR(&err_str), 1, nullptr); - if (res) { - std::string ret(err_str); - LocalFree(err_str); - return ret; + reinterpret_cast(&err_str), 1, nullptr); + if (!res) { + return "(FormatMessageA failed to format error)"; } - return "(FormatMessageA failed to format error)"; + std::string ret(err_str); + LocalFree(err_str); + return ret; #else char err_str[255]; - return HandleStrerrorR(strerror_r(e, err_str, sizeof(err_str)), err_str); +#if defined(__ANDROID__) || \ + (defined(__GLIBC__) && (_GNU_SOURCE || (_POSIX_C_SOURCE < 200112L && _XOPEN_SOURCE < 600))) + // Thread safe (GNU-specific) + const char* str = strerror_r(e, err_str, sizeof(err_str)); + return std::string(str); +#else + // Thread safe (XSI-compliant) + int second_err = strerror_r(e, err_str, sizeof(err_str)); + if (second_err != 0) { + return "(strerror_r failed to format error)"; + } + return std::string(err_str); +#endif // GLIBC etc. #endif // _WIN32 } diff --git a/src/common/fs/fs_paths.h b/src/common/fs/fs_paths.h index ae25846fc2..a31e609bda 100644 --- a/src/common/fs/fs_paths.h +++ b/src/common/fs/fs_paths.h @@ -23,8 +23,6 @@ #define LOSSLESS_DIR "lossless" #define NAND_DIR "nand" #define PLAY_TIME_DIR "play_time" -#define POST_PRESET_DIR "post_presets" -#define POST_SHADER_DIR "post_shaders" #define SCREENSHOTS_DIR "screenshots" #define SDMC_DIR "sdmc" #define SHADER_DIR "shader" diff --git a/src/common/fs/path_util.cpp b/src/common/fs/path_util.cpp index 82ea8f6cb2..b4c7eae343 100644 --- a/src/common/fs/path_util.cpp +++ b/src/common/fs/path_util.cpp @@ -5,7 +5,6 @@ // SPDX-License-Identifier: GPL-2.0-or-later #include -#include #include #include #include "common/container/unordered_map.h" @@ -161,8 +160,6 @@ public: GenerateEdenPath(EdenPath::LosslessDir, eden_path / LOSSLESS_DIR); GenerateEdenPath(EdenPath::NANDDir, eden_path / NAND_DIR); GenerateEdenPath(EdenPath::PlayTimeDir, eden_path / PLAY_TIME_DIR); - GenerateEdenPath(EdenPath::PostPresetDir, eden_path / POST_PRESET_DIR); - GenerateEdenPath(EdenPath::PostShaderDir, eden_path / POST_SHADER_DIR); GenerateEdenPath(EdenPath::SaveDir, eden_path / NAND_DIR); GenerateEdenPath(EdenPath::ScreenshotsDir, eden_path / SCREENSHOTS_DIR); GenerateEdenPath(EdenPath::SDMCDir, eden_path / SDMC_DIR); @@ -481,80 +478,28 @@ std::string SanitizePath(std::string_view path_, DirectorySeparator directory_se [type2](char c1, char c2) { return c1 == type2 && c2 == type2; }), path.end()); - std::string root; - std::string_view components{path}; - bool drive_relative = false; - -#ifdef _WIN32 - const bool network = path.size() > 1 && path[0] == type2 && path[1] == type2; - const bool drive = - path.size() > 1 && std::isalpha(static_cast(path[0])) && path[1] == ':'; - - if (network) { - root.assign(2, type2); - components.remove_prefix(2); - } else if (drive) { - root.assign(path.data(), 2); - components.remove_prefix(2); - if (!components.empty() && components.front() == type2) { - root += type2; - components.remove_prefix(1); - } else { - drive_relative = true; - } - } -#endif - - if (root.empty() && !components.empty() && components.front() == type2) { - root += type2; - components.remove_prefix(1); - } - - const auto path_parts = SplitPathComponents(components); - std::size_t root_component_count = 0; -#ifdef _WIN32 - if (network) { - root_component_count = 2; - - const auto is_unc = [](std::string_view part) { - return part.size() == 3 && (part[0] == 'U' || part[0] == 'u') && - (part[1] == 'N' || part[1] == 'n') && (part[2] == 'C' || part[2] == 'c'); - }; - if (path_parts.size() >= 2 && path_parts[0] == "?" && is_unc(path_parts[1])) { - root_component_count = 4; - } - } -#endif - + const bool absolute = !path.empty() && path[0] == type2; std::vector parts; - for (std::size_t i = 0; i < path_parts.size(); ++i) { - const auto part = path_parts[i]; - if (i < root_component_count) { - parts.push_back(part); - } else if (part.empty() || part == ".") { + + for (const auto part : SplitPathComponents(path)) + { + if (part.empty() || part == ".") continue; - } else if (part == "..") { - if (parts.size() > root_component_count) { - parts.pop_back(); - } - } else { - parts.push_back(part); - } + if (part == ".." && !parts.empty() && parts.back() != "..") + parts.pop_back(); + else if (part != "..") parts.push_back(part); } - const std::size_t root_length = root.size(); - std::string resolved = std::move(root); - for (std::size_t i = 0; i < parts.size(); ++i) { - if (i != 0 || (!resolved.empty() && resolved.back() != type2 && !drive_relative)) + std::string resolved = absolute ? std::string(1, type2) : std::string{}; + for (std::size_t i = 0; i < parts.size(); ++i) + { + if (i != 0) resolved += type2; resolved.append(parts[i].data(), parts[i].size()); } path = std::move(resolved); - if (!path.empty() && path.size() == root_length) { - return path; - } return std::string(RemoveTrailingSlash(path)); } diff --git a/src/common/fs/path_util.h b/src/common/fs/path_util.h index e8fa5614ae..febed9c388 100644 --- a/src/common/fs/path_util.h +++ b/src/common/fs/path_util.h @@ -26,8 +26,6 @@ enum class EdenPath { LosslessDir, // Where the user-supplied Lossless Scaling library is stored. NANDDir, // Where the emulated NAND is stored. PlayTimeDir, // Where play time data is stored. - PostPresetDir, - PostShaderDir, // Where user post-processing shaders are stored. SaveDir, // Where save data is stored. ScreenshotsDir, // Where yuzu screenshots are stored. SDMCDir, // Where the emulated SDMC is stored. @@ -347,9 +345,8 @@ enum class DirectorySeparator { // i.e. "C:\Users\Yuzu\Documents\save.bin" becomes {"C:", "Users", "Yuzu", "Documents", "save.bin" } [[nodiscard]] std::vector SplitPathComponentsCopy(std::string_view filename); -// Normalizes directory separators, removes duplicate and non-root trailing separators, and resolves -// '.' and '..' components without traversing above the path root. Windows drive and UNC roots are -// preserved. +// Removes trailing slash, makes all '\\' into '/', and removes duplicate '/'. Makes '/' into '\\' +// depending if directory_separator is BackwardSlash or PlatformDefault and running on windows [[nodiscard]] std::string SanitizePath( std::string_view path, DirectorySeparator directory_separator = DirectorySeparator::ForwardSlash); diff --git a/src/common/make_unique_for_overwrite.h b/src/common/make_unique_for_overwrite.h new file mode 100644 index 0000000000..17f81bba4a --- /dev/null +++ b/src/common/make_unique_for_overwrite.h @@ -0,0 +1,27 @@ +// SPDX-FileCopyrightText: Copyright 2022 yuzu Emulator Project +// SPDX-License-Identifier: GPL-2.0-or-later + +#pragma once + +#include +#include + +namespace Common { + +template + requires(!std::is_array_v) +std::unique_ptr make_unique_for_overwrite() { + return std::unique_ptr(new T); +} + +template + requires std::is_unbounded_array_v +std::unique_ptr make_unique_for_overwrite(std::size_t n) { + return std::unique_ptr(new std::remove_extent_t[n]); +} + +template + requires std::is_bounded_array_v +void make_unique_for_overwrite(Args&&...) = delete; + +} // namespace Common diff --git a/src/common/page_table.h b/src/common/page_table.h index a21fe5311b..1588eca616 100644 --- a/src/common/page_table.h +++ b/src/common/page_table.h @@ -96,15 +96,15 @@ struct PageTable { } /// Write page info atomically - inline void Store(bool marked, PageType type, u16 block, uintptr_t pointer) noexcept { + constexpr void Store(bool marked, PageType type, u16 block, uintptr_t pointer) noexcept { data_raw.store(std::bit_cast(Data{marked, type, block, pointer})); } - inline void MarkRasterizerCached() noexcept { + constexpr void MarkRasterizerCached() noexcept { data_raw.fetch_or(0b111); } - inline void MarkDebug(u64 ptr, u16 block) noexcept { + constexpr void MarkDebug(u64 ptr, u16 block) noexcept { Store(true, PageType::DebugMemory, block, ptr); } diff --git a/src/common/scratch_buffer.h b/src/common/scratch_buffer.h index 929a65609a..8c1f566301 100644 --- a/src/common/scratch_buffer.h +++ b/src/common/scratch_buffer.h @@ -8,7 +8,8 @@ #include #include -#include + +#include "common/make_unique_for_overwrite.h" namespace Common { @@ -37,9 +38,8 @@ public: ScratchBuffer() = default; explicit ScratchBuffer(size_type initial_capacity) - : last_requested_size{initial_capacity} - , buffer_capacity{initial_capacity} - , buffer{std::make_unique_for_overwrite(initial_capacity)} {} + : last_requested_size{initial_capacity}, buffer_capacity{initial_capacity}, + buffer{Common::make_unique_for_overwrite(initial_capacity)} {} ~ScratchBuffer() = default; ScratchBuffer(const ScratchBuffer&) = delete; @@ -64,7 +64,7 @@ public: /// The previously held data will remain intact. void resize(size_type size) { if (size > buffer_capacity) { - auto new_buffer = std::make_unique_for_overwrite(size); + auto new_buffer = Common::make_unique_for_overwrite(size); std::memcpy(new_buffer.get(), buffer.get(), buffer_capacity * sizeof(T)); buffer = std::move(new_buffer); buffer_capacity = size; @@ -77,7 +77,7 @@ public: void resize_destructive(size_type size) { if (size > buffer_capacity) { buffer_capacity = size; - buffer = std::make_unique_for_overwrite(buffer_capacity); + buffer = Common::make_unique_for_overwrite(buffer_capacity); } last_requested_size = size; } diff --git a/src/common/settings.cpp b/src/common/settings.cpp index 3f5154026e..bc46b61bb4 100644 --- a/src/common/settings.cpp +++ b/src/common/settings.cpp @@ -178,6 +178,10 @@ bool IsGPUFenceBehaviorAccurate() { return values.gpu_fence_behavior.GetValue() == GpuFenceBehavior::Accurate; } +bool IsGPUFenceBehaviorStrict() { + return values.gpu_fence_behavior.GetValue() == GpuFenceBehavior::Strict; +} + bool IsFastmemEnabled() { if (values.cpu_accuracy.GetValue() == Settings::CpuAccuracy::Debugging) return bool(values.cpuopt_fastmem); diff --git a/src/common/settings.h b/src/common/settings.h index b57bec5c12..d45f0b7bbc 100644 --- a/src/common/settings.h +++ b/src/common/settings.h @@ -171,13 +171,8 @@ struct Values { SwitchableSetting enable_overlay{linkage, false, "enable_overlay", Category::LibraryApplet}; // Audio - SwitchableSetting sink_id{linkage, -#ifdef __ANDROID__ - AudioEngine::Sdl3, -#else - AudioEngine::Auto, -#endif - "output_engine", Category::Audio, Specialization::RuntimeList}; + SwitchableSetting sink_id{linkage, AudioEngine::Auto, "output_engine", + Category::Audio, Specialization::RuntimeList}; SwitchableSetting audio_output_device_id{ linkage, "auto", "output_device", Category::Audio, Specialization::RuntimeList}; SwitchableSetting audio_input_device_id{ @@ -393,30 +388,6 @@ struct Values { true, true}; - SwitchableSetting post_shader_chain{linkage, - std::string(), - "post_shader_chain", - Category::Renderer, - Specialization::Default, - true, - true}; - - SwitchableSetting post_shader_preset{linkage, - std::string(), - "post_shader_preset", - Category::Renderer, - Specialization::Default, - true, - true}; - - SwitchableSetting post_shader_enabled{linkage, - true, - "post_shader_enabled", - Category::Renderer, - Specialization::Default, - true, - true}; - SwitchableSetting frame_gen{linkage, false, "frame_gen", Category::Renderer, Specialization::Default, true, false}; @@ -464,7 +435,7 @@ struct Values { &frame_gen}; SwitchableSetting frame_gen_queue_target{linkage, - 0, + 1, 0, 2, "frame_gen_queue_target", @@ -474,11 +445,19 @@ struct Values { false, &frame_gen}; + SwitchableSetting frame_gen_fp16{linkage, true, "frame_gen_fp16", Category::Renderer, + Specialization::Default, true, false, &frame_gen}; + SwitchableSetting frame_gen_dump_flow{linkage, false, "frame_gen_dump_flow", Category::Renderer}; - SwitchableSetting use_asynchronous_gpu_emulation{linkage, true, "use_asynchronous_gpu_emulation", - Category::Renderer}; + SwitchableSetting use_asynchronous_gpu_emulation{linkage, +#ifdef __ANDROID__ + false, +#else + true, +#endif + "use_asynchronous_gpu_emulation", Category::Renderer}; // *nix platforms may have issues with the borderless windowed fullscreen mode. // Default to exclusive fullscreen on these platforms for now. SwitchableSetting fullscreen_mode{linkage, @@ -525,7 +504,7 @@ struct Values { SwitchableSetting gpu_fence_behavior{linkage, GpuFenceBehavior::Default, GpuFenceBehavior::Default, - GpuFenceBehavior::Accurate, + GpuFenceBehavior::Strict, "gpu_fence_behavior", Category::RendererAdvanced, Specialization::Default, @@ -537,7 +516,7 @@ struct Values { "vram_usage_mode", Category::RendererAdvanced}; - SwitchableSetting nvdec_emulation{linkage, NvdecEmulation::Cpu, + SwitchableSetting nvdec_emulation{linkage, NvdecEmulation::Gpu, "nvdec_emulation", Category::RendererAdvanced}; SwitchableSetting max_anisotropy{linkage, @@ -641,7 +620,7 @@ struct Values { true}; SwitchableSetting async_presentation{linkage, #ifdef __ANDROID__ - true, + false, #else false, #endif @@ -653,6 +632,16 @@ struct Values { SwitchableSetting emulate_bgr565{linkage, false, "emulate_bgr565", Category::RendererHacks}; + SwitchableSetting rescale_hack{linkage, false, "rescale_hack", + Category::RendererHacks}; + SwitchableSetting enable_gpu_buffer_readback{linkage, + false, + "enable_gpu_buffer_readback", + Category::RendererAdvanced, + Specialization::Default, + true, + true}; + SwitchableSetting use_asynchronous_shaders{linkage, false, "use_asynchronous_shaders", Category::RendererHacks}; @@ -929,7 +918,7 @@ struct Values { // Network Setting network_interface{linkage, std::string(), "network_interface", Category::Network}; - SwitchableSetting airplane_mode{linkage, true, "airplane_mode", Category::Network}; + SwitchableSetting airplane_mode{linkage, false, "airplane_mode", Category::Network}; // WebService Setting web_api_url{linkage, "api.ynet-fun.xyz", "web_api_url", @@ -969,6 +958,7 @@ bool IsDMALevelSafe(); bool IsGPUFenceBehaviorDefault(); bool IsGPUFenceBehaviorBalanced(); bool IsGPUFenceBehaviorAccurate(); +bool IsGPUFenceBehaviorStrict(); bool IsFastmemEnabled(); void SetNceEnabled(bool is_64bit); diff --git a/src/common/settings_enums.h b/src/common/settings_enums.h index eaf3ec541d..4b406f4c35 100644 --- a/src/common/settings_enums.h +++ b/src/common/settings_enums.h @@ -137,7 +137,7 @@ ENUM(VramUsageMode, Conservative, Aggressive); ENUM(RendererBackend, OpenGL_GLSL, Vulkan, Null, OpenGL_GLASM, OpenGL_SPIRV); ENUM(GpuAccuracy, Low, High); ENUM(DmaAccuracy, Default, Unsafe, Safe); -ENUM(GpuFenceBehavior, Default, Immediate, Balanced, Accurate); +ENUM(GpuFenceBehavior, Default, Immediate, Balanced, Accurate, Strict); ENUM(CpuBackend, Dynarmic, Nce); ENUM(CpuAccuracy, Auto, Accurate, Unsafe, Paranoid, Debugging); ENUM(CpuClock, Normal, Boost, Overclock) @@ -150,7 +150,7 @@ ENUM(ScalingFilter, NearestNeighbor, Bilinear, Bicubic, Gaussian, Lanczos, Scale ENUM(AntiAliasing, None, Fxaa, Smaa); ENUM(AspectRatio, R16_9, R4_3, R21_9, R16_10, Stretch); ENUM(ConsoleMode, Handheld, Docked); -ENUM(AppletMode, HLE, LLE, Disabled); +ENUM(AppletMode, HLE, LLE); ENUM(SpirvOptimizeMode, Never, OnLoad, Always); ENUM(GpuClock, Normal, Boost, Overclock) ENUM(GpuUnswizzleSize, VerySmall, Small, Normal, Large, VeryLarge) diff --git a/src/common/sparse_large_vector.cpp b/src/common/sparse_large_vector.cpp index eee8ff6d18..ce6455a235 100644 --- a/src/common/sparse_large_vector.cpp +++ b/src/common/sparse_large_vector.cpp @@ -6,7 +6,6 @@ // SPDX-License-Identifier: GPL-2.0-or-later #ifdef _WIN32 -#include #include #include #else @@ -21,36 +20,32 @@ namespace Common { #ifdef _WIN32 static std::vector> vector_regions {}; -static std::mutex vector_regions_mutex {}; // Workaround for handling non-commited memory accessed by Dynarmic; usually result of an error static LONG WINAPI FakePageFaultHandler(PEXCEPTION_POINTERS info) { DWORD code = info->ExceptionRecord->ExceptionCode; - u64 exception_addr = reinterpret_cast(info->ExceptionRecord->ExceptionInformation[1]); + u64 exception_addr = reinterpret_cast(info->ExceptionRecord->ExceptionAddress); - if (code != EXCEPTION_ACCESS_VIOLATION || info->ExceptionRecord->ExceptionInformation[0] == 1) { + if (code != EXCEPTION_ACCESS_VIOLATION) { // Not our problem return EXCEPTION_CONTINUE_SEARCH; } u64 addr = 0, addr2 = 0; - { - std::lock_guard lock(vector_regions_mutex); - for (auto region: vector_regions) { - auto addr_shifted = exception_addr >> HostPageBits; - if (region.first <= addr_shifted && addr_shifted <= region.second) { - addr = addr_shifted; - } + for (auto region: vector_regions) { + auto addr_shifted = exception_addr >> HostPageBits; + if (region.first <= addr_shifted && addr_shifted <= region.second) { + addr = addr_shifted; + } - // Page-boundary accesses - if (auto addr_ = (exception_addr + 0x40) >> HostPageBits; addr_ != addr_shifted && region.first <= addr_ && addr_ <= region.second) { - addr2 = addr_; - } + // Page-boundary accesses + if (auto addr_ = (exception_addr + 0x40) >> HostPageBits; addr_ != addr_shifted && region.first <= addr_ && addr_ <= region.second) { + addr2 = addr_; + } - if (addr != 0 || addr2 != 0) { - break; - } + if (addr != 0 || addr2 != 0) { + break; } } @@ -82,16 +77,8 @@ bool CommitVectorPage(uintptr_t addr, bool write) noexcept { auto res = VirtualQuery(reinterpret_cast(addr), &info, sizeof(info)); if (res == 0) { LOG_CRITICAL(HW_Memory, "Failed to query large buffer region at {:#x} with error {}, will try committing anyway", addr, GetLastError()); - } else if (info.State == MEM_COMMIT) { - DWORD old_protect {}; - auto perm = write ? PAGE_READWRITE : PAGE_READONLY; - if (!VirtualProtect(reinterpret_cast(addr), HostPageSize, perm, &old_protect)) { - LOG_ERROR(HW_Memory, "Failed to change permissions of large buffer region at {:#x}, error {}", addr, GetLastError()); - return false; - } - return true; } else if (info.State != MEM_RESERVE) { - LOG_ERROR(HW_Memory, "Tried to commit an unreserved large buffer region at {:#x} that is not mapped (state {:#x})", addr, info.State); + LOG_ERROR(HW_Memory, "Tried to commit an unreserved large buffer region at {:#x} that is not mapped or is already committed (state {:#x})", addr, info.State); return false; } @@ -109,21 +96,6 @@ bool CommitVectorPage(uintptr_t addr, bool write) noexcept { #ifndef MAP_NOCORE #define MAP_NOCORE 0 #endif -#ifndef MADV_FREE -#define MADV_FREE MADV_DONTNEED -#endif - -void DecommitVectorPage(uintptr_t base) noexcept { -#if defined(_WIN32) - VirtualFree(reinterpret_cast(base), HostPageSize, MEM_DECOMMIT); -#elif defined(__linux__) - // Linux's MADV_DONTNEED zeros out pages for us - madvise(reinterpret_cast(base), HostPageSize, MADV_DONTNEED); -#else - madvise(reinterpret_cast(base), HostPageSize, MADV_FREE); - std::memset(reinterpret_cast(base), 0, HostPageSize); -#endif -} void* AllocateMemoryPages(std::size_t size) noexcept { if (auto page = HostPageSize; size % page != 0) { @@ -136,8 +108,7 @@ void* AllocateMemoryPages(std::size_t size) noexcept { void* base = VirtualAlloc(nullptr, size, MEM_RESERVE, PAGE_READWRITE); if (base != nullptr) { - std::lock_guard lock(vector_regions_mutex); - vector_regions.emplace_back(reinterpret_cast(base) >> HostPageBits, (reinterpret_cast(base) + size) >> HostPageBits); + vector_regions.emplace_back(reinterpret_cast(base), reinterpret_cast(base) + size); static std::once_flag flag; std::call_once(flag, []() { AddVectoredExceptionHandler(1, FakePageFaultHandler); }); @@ -163,8 +134,6 @@ void FreeMemoryPages(void* base, [[maybe_unused]] std::size_t size) noexcept { if (!base) return; #ifdef _WIN32 - std::lock_guard lock(vector_regions_mutex); - std::erase_if(vector_regions, [base](const auto& r) {return r.first == reinterpret_cast(base); }); ASSERT(VirtualFree(base, 0, MEM_RELEASE)); #else ASSERT(munmap(base, size) == 0); diff --git a/src/common/sparse_large_vector.h b/src/common/sparse_large_vector.h index 8496c28cef..827944fb08 100644 --- a/src/common/sparse_large_vector.h +++ b/src/common/sparse_large_vector.h @@ -28,19 +28,17 @@ constexpr u64 HostPageBits = 12; constexpr u64 HostPageMask = ~(HostPageSize - 1); bool CommitVectorPage(uintptr_t addr, bool write) noexcept; #else -inline const u64 HostPageSize = sysconf(_SC_PAGESIZE); -inline const u64 HostPageBits = std::countr_zero(HostPageSize); -inline const u64 HostPageMask = ~(HostPageSize - 1); +const u64 HostPageSize = sysconf(_SC_PAGESIZE); +const u64 HostPageBits = std::countr_zero(HostPageSize); +const u64 HostPageMask = ~(HostPageSize - 1); #endif void* AllocateMemoryPages(std::size_t size) noexcept; void FreeMemoryPages(void* base, std::size_t size) noexcept; -void DecommitVectorPage(uintptr_t base) noexcept; /// A large page-aligned buffer that has optimized memory usage for zero-writes. template - // MSVC doesn't regard structs with atomics as trivially copyable - // requires std::is_trivially_copyable_v +requires std::is_trivially_copyable_v class SparseLargeVector final { public: constexpr SparseLargeVector() = default; @@ -81,8 +79,8 @@ public: UNREACHABLE_MSG("Out of bounds RW access on SparseLargeVector @ {}", index); } - if (!IsCommittedPage(index) && !CommitPage(index)) { - UNREACHABLE_MSG("Cannot access SparseLargeVector index {} with RW permission", index); + if (!IsCommittedPage(index)) { + CommitPage(index); } return base_ptr[index]; } @@ -103,8 +101,9 @@ public: LOG_CRITICAL(Common_Memory, "Out of bounds write on SparseLargeVector @ {}", index); return; } - if (IsCommittedPage(index) || CommitPage(index)) - base_ptr[index] = value; + if (!IsCommittedPage(index)) + CommitPage(index); + base_ptr[index] = value; } void ZeroRegion(std::size_t start, std::size_t end_) noexcept { @@ -114,7 +113,7 @@ public: const u64 end_page = AlignUp(base, HostPageSize); const u64 first_size = (std::min)(end_page, end) - base; - if (IsCommittedPage(start)) { + if (IsCommittedPage(start / sizeof(T))) { std::memset(reinterpret_cast(base), 0, first_size); } @@ -124,16 +123,11 @@ public: base = end_page; for (u64 page = base; page < end; page += HostPageSize) { - auto index = (page - reinterpret_cast(base_ptr)) / sizeof(T); - if (!IsCommittedPage(index)) { + if (!IsCommittedPage((page - reinterpret_cast(base_ptr)) / sizeof(T))) { continue; } - if (end - page >= HostPageSize) { - DecommitPage(index); - } else { - std::memset(reinterpret_cast(page), 0, end - page); - } + std::memset(reinterpret_cast(page), 0, (std::min)( HostPageSize, end - page)); } } @@ -176,30 +170,16 @@ private: return (val >> (page & 63)) & 1; } - constexpr bool CommitPage(std::size_t index) noexcept { + constexpr void CommitPage(std::size_t index) noexcept { auto page_index = (index * sizeof(T)) >> HostPageBits; auto page = reinterpret_cast(base_ptr + index) & HostPageMask; #if defined(_WIN32) - if (!CommitVectorPage(page, true)) { - return false; - } + CommitVectorPage(page, true); #else - if (mprotect(reinterpret_cast(page), HostPageSize, PROT_READ | PROT_WRITE) != 0) { - LOG_ERROR(Common_Memory, "Failed to commit large buffer region at index {}, error {}", index, strerror(errno)); - return false; - } + mprotect(reinterpret_cast(page), HostPageSize, PROT_READ | PROT_WRITE); #endif committed_pages[page_index >> 6].fetch_or(1ULL << (page_index & 63), std::memory_order_release); - return true; - } - - constexpr void DecommitPage(std::size_t index) noexcept { - auto page_index = (index * sizeof(T)) >> HostPageBits; - auto page = reinterpret_cast(base_ptr + index) & HostPageMask; - - committed_pages[page_index >> 6].fetch_and(~(1ULL << (page_index & 63)), std::memory_order_release); - DecommitVectorPage(page); } std::size_t alloc_size{}; diff --git a/src/common/spin_lock.h b/src/common/spin_lock.h new file mode 100644 index 0000000000..93d507ae80 --- /dev/null +++ b/src/common/spin_lock.h @@ -0,0 +1,50 @@ +// SPDX-FileCopyrightText: Copyright 2025 Eden Emulator Project +// SPDX-License-Identifier: GPL-3.0-or-later + +// SPDX-FileCopyrightText: Copyright 2020 yuzu Emulator Project +// SPDX-License-Identifier: GPL-2.0-or-later + +#pragma once + +#ifdef _MSC_VER +#include +#elif defined(ARCHITECTURE_x86_64) +#include +#endif +#include + +namespace Common { + +/// @brief A lock similar to mutex that forces a thread to spin wait instead calling the +/// supervisor. Should be used on short sequences of code. +struct SpinLock { + SpinLock() noexcept = default; + SpinLock(const SpinLock&) noexcept = delete; + SpinLock& operator=(const SpinLock&) noexcept = delete; + SpinLock(SpinLock&&) noexcept = delete; + SpinLock& operator=(SpinLock&&) noexcept = delete; + + inline void lock() noexcept { + while (lck.test_and_set(std::memory_order_acquire)) { +#if defined(ARCHITECTURE_x86_64) + _mm_pause(); +#elif defined(ARCHITECTURE_arm64) && defined(_MSC_VER) + __yield(); +#elif defined(ARCHITECTURE_arm64) + asm("yield"); +#endif + } + } + + inline void unlock() noexcept { + lck.clear(std::memory_order_release); + } + + [[nodiscard]] inline bool try_lock() noexcept { + return !lck.test_and_set(std::memory_order_acquire); + } + + std::atomic_flag lck = ATOMIC_FLAG_INIT; +}; + +} // namespace Common diff --git a/src/common/uuid.cpp b/src/common/uuid.cpp index 4b992c5df8..51fe0abaa5 100644 --- a/src/common/uuid.cpp +++ b/src/common/uuid.cpp @@ -208,9 +208,9 @@ UUID UUID::MakeRandomRFC4122V4() { return uuid; } -UUID UUID::MakeRFC4122V5(std::span sha1) { +UUID UUID::MakeRFC4122V5(std::span sha1) { UUID uuid{}; - std::memcpy(&uuid.uuid, sha1.data(), sha1.size()); + std::memcpy(&uuid.uuid, sha1.data(), sizeof(UUID)); uuid.uuid[8] = 0x80 | (uuid.uuid[8] & 0x3F); uuid.uuid[6] = 0x50 | (uuid.uuid[6] & 0xF); return uuid; diff --git a/src/common/uuid.h b/src/common/uuid.h index 465b5be58d..3aa3212dd7 100644 --- a/src/common/uuid.h +++ b/src/common/uuid.h @@ -104,7 +104,7 @@ struct UUID { /// @returns A random UUID that is RFC 4122 Version 4 compliant. [[nodiscard]] static UUID MakeRandomRFC4122V4(); - [[nodiscard]] static UUID MakeRFC4122V5(std::span sha1); + [[nodiscard]] static UUID MakeRFC4122V5(std::span sha1); friend constexpr bool operator==(const UUID& lhs, const UUID& rhs) = default; }; diff --git a/src/common/zbic_compression.cpp b/src/common/zbic_compression.cpp deleted file mode 100644 index 5e0e4d947b..0000000000 --- a/src/common/zbic_compression.cpp +++ /dev/null @@ -1,46 +0,0 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - -#include - -#include "common/zbic_compression.h" - -#define ZSTD_ZBIC_SUPPORT 1 -#define ZSTDLIB_VISIBLE static -#define ZSTDLIB_HIDDEN static -#define ZSTDERRORLIB_VISIBLE static -#define ZSTDERRORLIB_HIDDEN static -#undef ZSTD_MULTITHREAD - -#if defined(__ANDROID__) -#undef _GNU_SOURCE -#endif - -#include "zstd.h" -#define g_ZSTD_threading_useless_symbol g_ZSTD_zbic_threading_useless_symbol -#include "zstd.c" -#undef g_ZSTD_threading_useless_symbol - -namespace Common::Compression { - -bool IsZBIC(std::span src) { - if (src.size() < sizeof(u32)) { - return false; - } - u32 magic = 0; - std::memcpy(&magic, src.data(), sizeof(u32)); - return magic == ZSTD_MAGICNUMBER; // 0x4349425A ("ZBIC") -} - -int DecompressDataZBIC(std::span dst, std::span src) { - if (dst.empty() || src.empty()) { - return -1; - } - const size_t res = ZSTD_decompress(dst.data(), dst.size(), src.data(), src.size()); - if (ZSTD_isError(res)) { - return -1; - } - return static_cast(res); -} - -} // namespace Common::Compression diff --git a/src/common/zbic_compression.h b/src/common/zbic_compression.h deleted file mode 100644 index c36a559388..0000000000 --- a/src/common/zbic_compression.h +++ /dev/null @@ -1,15 +0,0 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - -#pragma once - -#include -#include "common/common_types.h" - -namespace Common::Compression { - -[[nodiscard]] bool IsZBIC(std::span src); - -[[nodiscard]] int DecompressDataZBIC(std::span dst, std::span src); - -} // namespace Common::Compression diff --git a/src/common/zstd_compression.cpp b/src/common/zstd_compression.cpp index 7665482ee6..cb6ec171b5 100644 --- a/src/common/zstd_compression.cpp +++ b/src/common/zstd_compression.cpp @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2019 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later @@ -49,10 +46,4 @@ std::vector DecompressDataZSTD(std::span compressed) { return decompressed; } -std::size_t DecompressDataZSTD(std::span compressed, std::span output) { - const std::size_t result = - ZSTD_decompress(output.data(), output.size(), compressed.data(), compressed.size()); - return ZSTD_isError(result) ? 0 : result; -} - } // namespace Common::Compression diff --git a/src/common/zstd_compression.h b/src/common/zstd_compression.h index 819d7d201a..a5ab2d05bd 100644 --- a/src/common/zstd_compression.h +++ b/src/common/zstd_compression.h @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2019 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later @@ -45,15 +42,4 @@ namespace Common::Compression { */ [[nodiscard]] std::vector DecompressDataZSTD(std::span compressed); -/** - * Decompresses a single Zstandard frame into a caller-provided buffer of known size. - * - * @param compressed the compressed source memory region. - * @param output the destination buffer. Its size is the maximum number of bytes to write. - * - * @return the number of bytes written, or 0 if the frame is invalid or doesn't fit. An empty - * frame also returns 0. - */ -[[nodiscard]] std::size_t DecompressDataZSTD(std::span compressed, std::span output); - } // namespace Common::Compression diff --git a/src/core/CMakeLists.txt b/src/core/CMakeLists.txt index 1b578f67ba..43bdb3d446 100644 --- a/src/core/CMakeLists.txt +++ b/src/core/CMakeLists.txt @@ -23,8 +23,6 @@ add_library(core STATIC core_timing.h cpu_manager.cpp cpu_manager.h - launch_params.cpp - launch_params.h crypto/aes_util.cpp crypto/aes_util.h crypto/ctr_encryption_layer.cpp @@ -33,8 +31,6 @@ add_library(core STATIC crypto/encryption_layer.h crypto/key_manager.cpp crypto/key_manager.h - crypto/ncz_decompressor.cpp - crypto/ncz_decompressor.h crypto/partition_data_manager.cpp crypto/partition_data_manager.h crypto/xts_encryption_layer.cpp @@ -800,8 +796,6 @@ add_library(core STATIC hle/service/ns/application_manager_interface.h hle/service/ns/application_version_interface.cpp hle/service/ns/application_version_interface.h - hle/service/ns/async_result.cpp - hle/service/ns/async_result.h hle/service/ns/content_management_interface.cpp hle/service/ns/content_management_interface.h hle/service/ns/develop_interface.cpp @@ -1207,9 +1201,6 @@ endif() target_include_directories(core PRIVATE ${OPUS_INCLUDE_DIRS}) target_link_libraries(core PUBLIC common PRIVATE audio_core hid_core network video_core nx_tzdb tz) -if (MSVC) - target_link_libraries(core PRIVATE getopt) -endif() if (BOOST_NO_HEADERS) target_link_libraries(core PUBLIC Boost::container Boost::heap Boost::asio Boost::process Boost::crc) @@ -1250,7 +1241,7 @@ if (HAS_NCE) target_link_libraries(core PRIVATE merry::oaknut) endif() -if (ARCHITECTURE_x86_64 OR ARCHITECTURE_arm64 OR ARCHITECTURE_riscv64 OR ARCHITECTURE_loongarch64) +if (ARCHITECTURE_x86_64 OR ARCHITECTURE_arm64 OR ARCHITECTURE_riscv64 OR ARCHITECTURE_powerpc64 OR ARCHITECTURE_powerpc64) target_sources(core PRIVATE arm/dynarmic/arm_dynarmic.h arm/dynarmic/arm_dynarmic_64.cpp @@ -1270,11 +1261,23 @@ if (ARCHITECTURE_x86_64 OR ARCHITECTURE_arm64 OR ARCHITECTURE_riscv64 OR ARCHITE target_link_libraries(core PRIVATE dynarmic::dynarmic) endif() -if (TARGET OpenSSL::SSL) - target_sources(core PRIVATE hle/service/ssl/ssl_backend_openssl.cpp) - target_link_libraries(core PRIVATE OpenSSL::SSL OpenSSL::Crypto) -else() - target_sources(core PRIVATE hle/service/ssl/ssl_backend_none.cpp) -endif() +target_sources(core PRIVATE hle/service/ssl/ssl_backend_openssl.cpp) + +target_link_libraries(core PRIVATE OpenSSL::SSL OpenSSL::Crypto) + +# TODO + +# elseif (APPLE) +# target_sources(core PRIVATE +# hle/service/ssl/ssl_backend_securetransport.cpp) +# target_link_libraries(core PRIVATE "-framework Security") +# elseif (WIN32) +# target_sources(core PRIVATE +# hle/service/ssl/ssl_backend_schannel.cpp) +# target_link_libraries(core PRIVATE crypt32 secur32) +# else() +# target_sources(core PRIVATE +# hle/service/ssl/ssl_backend_none.cpp) +# endif() create_target_directory_groups(core) diff --git a/src/core/arm/dynarmic/arm_dynarmic_32.cpp b/src/core/arm/dynarmic/arm_dynarmic_32.cpp index a59aa3cac3..80e2b2dca9 100644 --- a/src/core/arm/dynarmic/arm_dynarmic_32.cpp +++ b/src/core/arm/dynarmic/arm_dynarmic_32.cpp @@ -22,15 +22,21 @@ DynarmicCallbacks32::DynarmicCallbacks32(ArmDynarmic32& parent, Kernel::KProcess , m_check_memory_access{m_debugger_enabled || !Settings::values.cpuopt_ignore_memory_aborts.GetValue()} {} -u64 DynarmicCallbacks32::MemoryRead(u32 vaddr, size_t size) { - CheckMemoryAccess(vaddr, size, Kernel::DebugWatchpointType::Read); - switch (size) { - case sizeof(u64): return m_memory.Read64(vaddr); - case sizeof(u32): return m_memory.Read32(vaddr); - case sizeof(u16): return m_memory.Read16(vaddr); - case sizeof(u8): return m_memory.Read8(vaddr); - default: UNREACHABLE(); - } +u8 DynarmicCallbacks32::MemoryRead8(u32 vaddr) { + CheckMemoryAccess(vaddr, 1, Kernel::DebugWatchpointType::Read); + return m_memory.Read8(vaddr); +} +u16 DynarmicCallbacks32::MemoryRead16(u32 vaddr) { + CheckMemoryAccess(vaddr, 2, Kernel::DebugWatchpointType::Read); + return m_memory.Read16(vaddr); +} +u32 DynarmicCallbacks32::MemoryRead32(u32 vaddr) { + CheckMemoryAccess(vaddr, 4, Kernel::DebugWatchpointType::Read); + return m_memory.Read32(vaddr); +} +u64 DynarmicCallbacks32::MemoryRead64(u32 vaddr) { + CheckMemoryAccess(vaddr, 8, Kernel::DebugWatchpointType::Read); + return m_memory.Read64(vaddr); } std::optional DynarmicCallbacks32::MemoryReadCode(u32 vaddr) { @@ -44,17 +50,27 @@ std::optional DynarmicCallbacks32::MemoryReadCode(u32 vaddr) { return cached_code_page.inst[(vaddr & Core::Memory::YUZU_PAGEMASK) / sizeof(u32)]; } -void DynarmicCallbacks32::MemoryWrite(Dynarmic::A32::VAddr vaddr, u64 value, size_t size) { - if (CheckMemoryAccess(vaddr, size, Kernel::DebugWatchpointType::Write)) { - switch (size) { - case sizeof(u64): return m_memory.Write64(vaddr, value); - case sizeof(u32): return m_memory.Write32(vaddr, u32(value)); - case sizeof(u16): return m_memory.Write16(vaddr, u16(value)); - case sizeof(u8): return m_memory.Write8(vaddr, u8(value)); - default: UNREACHABLE(); - } +void DynarmicCallbacks32::MemoryWrite8(u32 vaddr, u8 value) { + if (CheckMemoryAccess(vaddr, 1, Kernel::DebugWatchpointType::Write)) { + m_memory.Write8(vaddr, value); } } +void DynarmicCallbacks32::MemoryWrite16(u32 vaddr, u16 value) { + if (CheckMemoryAccess(vaddr, 2, Kernel::DebugWatchpointType::Write)) { + m_memory.Write16(vaddr, value); + } +} +void DynarmicCallbacks32::MemoryWrite32(u32 vaddr, u32 value) { + if (CheckMemoryAccess(vaddr, 4, Kernel::DebugWatchpointType::Write)) { + m_memory.Write32(vaddr, value); + } +} +void DynarmicCallbacks32::MemoryWrite64(u32 vaddr, u64 value) { + if (CheckMemoryAccess(vaddr, 8, Kernel::DebugWatchpointType::Write)) { + m_memory.Write64(vaddr, value); + } +} + bool DynarmicCallbacks32::MemoryWriteExclusive8(u32 vaddr, u8 value, u8 expected) { return CheckMemoryAccess(vaddr, 1, Kernel::DebugWatchpointType::Write) && m_memory.WriteExclusive8(vaddr, value, expected); @@ -161,7 +177,7 @@ void ArmDynarmic32::MakeJit(Common::PageTable* page_table) { config.page_table = reinterpret_cast*>( const_cast(page_table->entries.data())); config.page_table_pointer_mask = Common::PageTable::ATTRIBUTE_MASK; - config.page_table_marked_bit = uint8_t(0); + config.page_table_marked_bit = 0; config.absolute_offset_page_table = true; config.detect_misaligned_access_via_page_table = 16 | 32 | 64 | 128; config.only_detect_misalignment_via_page_table_on_page_boundary = true; @@ -177,7 +193,7 @@ void ArmDynarmic32::MakeJit(Common::PageTable* page_table) { Kernel::Board::Nintendo::Nx::KSystemControl::Init::GetIntendedMemorySize()) < (1ULL << 39)) { // Systems like FreeBSD allocate memory really low by default, and since we pack our page table entries, // we have to manually sign extend when our actual pointer is negative. - config.page_table_sign_extension = std::uint8_t(Common::PageTable::SIGN_BIT); + config.page_table_sign_extension = Common::PageTable::SIGN_BIT; } } diff --git a/src/core/arm/dynarmic/arm_dynarmic_32.h b/src/core/arm/dynarmic/arm_dynarmic_32.h index 22655dff47..623597152f 100644 --- a/src/core/arm/dynarmic/arm_dynarmic_32.h +++ b/src/core/arm/dynarmic/arm_dynarmic_32.h @@ -30,12 +30,18 @@ class System; class DynarmicCallbacks32 : public Dynarmic::A32::UserCallbacks { public: explicit DynarmicCallbacks32(ArmDynarmic32& parent, Kernel::KProcess* process); - u64 MemoryRead(u32 vaddr, size_t size) override; + u8 MemoryRead8(u32 vaddr) override; + u16 MemoryRead16(u32 vaddr) override; + u32 MemoryRead32(u32 vaddr) override; + u64 MemoryRead64(u32 vaddr) override; std::optional MemoryReadCode(u32 vaddr) override; void InstructionSynchronizationBarrierRaised() override { last_code_addr = u64(-1); //reset back, force refetch } - void MemoryWrite(Dynarmic::A32::VAddr vaddr, u64 value, size_t size) override; + void MemoryWrite8(u32 vaddr, u8 value) override; + void MemoryWrite16(u32 vaddr, u16 value) override; + void MemoryWrite32(u32 vaddr, u32 value) override; + void MemoryWrite64(u32 vaddr, u64 value) override; bool MemoryWriteExclusive8(u32 vaddr, u8 value, u8 expected) override; bool MemoryWriteExclusive16(u32 vaddr, u16 value, u16 expected) override; bool MemoryWriteExclusive32(u32 vaddr, u32 value, u32 expected) override; diff --git a/src/core/arm/dynarmic/arm_dynarmic_64.cpp b/src/core/arm/dynarmic/arm_dynarmic_64.cpp index 894857a86d..9662bf1712 100644 --- a/src/core/arm/dynarmic/arm_dynarmic_64.cpp +++ b/src/core/arm/dynarmic/arm_dynarmic_64.cpp @@ -10,7 +10,6 @@ #include "core/arm/dynarmic/dynarmic_exclusive_monitor.h" #include "core/core_timing.h" #include "core/hle/kernel/k_process.h" -#include "dynarmic/interface/A64/config.h" namespace Core { @@ -22,15 +21,21 @@ DynarmicCallbacks64::DynarmicCallbacks64(ArmDynarmic64& parent, Kernel::KProcess , m_check_memory_access{m_debugger_enabled || !Settings::values.cpuopt_ignore_memory_aborts.GetValue()} {} -u64 DynarmicCallbacks64::MemoryRead(u64 vaddr, size_t size) { - CheckMemoryAccess(vaddr, size, Kernel::DebugWatchpointType::Read); - switch (size) { - case sizeof(u64): return m_memory.Read64(vaddr); - case sizeof(u32): return m_memory.Read32(vaddr); - case sizeof(u16): return m_memory.Read16(vaddr); - case sizeof(u8): return m_memory.Read8(vaddr); - default: UNREACHABLE(); - } +u8 DynarmicCallbacks64::MemoryRead8(u64 vaddr) { + CheckMemoryAccess(vaddr, 1, Kernel::DebugWatchpointType::Read); + return m_memory.Read8(vaddr); +} +u16 DynarmicCallbacks64::MemoryRead16(u64 vaddr) { + CheckMemoryAccess(vaddr, 2, Kernel::DebugWatchpointType::Read); + return m_memory.Read16(vaddr); +} +u32 DynarmicCallbacks64::MemoryRead32(u64 vaddr) { + CheckMemoryAccess(vaddr, 4, Kernel::DebugWatchpointType::Read); + return m_memory.Read32(vaddr); +} +u64 DynarmicCallbacks64::MemoryRead64(u64 vaddr) { + CheckMemoryAccess(vaddr, 8, Kernel::DebugWatchpointType::Read); + return m_memory.Read64(vaddr); } Dynarmic::A64::Vector DynarmicCallbacks64::MemoryRead128(u64 vaddr) { CheckMemoryAccess(vaddr, 16, Kernel::DebugWatchpointType::Read); @@ -48,15 +53,24 @@ std::optional DynarmicCallbacks64::MemoryReadCode(u64 vaddr) { return cached_code_page.inst[(vaddr & Core::Memory::YUZU_PAGEMASK) / sizeof(u32)]; } -void DynarmicCallbacks64::MemoryWrite(Dynarmic::A64::VAddr vaddr, u64 value, std::size_t size) { - if (CheckMemoryAccess(vaddr, size, Kernel::DebugWatchpointType::Write)) { - switch (size) { - case sizeof(u64): return m_memory.Write64(vaddr, u64(value)); - case sizeof(u32): return m_memory.Write32(vaddr, u32(value)); - case sizeof(u16): return m_memory.Write16(vaddr, u16(value)); - case sizeof(u8): return m_memory.Write8(vaddr, u8(value)); - default: UNREACHABLE(); - } +void DynarmicCallbacks64::MemoryWrite8(u64 vaddr, u8 value) { + if (CheckMemoryAccess(vaddr, 1, Kernel::DebugWatchpointType::Write)) { + m_memory.Write8(vaddr, value); + } +} +void DynarmicCallbacks64::MemoryWrite16(u64 vaddr, u16 value) { + if (CheckMemoryAccess(vaddr, 2, Kernel::DebugWatchpointType::Write)) { + m_memory.Write16(vaddr, value); + } +} +void DynarmicCallbacks64::MemoryWrite32(u64 vaddr, u32 value) { + if (CheckMemoryAccess(vaddr, 4, Kernel::DebugWatchpointType::Write)) { + m_memory.Write32(vaddr, value); + } +} +void DynarmicCallbacks64::MemoryWrite64(u64 vaddr, u64 value) { + if (CheckMemoryAccess(vaddr, 8, Kernel::DebugWatchpointType::Write)) { + m_memory.Write64(vaddr, value); } } void DynarmicCallbacks64::MemoryWrite128(u64 vaddr, Dynarmic::A64::Vector value) { @@ -202,7 +216,7 @@ void ArmDynarmic64::MakeJit(Common::PageTable* page_table, std::size_t address_s const_cast(page_table->entries.data())); config.page_table_address_space_bits = std::uint32_t(address_space_bits); config.page_table_pointer_mask = Common::PageTable::ATTRIBUTE_MASK; - config.page_table_marked_bit = uint8_t(0); + config.page_table_marked_bit = 0; config.silently_mirror_page_table = false; config.absolute_offset_page_table = true; config.detect_misaligned_access_via_page_table = 16 | 32 | 64 | 128; @@ -221,7 +235,7 @@ void ArmDynarmic64::MakeJit(Common::PageTable* page_table, std::size_t address_s Kernel::Board::Nintendo::Nx::KSystemControl::Init::GetIntendedMemorySize()) < (1ULL << 39)) { // Systems like FreeBSD allocate memory really low by default, and since we pack our page table entries, // we have to manually sign extend when our actual pointer is negative. - config.page_table_sign_extension = std::uint8_t(Common::PageTable::SIGN_BIT); + config.page_table_sign_extension = Common::PageTable::SIGN_BIT; } } diff --git a/src/core/arm/dynarmic/arm_dynarmic_64.h b/src/core/arm/dynarmic/arm_dynarmic_64.h index 5ea5dde8a6..4c8570913f 100644 --- a/src/core/arm/dynarmic/arm_dynarmic_64.h +++ b/src/core/arm/dynarmic/arm_dynarmic_64.h @@ -16,7 +16,6 @@ #include "common/hash.h" #include "core/arm/arm_interface.h" #include "core/arm/dynarmic/dynarmic_exclusive_monitor.h" -#include "dynarmic/interface/A64/config.h" namespace Core::Memory { class Memory; @@ -37,13 +36,19 @@ class DynarmicCallbacks64 : public Dynarmic::A64::UserCallbacks { public: explicit DynarmicCallbacks64(ArmDynarmic64& parent, Kernel::KProcess* process); - u64 MemoryRead(u64 vaddr, size_t size) override; + u8 MemoryRead8(u64 vaddr) override; + u16 MemoryRead16(u64 vaddr) override; + u32 MemoryRead32(u64 vaddr) override; + u64 MemoryRead64(u64 vaddr) override; Dynarmic::A64::Vector MemoryRead128(u64 vaddr) override; std::optional MemoryReadCode(u64 vaddr) override; void InstructionSynchronizationBarrierRaised() override { last_code_addr = u64(-1); //reset back, force refetch } - void MemoryWrite(Dynarmic::A64::VAddr vaddr, u64 value, std::size_t size) override; + void MemoryWrite8(u64 vaddr, u8 value) override; + void MemoryWrite16(u64 vaddr, u16 value) override; + void MemoryWrite32(u64 vaddr, u32 value) override; + void MemoryWrite64(u64 vaddr, u64 value) override; void MemoryWrite128(u64 vaddr, Dynarmic::A64::Vector value) override; bool MemoryWriteExclusive8(u64 vaddr, std::uint8_t value, std::uint8_t expected) override; bool MemoryWriteExclusive16(u64 vaddr, std::uint16_t value, std::uint16_t expected) override; diff --git a/src/core/arm/nce/arm_nce.cpp b/src/core/arm/nce/arm_nce.cpp index 438dd4d981..63d5638fce 100644 --- a/src/core/arm/nce/arm_nce.cpp +++ b/src/core/arm/nce/arm_nce.cpp @@ -369,8 +369,8 @@ void ArmNce::SetContext(const Kernel::Svc::ThreadContext& ctx) { } void ArmNce::SignalInterrupt(Kernel::KThread* thread) { - constexpr u64 break_loop = static_cast(HaltReason::BreakLoop); - if ((m_guest_ctx.esr_el1.fetch_or(break_loop) & break_loop) != 0) return; + // Add break loop condition. + m_guest_ctx.esr_el1.fetch_or(static_cast(HaltReason::BreakLoop)); auto* params = &thread->GetNativeExecutionParameters(); LockThreadParameters(params); diff --git a/src/core/arm/nce/arm_nce_asm_definitions.h b/src/core/arm/nce/arm_nce_asm_definitions.h index ec6abd62d2..8ea4383f73 100644 --- a/src/core/arm/nce/arm_nce_asm_definitions.h +++ b/src/core/arm/nce/arm_nce_asm_definitions.h @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - /* SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project */ /* SPDX-License-Identifier: GPL-2.0-or-later */ @@ -8,22 +5,9 @@ #define __ASSEMBLY__ -// Newer Linux UAPI headers check __ASSEMBLER__ instead of __ASSEMBLY__ to hide C declarations. -// Without it, asm-generic/signal.h redeclares sigset_t and clashes with glibc's. Only define it -// around these includes, since glibc headers also look at __ASSEMBLER__. -#ifndef __ASSEMBLER__ -#define __ASSEMBLER__ -#define EDEN_NCE_UNDEF_ASSEMBLER -#endif - #include #include -#ifdef EDEN_NCE_UNDEF_ASSEMBLER -#undef __ASSEMBLER__ -#undef EDEN_NCE_UNDEF_ASSEMBLER -#endif - #define ReturnToRunCodeByExceptionLevelChangeSignal SIGUSR2 #define BreakFromRunCodeSignal SIGURG #define GuestAccessFaultSignal SIGSEGV diff --git a/src/core/arm/nce/patcher.cpp b/src/core/arm/nce/patcher.cpp index f21d7cacdc..7d2041d4d2 100644 --- a/src/core/arm/nce/patcher.cpp +++ b/src/core/arm/nce/patcher.cpp @@ -45,23 +45,6 @@ Patcher::Patcher() : c(m_patch_instructions), c_pre(m_patch_instructions_pre) { WriteLoadContext(c_pre); } -Patcher::Patcher(std::span text) : c(m_patch_instructions), c_pre(m_patch_instructions_pre) { - modules.emplace_back(); - curr_patch = &modules.back(); - const auto words = std::span{reinterpret_cast(text.data()), text.size() / sizeof(u32)}; - for (u32 i = ModuleCodeIndex; i < static_cast(words.size()); ++i) { - const uintptr_t offset = i * sizeof(u32); - if (auto mrs = MRS{words[i]}; mrs.Verify() && mrs.GetRt() != 31 && (mrs.GetSystemReg() == TpidrEl0 || mrs.GetSystemReg() == TpidrroEl0)) { - BranchToPatch(offset); - const auto src_reg = mrs.GetSystemReg() == TpidrroEl0 ? oaknut::SystemReg::TPIDRRO_EL0 : oaknut::SystemReg::TPIDR_EL0; - WriteMrsHandler(offset + sizeof(u32), oaknut::XReg{static_cast(mrs.GetRt())}, src_reg); - } else if (auto msr = MSR{words[i]}; msr.Verify() && msr.GetSystemReg() == TpidrEl0) { - BranchToPatch(offset); - WriteMsrHandler(offset + sizeof(u32), oaknut::XReg{static_cast(msr.GetRt())}); - } - } -} - Patcher::~Patcher() = default; bool Patcher::PatchText(std::span program_image, const Kernel::CodeSet::Segment& code) { @@ -199,31 +182,6 @@ bool Patcher::PatchText(std::span program_image, const Kernel::CodeSet return true; } -std::span Patcher::RelocateRuntimeTls( - s64 patch_offset, std::vector& out_patches) { - const auto& patch = modules.front(); - const auto can_branch = [](s64 offset) { - return offset % 4 == 0 && offset >= -static_cast(MaxRelativeBranch) && offset < static_cast(MaxRelativeBranch); - }; - out_patches.clear(); - out_patches.reserve(patch.m_branch_to_patch_relocations.size()); - for (const auto& rel : patch.m_branch_to_patch_relocations) { - const s64 offset = patch_offset + rel.patch_offset - static_cast(rel.module_offset); - if (!can_branch(offset)) {return {};} - u32 replacement; - oaknut::CodeGenerator rc{&replacement}; - rc.B(offset); - out_patches.push_back({rel.module_offset, replacement}); - } - for (const auto& rel : patch.m_branch_to_module_relocations) { - const s64 offset = static_cast(rel.module_offset) - patch_offset - rel.patch_offset; - if (!can_branch(offset)) {return {};} - oaknut::CodeGenerator rc{m_patch_instructions.data() + rel.patch_offset / sizeof(u32)}; - rc.B(offset); - } - return m_patch_instructions; -} - bool Patcher::RelocateAndCopy(Common::ProcessAddress load_base, const Kernel::CodeSet::Segment& code, std::vector& program_image, EntryTrampolines* out_trampolines) { const size_t patch_size = GetSectionSize(); const size_t pre_patch_size = GetPreSectionSize(); diff --git a/src/core/arm/nce/patcher.h b/src/core/arm/nce/patcher.h index 695161cd18..a3b314000c 100644 --- a/src/core/arm/nce/patcher.h +++ b/src/core/arm/nce/patcher.h @@ -48,22 +48,15 @@ using ModuleTextAddress = u64; using PatchTextAddress = u64; using EntryTrampolines = ::Common::unordered_map; -struct InstructionPatch { - u64 offset; - u32 replacement; -}; - class Patcher { public: void SetModuleID(const ModuleID& id) { module_id = id; } explicit Patcher(); - explicit Patcher(std::span text); ~Patcher(); bool PatchText(std::span program_image, const Kernel::CodeSet::Segment& code); bool RelocateAndCopy(Common::ProcessAddress load_base, const Kernel::CodeSet::Segment& code, std::vector& program_image, EntryTrampolines* out_trampolines); - std::span RelocateRuntimeTls(s64 patch_offset, std::vector& out_patches); size_t GetSectionSize() const noexcept; size_t GetPreSectionSize() const noexcept; diff --git a/src/core/core.cpp b/src/core/core.cpp index 06543b0833..054af8dc4a 100644 --- a/src/core/core.cpp +++ b/src/core/core.cpp @@ -4,6 +4,7 @@ #include #include #include +#include #include #include "game_settings.h" @@ -248,12 +249,30 @@ struct System::Impl { } } - void SetNVDECActive(bool is_nvdec_active) { - nvdec_active = is_nvdec_active; + void NotifyNVDECChannelOpen(u64 process_id) { + std::scoped_lock lock{nvdec_active_mutex}; + ++nvdec_active_channels[process_id]; + } + + void NotifyNVDECChannelClose(u64 process_id) { + std::scoped_lock lock{nvdec_active_mutex}; + const auto it = nvdec_active_channels.find(process_id); + if (it == nvdec_active_channels.end()) { + return; + } + if (--it->second == 0) { + nvdec_active_channels.erase(it); + } } bool GetNVDECActive() { - return nvdec_active; + std::scoped_lock lock{nvdec_active_mutex}; + return !nvdec_active_channels.empty(); + } + + bool IsNVDECActiveForProcess(u64 process_id) { + std::scoped_lock lock{nvdec_active_mutex}; + return nvdec_active_channels.contains(process_id); } void InitializeDebugger(System& system, u16 port) { @@ -293,10 +312,6 @@ struct System::Impl { } SystemResultStatus Load(System& system, Frontend::EmuWindow& emu_window, const std::string& filepath, Service::AM::FrontendAppletParameters& params) { - if (params.launch_type == Service::AM::LaunchType::FrontendInitiated) { - fs_controller.InitTempStorage(); - } - InitializeKernel(system); if (params.applet_type == Service::AM::AppletType::Application) { @@ -509,6 +524,8 @@ struct System::Impl { mutable std::mutex suspend_guard; std::mutex general_channel_mutex; + std::mutex nvdec_active_mutex; + std::unordered_map nvdec_active_channels; std::atomic_bool is_paused{}; std::atomic_bool is_shutting_down{}; std::atomic_bool is_powered_on{}; @@ -516,7 +533,6 @@ struct System::Impl { bool extended_memory_layout : 1 = false; bool exit_locked : 1 = false; bool exit_requested : 1 = false; - bool nvdec_active : 1 = false; void EnsureGeneralChannelInitialized(System& system) { if (!general_channel_event) { @@ -580,14 +596,22 @@ void System::UnstallApplication() { impl->UnstallApplication(); } -void System::SetNVDECActive(bool is_nvdec_active) { - impl->SetNVDECActive(is_nvdec_active); +void System::NotifyNVDECChannelOpen(u64 process_id) { + impl->NotifyNVDECChannelOpen(process_id); +} + +void System::NotifyNVDECChannelClose(u64 process_id) { + impl->NotifyNVDECChannelClose(process_id); } bool System::GetNVDECActive() { return impl->GetNVDECActive(); } +bool System::IsNVDECActiveForProcess(u64 process_id) { + return impl->IsNVDECActiveForProcess(process_id); +} + void System::InitializeDebugger() { impl->InitializeDebugger(*this, Settings::values.gdbstub_port.GetValue()); } diff --git a/src/core/core.h b/src/core/core.h index d88ed64151..e26093f260 100644 --- a/src/core/core.h +++ b/src/core/core.h @@ -191,8 +191,10 @@ public: std::unique_lock StallApplication(); void UnstallApplication(); - void SetNVDECActive(bool is_nvdec_active); + void NotifyNVDECChannelOpen(u64 process_id); + void NotifyNVDECChannelClose(u64 process_id); [[nodiscard]] bool GetNVDECActive(); + [[nodiscard]] bool IsNVDECActiveForProcess(u64 process_id); /** * Initialize the debugger. diff --git a/src/core/crypto/ncz_decompressor.cpp b/src/core/crypto/ncz_decompressor.cpp deleted file mode 100644 index 5f56e55375..0000000000 --- a/src/core/crypto/ncz_decompressor.cpp +++ /dev/null @@ -1,430 +0,0 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - -#include -#include -#include -#include -#include -#include -#include -#include -#include - -#include - -#include "common/common_types.h" -#include "common/logging.h" -#include "common/zstd_compression.h" -#include "core/crypto/aes_util.h" -#include "core/crypto/key_manager.h" -#include "core/crypto/ncz_decompressor.h" -#include "core/file_sys/vfs/vfs.h" - -namespace Core::Crypto { - -namespace { - -constexpr u64 HeaderSize = 0x4000; -constexpr std::size_t SectionWire = 0x40; -constexpr std::size_t BlockFixed = 0x18; -constexpr std::size_t Chunk = 0x100000; -// Upper bound on NCZ section entries (64 bytes each, so the table is at most 4 MiB). A base NCA -// has a handful of sections, but nsz stores an update's patch (BKTR) data one entry per -// subsection, which is thousands of them. -constexpr u64 MaxSectionCount = 0x10000; -constexpr std::array SectionsMagic{'N', 'C', 'Z', 'S', 'E', 'C', 'T', 'N'}; -constexpr std::array BlockMagic{'N', 'C', 'Z', 'B', 'L', 'O', 'C', 'K'}; - -struct Section { - s64 offset, size; - u64 crypto_type; - Key128 key, counter; - bool Ctr() const { return crypto_type == 3 || crypto_type == 4; } -}; - -struct BlockHeader { - u32 exponent; - u64 decompressed_size; - std::vector sizes; -}; - -u64 Le(const u8* p, std::size_t n) { - u64 v = 0; - for (std::size_t i = n; i-- > 0;) v = (v << 8) | p[i]; - return v; -} - -// Mirrors nsz AESCTR.seek(): upper 8 bytes = stored counter, lower 8 = absolute NCA offset / 16. -void SetIv(Key128& iv, const Key128& base, u64 off) { - iv = base; - u64 blk = off >> 4; - for (std::size_t i = 0; i < 8; ++i) { iv[15 - i] = static_cast(blk & 0xFF); blk >>= 8; } -} - -// Parse header + section table + optional block header. Returns payload_start. -std::optional, std::optional>> ParseHeader( - const FileSys::VirtualFile& f, u64& payload_start) { - const u64 fsize = f->GetSize(); - if (fsize < HeaderSize + 16) return std::nullopt; - - const auto head = f->ReadBytes(16, HeaderSize); - if (head.size() != 16 || !std::equal(head.begin(), head.begin() + 8, SectionsMagic.begin())) - return std::nullopt; - const u64 count = Le(head.data() + 8, 8); - if (count == 0 || count > MaxSectionCount || count * SectionWire > fsize - HeaderSize - 16) - return std::nullopt; - - const auto table = f->ReadBytes(count * SectionWire, HeaderSize + 16); - if (table.size() != count * SectionWire) return std::nullopt; - - std::vector
sections; - sections.reserve(count + 1); - for (u64 i = 0; i < count; ++i) { - const u8* e = table.data() + i * SectionWire; - Section s{}; - s.offset = static_cast(Le(e, 8)); - s.size = static_cast(Le(e + 8, 8)); - s.crypto_type = Le(e + 16, 8); - std::memcpy(s.key.data(), e + 32, 16); - std::memcpy(s.counter.data(), e + 48, 16); - sections.push_back(s); - } - - const u64 block_start = HeaderSize + 16 + count * SectionWire; - const auto fixed = f->ReadBytes(BlockFixed, block_start); - std::optional bh; - if (fixed.size() == BlockFixed && - std::equal(fixed.begin(), fixed.begin() + 8, BlockMagic.begin())) { - BlockHeader b{}; - b.exponent = fixed[11]; - const s32 n = static_cast(Le(fixed.data() + 12, 4)); - if (n <= 0) return std::nullopt; - b.decompressed_size = Le(fixed.data() + 16, 8); - const auto sizes = f->ReadBytes(static_cast(n) * 4, block_start + BlockFixed); - if (sizes.size() != static_cast(n) * 4) return std::nullopt; - b.sizes.resize(n); - for (s32 i = 0; i < n; ++i) b.sizes[i] = static_cast(Le(sizes.data() + i * 4, 4)); - payload_start = block_start + BlockFixed + static_cast(n) * 4; - bh = std::move(b); - } else { - payload_start = block_start; - } - - if (!sections.empty() && sections[0].offset > static_cast(HeaderSize)) { - Section fake{}; - fake.offset = static_cast(HeaderSize); - fake.size = sections[0].offset - static_cast(HeaderSize); - sections.insert(sections.begin(), fake); - } - return std::make_pair(std::move(sections), std::move(bh)); -} - -// Sequential reader over independently-compressed blocks, one block cached (like nsz_rs). -class BlockReader { -public: - BlockReader(FileSys::VirtualFile f, const BlockHeader& bh, u64 payload_start) - : source{std::move(f)}, block_size{1ULL << bh.exponent}, sizes{bh.sizes}, - decompressed_size{bh.decompressed_size} { - if (bh.exponent < 14 || bh.exponent > 32 || sizes.empty()) - throw std::runtime_error("bad NCZBLOCK header"); - u64 off = payload_start; - offsets.reserve(sizes.size()); - for (u32 s : sizes) { offsets.push_back(off); off += s; } - } - - // Fills `out` from `position`; returns bytes written. - std::size_t ReadAt(u64 position, std::span out) { - std::size_t done = 0; - while (done < out.size() && position < decompressed_size) { - const u64 id = position / block_size; - if (id >= sizes.size()) break; - if (cache_id != id && !Load(id)) break; - const u64 in = position - id * block_size; - const std::size_t n = static_cast( - std::min(out.size() - done, cache.size() - in)); - std::memcpy(out.data() + done, cache.data() + in, n); - done += n; - position += n; - } - return done; - } - -private: - bool Load(u64 id) { - u64 want = block_size; - if (id + 1 == sizes.size()) { - const u64 rem = decompressed_size % block_size; - if (rem > 0) want = rem; // avoid the 0-size bug from the original nsz - } - try { cache.resize(static_cast(want)); } - catch (const std::bad_alloc&) { return false; } - const u32 csize = sizes[id]; - if (csize < want) { - const auto comp = source->ReadBytes(csize, offsets[id]); - if (comp.size() != csize || - Common::Compression::DecompressDataZSTD(comp, cache) != want) return false; - } else if (source->Read(cache.data(), cache.size(), offsets[id]) != cache.size()) { - return false; - } - cache_id = id; - return true; - } - - FileSys::VirtualFile source; - u64 block_size; - std::vector offsets; - std::vector sizes; - u64 decompressed_size; - u64 cache_id = ~0ULL; - std::vector cache; -}; - -class BlockNczFile final : public FileSys::VfsFile { -public: - BlockNczFile(std::string name_, std::vector hdr_, std::vector
sections_, - std::unique_ptr body_) - : name{std::move(name_)}, hdr{std::move(hdr_)}, sections{std::move(sections_)}, - body{std::move(body_)} { - nca_size = HeaderSize; - for (const auto& s : sections) - nca_size = std::max(nca_size, static_cast(s.offset + s.size)); - ciphers.reserve(sections.size()); - for (const auto& s : sections) - ciphers.push_back(s.Ctr() ? std::make_unique>(s.key, Mode::CTR) - : nullptr); - } - - std::string GetName() const override { return name; } - std::size_t GetSize() const override { return static_cast(nca_size); } - bool Resize(std::size_t) override { return false; } - FileSys::VirtualDir GetContainingDirectory() const override { return nullptr; } - bool IsWritable() const override { return false; } - bool IsReadable() const override { return true; } - - std::size_t Read(u8* data, std::size_t len, std::size_t off) const override { - if (off >= nca_size) return 0; - len = static_cast(std::min(len, nca_size - off)); - const u64 end = off + len; - u64 pos = off; - if (pos < HeaderSize) { - const u64 n = std::min(end, HeaderSize) - pos; - std::memcpy(data, hdr.data() + pos, static_cast(n)); - pos += n; - } - std::scoped_lock lock{mutex}; - for (std::size_t i = 0; i < sections.size() && pos < end; ++i) { - const auto& s = sections[i]; - const u64 begin = std::max(static_cast(s.offset), HeaderSize); - const u64 stop = std::max(static_cast(s.offset + s.size), begin); - if (stop <= pos) continue; - if (pos < begin) { - const u64 g = std::min(end, begin); - std::memset(data + (pos - off), 0, static_cast(g - pos)); - pos = g; - if (pos >= end) break; - } - const u64 pe = std::min(end, stop); - const std::span piece(data + (pos - off), static_cast(pe - pos)); - if (body->ReadAt(pos - HeaderSize, piece) != piece.size()) - return static_cast(pos - off); - if (ciphers[i]) { - Key128 iv{}; - SetIv(iv, s.counter, pos); - ciphers[i]->SetIV(iv); - ciphers[i]->Transcode(piece.data(), piece.size(), piece.data(), Op::Encrypt); - } - pos = pe; - } - return len; - } - - std::size_t Write(const u8*, std::size_t, std::size_t) override { return 0; } - bool Rename(std::string_view) override { return false; } - -private: - const std::string name; - const std::vector hdr; - const std::vector
sections; - const std::unique_ptr body; - std::vector>> ciphers; - mutable std::mutex mutex; - u64 nca_size{}; -}; - -// Solid NCZ: one zstd stream over the whole body. Decoded incrementally into memory, up to the -// requested offset, so sequential install reads are O(n) instead of O(n^2). -class SolidNczFile final : public FileSys::VfsFile { -public: - SolidNczFile(std::string name_, FileSys::VirtualFile source_, - std::vector
sections_, u64 payload_start_) - : name{std::move(name_)}, source{std::move(source_)}, sections{std::move(sections_)}, - payload_start{payload_start_} { - const auto raw_header = source->ReadBytes(HeaderSize, 0); - data.assign(raw_header.begin(), raw_header.end()); - frontier = HeaderSize; - } - - ~SolidNczFile() override { - if (stream != nullptr) ZSTD_freeDStream(stream); - } - - std::string GetName() const override { return name; } - std::size_t GetSize() const override { - u64 size = HeaderSize; - for (const auto& s : sections) - size = std::max(size, static_cast(s.offset + s.size)); - return static_cast(size); - } - bool Resize(std::size_t) override { return false; } - FileSys::VirtualDir GetContainingDirectory() const override { return nullptr; } - bool IsWritable() const override { return false; } - bool IsReadable() const override { return true; } - - std::size_t Read(u8* out, std::size_t len, std::size_t off) const override { - std::scoped_lock lock{mutex}; - const u64 nca_size = GetSize(); - if (off >= nca_size) return 0; - len = static_cast(std::min(len, nca_size - off)); - const u64 needed = off + len; - if (needed > frontier && !DecodeTo(needed)) return 0; - std::memcpy(out, data.data() + off, len); - return len; - } - - std::size_t Write(const u8*, std::size_t, std::size_t) override { return 0; } - bool Rename(std::string_view) override { return false; } - -private: - bool DecodeTo(u64 needed) const { - if (stream == nullptr) { - stream = ZSTD_createDStream(); - if (stream == nullptr) return false; - ZSTD_DCtx_setParameter(stream, ZSTD_d_windowLogMax, 31); - read_pos = payload_start; - } - - const u64 file_size = source->GetSize(); - std::vector out_buf(Chunk); - - std::size_t index = 0; - for (; index < sections.size(); ++index) { - const auto& s = sections[index]; - const u64 begin = std::max(static_cast(s.offset), HeaderSize); - const u64 end = std::max(static_cast(s.offset) + static_cast(s.size), - begin); - if (end > frontier) break; - } - - for (; index < sections.size() && frontier < needed; ++index) { - const auto& s = sections[index]; - const u64 begin = std::max(static_cast(s.offset), HeaderSize); - const u64 end = std::max(static_cast(s.offset) + static_cast(s.size), - begin); - if (end <= frontier) continue; - u64 pos = std::max(begin, frontier); - - std::optional> cipher; - if (s.Ctr()) cipher.emplace(s.key, Mode::CTR); - - while (pos < end && frontier < needed) { - const u64 want = std::min(end - pos, out_buf.size()); - std::size_t produced = 0; - while (produced < want) { - if (in.pos >= in.size) { - const u64 remaining = file_size - read_pos; - const std::size_t chunk = static_cast( - std::min(Chunk, remaining)); - if (chunk == 0) { LOG_ERROR(Crypto, "Solid NCZ: truncated"); return false; } - const auto bytes = source->ReadBytes(chunk, read_pos); - if (bytes.empty()) { LOG_ERROR(Crypto, "Solid NCZ: truncated"); return false; } - read_pos += bytes.size(); - in_buf.assign(bytes.begin(), bytes.end()); - in.src = in_buf.data(); - in.size = in_buf.size(); - in.pos = 0; - } - ZSTD_outBuffer outb{out_buf.data() + produced, want - produced, 0}; - const std::size_t res = ZSTD_decompressStream(stream, &outb, &in); - if (ZSTD_isError(res)) { - LOG_ERROR(Crypto, "Solid NCZ: zstd error"); - return false; - } - produced += outb.pos; - } - if (cipher) { - Key128 iv{}; - SetIv(iv, s.counter, pos); - cipher->SetIV(iv); - cipher->Transcode(out_buf.data(), produced, out_buf.data(), Op::Encrypt); - } - data.insert(data.end(), out_buf.begin(), out_buf.begin() + produced); - pos += produced; - frontier = pos; - } - } - return frontier >= needed; - } - - const std::string name; - const FileSys::VirtualFile source; - const std::vector
sections; - const u64 payload_start; - mutable std::mutex mutex; - mutable std::vector data; - mutable ZSTD_DStream* stream = nullptr; - mutable u64 read_pos = 0; - mutable u64 frontier = 0; - mutable std::vector in_buf; - mutable ZSTD_inBuffer in{nullptr, 0, 0}; -}; - -// Shared opener: block path always; solid only when allow_solid is true. -FileSys::VirtualFile OpenNcz(const FileSys::VirtualFile& f, std::string_view name, - bool allow_solid) { - if (!f) return nullptr; - u64 ps = 0; - auto parsed = ParseHeader(f, ps); - if (!parsed) return nullptr; - auto& [sections, block] = *parsed; - - if (block) { - auto hdr = f->ReadBytes(HeaderSize, 0); - if (hdr.size() != HeaderSize) return nullptr; - std::unique_ptr body; - try { body = std::make_unique(f, *block, ps); } - catch (const std::exception& e) { - LOG_ERROR(Crypto, "Failed to open NCZBLOCK: {}", e.what()); - return nullptr; - } - return std::make_shared(std::string{name}, std::move(hdr), - std::move(sections), std::move(body)); - } - - if (allow_solid) { - return std::make_shared(std::string{name}, f, std::move(sections), ps); - } - - LOG_DEBUG(Crypto, "Solid NCZ {} skipped (only NCZBLOCK is supported for play)", name); - return nullptr; -} - -} // Anonymous namespace - -bool IsBlockCompressedNCZ(const FileSys::VirtualFile& f) { - if (!f) return false; - u64 ps = 0; - const auto p = ParseHeader(f, ps); - return p && p->second.has_value(); -} - -FileSys::VirtualFile DecompressNCZ(const FileSys::VirtualFile& f, std::string_view name) { - return OpenNcz(f, name, /*allow_solid=*/false); -} - -FileSys::VirtualFile DecompressNCZForInstall(const FileSys::VirtualFile& f, - std::string_view name) { - return OpenNcz(f, name, /*allow_solid=*/true); -} - -} // namespace Core::Crypto \ No newline at end of file diff --git a/src/core/crypto/ncz_decompressor.h b/src/core/crypto/ncz_decompressor.h deleted file mode 100644 index 9557f8c517..0000000000 --- a/src/core/crypto/ncz_decompressor.h +++ /dev/null @@ -1,35 +0,0 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - -#pragma once - -#include - -#include "core/file_sys/vfs/vfs_types.h" - -namespace Core::Crypto { - -/** - * Opens an NCZBLOCK-compressed NCA (nsz -B / .xcz block format) as a VirtualFile backed by - * on-demand block decoding. Nothing is written to disk; each read decodes only the blocks it - * covers and re-encrypts CTR sections. Solid NCZ is not supported. - * - * @param ncz_file The raw NCZ payload (e.g. ".ncz" entry from an NSZ/XCZ PFS0). - * @param output_name Name to give the returned VirtualFile (e.g. ".nca"). - * - * @return a VirtualFile for the NCA, or nullptr if the NCZ is malformed or not NCZBLOCK. - */ -[[nodiscard]] FileSys::VirtualFile DecompressNCZ(const FileSys::VirtualFile& ncz_file, - std::string_view output_name); - -/** - * Returns true if the given file is an NCZ payload in block-compressed (NCZBLOCK) form, - * i.e. one that DecompressNCZ() can open. Solid NCZ returns false. - */ -[[nodiscard]] bool IsBlockCompressedNCZ(const FileSys::VirtualFile& ncz_file); - -// Install to NAND: same as DecompressNCZ, but solid NCZ is decoded on demand too. -[[nodiscard]] FileSys::VirtualFile DecompressNCZForInstall( - const FileSys::VirtualFile& ncz_file, std::string_view output_name); - -} // namespace Core::Crypto \ No newline at end of file diff --git a/src/core/file_sys/content_archive.cpp b/src/core/file_sys/content_archive.cpp index 1ba7bd3de3..b47b9437d0 100644 --- a/src/core/file_sys/content_archive.cpp +++ b/src/core/file_sys/content_archive.cpp @@ -45,7 +45,6 @@ NCA::NCA(VirtualFile file_, const NCA* base_nca, bool allow_missing_base) // Ensure we have the proper key area keys to continue. const u8 master_key_id = MasterKeyIdForKeyGeneration(reader->GetKeyGeneration()); if (!keys.HasKey(Core::Crypto::S128KeyType::KeyArea, master_key_id, reader->GetKeyIndex())) { - LOG_ERROR(Loader, "Cannot decrypt {}: keys for gen 0x{:02X}+ required.", file->GetName(), reader->GetKeyGeneration()); status = Loader::ResultStatus::ErrorMissingKeyAreaKey; return; } diff --git a/src/core/file_sys/ips_layer.cpp b/src/core/file_sys/ips_layer.cpp index 32e9041017..9d46549bf0 100644 --- a/src/core/file_sys/ips_layer.cpp +++ b/src/core/file_sys/ips_layer.cpp @@ -35,20 +35,17 @@ static IPSFileType IdentifyMagic(std::span magic) { } static bool IsEOF(IPSFileType type, std::span magic) { - return (type == IPSFileType::IPS && magic.size() >= 3 && std::memcmp(magic.data(), "EOF", 3) == 0) - || (type == IPSFileType::IPS32 && magic.size() >= 4 && std::memcmp(magic.data(), "EEOF", 4) == 0); + return (type == IPSFileType::IPS && magic.size() > 3 && std::memcmp(magic.data(), "EOF", 3) == 0) + || (type == IPSFileType::IPS32 && magic.size() > 4 && std::memcmp(magic.data(), "EEOF", 4) == 0); } VirtualFile PatchIPS(const VirtualFile& in, const VirtualFile& ips) { if (in == nullptr || ips == nullptr) return nullptr; - const auto type = IdentifyMagic(ips->ReadBytes(0x5)); - if (type == IPSFileType::Error) - return nullptr; - auto in_data = in->ReadAllBytes(); - if (in_data.size() == 0) + auto const type = IdentifyMagic(in_data); + if (type == IPSFileType::Error) return nullptr; std::vector temp(type == IPSFileType::IPS ? 3 : 4); @@ -103,7 +100,8 @@ VirtualFile PatchIPS(const VirtualFile& in, const VirtualFile& ips) { struct IPSwitchRecord { - std::vector data; + std::array data; + size_t count; }; struct IPSwitchCompiler::IPSwitchPatch { ::Common::unordered_map records; @@ -124,23 +122,22 @@ static IPSwitchRecord EscapeStringSequences(std::string_view sv) { IPSwitchRecord r{}; for (auto it = sv.cbegin(); it < sv.cend(); ) { if (*it == '\\' && it + 1 < sv.cend()) { - r.data.push_back([it]() { - switch (it[1]) { - case 'a': return '\a'; - case 'b': return '\b'; - case 'e': return '\e'; - case 'f': return '\f'; - case 'n': return '\n'; - case 'r': return '\r'; - case 't': return '\t'; - case 'v': return '\v'; - case '?': return '\?'; - default: return it[1]; - } - }()); + switch (it[1]) { + case 'a': r.data[r.count] = '\a'; break; + case 'b': r.data[r.count] = '\b'; break; + case 'e': r.data[r.count] = '\e'; break; + case 'f': r.data[r.count] = '\f'; break; + case 'n': r.data[r.count] = '\n'; break; + case 'r': r.data[r.count] = '\r'; break; + case 't': r.data[r.count] = '\t'; break; + case 'v': r.data[r.count] = '\v'; break; + case '?': r.data[r.count] = '\?'; break; + default: r.data[r.count] = it[1]; break; + } + ++r.count; it += 2; } else { - r.data.push_back(*it); + ++r.count; ++it; } } @@ -226,8 +223,8 @@ void IPSwitchCompiler::Parse(std::span bytes) { if (start <= line.cend() && end <= line.cend()) { // Actually IPS wants ordering from {lsb, ..., msb} -- so LE and BE are inverted, fun! auto const hs = Common::HexStringToVector({start, end}, is_little_endian); - r.data.resize(hs.size()); std::memcpy(r.data.data(), hs.data(), hs.size()); + r.count = hs.size(); LOG_INFO(Loader, "[H] value @ {:#08X}", offset); patches.back().records.insert_or_assign(u32(offset), std::move(r)); } else { @@ -296,7 +293,7 @@ VirtualFile IPSwitchCompiler::Apply(const VirtualFile& in) const { if (patch.enabled) { for (const auto& record : patch.records) { if (record.first < in_data.size()) { - auto replace_size = record.second.data.size(); + auto replace_size = record.second.count; if (record.first + replace_size > in_data.size()) replace_size = in_data.size() - record.first; std::memcpy(in_data.data() + record.first, record.second.data.data(), replace_size); diff --git a/src/core/file_sys/patch_manager.cpp b/src/core/file_sys/patch_manager.cpp index 4fd7dc6c71..ada8c44e78 100644 --- a/src/core/file_sys/patch_manager.cpp +++ b/src/core/file_sys/patch_manager.cpp @@ -9,7 +9,6 @@ #include #include -#include "common/assert.h" #include "common/hex_util.h" #include "common/logging.h" #include "common/settings.h" @@ -157,15 +156,12 @@ std::string GetUpdateVersionStringFromSlot(const ContentProvider* provider, u64 NACP nacp{nacp_file}; return nacp.GetVersionString(); } -YUZU_NO_INLINE std::optional GetParentApplicationId(const ContentProvider* provider, u64 title_id) { - return provider == nullptr ? std::nullopt : provider->GetParentApplicationId(title_id); -} } // Anonymous namespace PatchManager::PatchManager(u64 title_id_, const Service::FileSystem::FileSystemController& fs_controller_, const ContentProvider& content_provider_) - : title_id{title_id_}, parent_title_id{GetParentApplicationId(std::addressof(content_provider_), title_id_)}, fs_controller{fs_controller_}, content_provider{content_provider_} {} + : title_id{title_id_}, fs_controller{fs_controller_}, content_provider{content_provider_} {} PatchManager::~PatchManager() = default; @@ -173,35 +169,13 @@ u64 PatchManager::GetTitleID() const { return title_id; } -VirtualDir PatchManager::GetModificationLoadRoot(bool sdmc) const { - const auto get_root = [&](u64 id) { - return sdmc ? fs_controller.GetSDMCModificationLoadRoot(id) : fs_controller.GetModificationLoadRoot(id); - }; - auto root = get_root(title_id); - if (!parent_title_id) { - return root; - } - std::vector roots{std::move(root), get_root(*parent_title_id)}; - std::erase(roots, nullptr); - return LayeredVfsDirectory::MakeLayeredDirectory(std::move(roots)); -} - -std::vector PatchManager::GetDisabledAddons() const { - auto disabled = Settings::values.disabled_addons[title_id]; - if (parent_title_id) { - const auto& shared = Settings::values.disabled_addons[*parent_title_id]; - disabled.insert(disabled.end(), shared.begin(), shared.end()); - } - return disabled; -} - VirtualDir PatchManager::PatchExeFS(VirtualDir exefs) const { LOG_INFO(Loader, "Patching ExeFS for title_id={:016X}", title_id); if (exefs == nullptr) return exefs; - const auto disabled = GetDisabledAddons(); + const auto& disabled = Settings::values.disabled_addons[title_id]; bool update_disabled = true; std::optional enabled_version; @@ -329,8 +303,8 @@ VirtualDir PatchManager::PatchExeFS(VirtualDir exefs) const { } // LayeredExeFS - const auto load_dir = GetModificationLoadRoot(); - const auto sdmc_load_dir = GetModificationLoadRoot(true); + const auto load_dir = fs_controller.GetModificationLoadRoot(title_id); + const auto sdmc_load_dir = fs_controller.GetSDMCModificationLoadRoot(title_id); std::vector patch_dirs = {sdmc_load_dir}; if (load_dir != nullptr) { @@ -372,7 +346,7 @@ VirtualDir PatchManager::PatchExeFS(VirtualDir exefs) const { } std::vector PatchManager::CollectPatches(const std::vector& patch_dirs, const std::string& build_id) const { - const auto disabled = GetDisabledAddons(); + const auto& disabled = Settings::values.disabled_addons[title_id]; const auto nso_build_id = fmt::format("{:0<64}", build_id); std::vector out; @@ -431,7 +405,7 @@ std::vector PatchManager::PatchNSO(const std::vector& nso, const std::st LOG_INFO(Loader, "Patching NSO for name={}, build_id={}", name, build_id); - const auto load_dir = GetModificationLoadRoot(); + const auto load_dir = fs_controller.GetModificationLoadRoot(title_id); if (load_dir == nullptr) { LOG_ERROR(Loader, "Cannot load mods for invalid title_id={:016X}", title_id); return nso; @@ -474,7 +448,7 @@ bool PatchManager::HasNSOPatch(const BuildID& build_id_, std::string_view name) LOG_INFO(Loader, "Querying NSO patch existence for build_id={}, name={}", build_id, name); - const auto load_dir = GetModificationLoadRoot(); + const auto load_dir = fs_controller.GetModificationLoadRoot(title_id); if (load_dir == nullptr) { LOG_ERROR(Loader, "Cannot load mods for invalid title_id={:016X}", title_id); return false; @@ -488,13 +462,13 @@ bool PatchManager::HasNSOPatch(const BuildID& build_id_, std::string_view name) } std::vector PatchManager::CreateCheatList(const BuildID& build_id_) const { - const auto load_dir = GetModificationLoadRoot(); + const auto load_dir = fs_controller.GetModificationLoadRoot(title_id); if (load_dir == nullptr) { LOG_ERROR(Loader, "Cannot load mods for invalid title_id={:016X}", title_id); return {}; } - const auto disabled = GetDisabledAddons(); + const auto& disabled = Settings::values.disabled_addons[title_id]; auto patch_dirs = load_dir->GetSubdirectories(); std::sort(patch_dirs.begin(), patch_dirs.end(), [](auto const& l, auto const& r) { return l->GetName() < r->GetName(); }); @@ -528,16 +502,17 @@ std::vector PatchManager::CreateCheatList(const BuildI return out; } -void PatchManager::ApplyLayeredFS(VirtualFile& romfs, ContentRecordType type) const { - const auto load_dir = GetModificationLoadRoot(); - const auto sdmc_load_dir = GetModificationLoadRoot(true); +static void ApplyLayeredFS(VirtualFile& romfs, u64 title_id, ContentRecordType type, + const Service::FileSystem::FileSystemController& fs_controller) { + const auto load_dir = fs_controller.GetModificationLoadRoot(title_id); + const auto sdmc_load_dir = fs_controller.GetSDMCModificationLoadRoot(title_id); if ((type != ContentRecordType::Program && type != ContentRecordType::Data && type != ContentRecordType::HtmlDocument) || (load_dir == nullptr && sdmc_load_dir == nullptr)) { return; } - const auto disabled = GetDisabledAddons(); + const auto& disabled = Settings::values.disabled_addons[title_id]; std::vector patch_dirs = load_dir->GetSubdirectories(); if (std::find(disabled.cbegin(), disabled.cend(), "SDMC") == disabled.cend()) { patch_dirs.push_back(sdmc_load_dir); @@ -616,7 +591,7 @@ VirtualFile PatchManager::PatchRomFS(const NCA* base_nca, VirtualFile base_romfs // Game Updates const auto update_tid = GetUpdateTitleID(title_id); - const auto disabled = GetDisabledAddons(); + const auto& disabled = Settings::values.disabled_addons[title_id]; bool update_disabled = true; std::optional enabled_version; @@ -723,7 +698,7 @@ VirtualFile PatchManager::PatchRomFS(const NCA* base_nca, VirtualFile base_romfs // LayeredFS if (apply_layeredfs) { - ApplyLayeredFS(romfs, type); + ApplyLayeredFS(romfs, title_id, type, fs_controller); } return romfs; @@ -1097,22 +1072,15 @@ std::vector PatchManager::GetPatches(VirtualFile update_raw) const { std::optional PatchManager::GetGameVersion() const { const auto update_tid = GetUpdateTitleID(title_id); if (content_provider.HasEntry(update_tid, ContentRecordType::Program)) { - const auto version = content_provider.GetEntryVersion(update_tid); - return version || !parent_title_id ? version : content_provider.GetEntryVersion(GetUpdateTitleID(*parent_title_id)); + return content_provider.GetEntryVersion(update_tid); } - const auto version = content_provider.GetEntryVersion(title_id); - return version || !parent_title_id ? version : content_provider.GetEntryVersion(*parent_title_id); + return content_provider.GetEntryVersion(title_id); } PatchManager::Metadata PatchManager::GetControlMetadata() const { const auto base_control_nca = content_provider.GetEntry(title_id, ContentRecordType::Control); if (base_control_nca == nullptr) { - if (parent_title_id) { - const auto control_id = content_provider.HasEntry(*parent_title_id, ContentRecordType::Control) ? *parent_title_id : GetUpdateTitleID(*parent_title_id); - const PatchManager parent{control_id, fs_controller, content_provider}; - return parent.GetControlMetadata(); - } return {}; } diff --git a/src/core/file_sys/patch_manager.h b/src/core/file_sys/patch_manager.h index 6819a1a3e7..5d71dbcf20 100644 --- a/src/core/file_sys/patch_manager.h +++ b/src/core/file_sys/patch_manager.h @@ -109,14 +109,10 @@ public: [[nodiscard]] static PatchManager::Metadata GetMetadataFromBaseOrUpdate(Core::System& system, u64 application_id) noexcept; private: - [[nodiscard]] VirtualDir GetModificationLoadRoot(bool sdmc = false) const; - [[nodiscard]] std::vector GetDisabledAddons() const; - void ApplyLayeredFS(VirtualFile& romfs, ContentRecordType type) const; [[nodiscard]] std::vector CollectPatches(const std::vector& patch_dirs, const std::string& build_id) const; u64 title_id; - std::optional parent_title_id; const Service::FileSystem::FileSystemController& fs_controller; const ContentProvider& content_provider; }; diff --git a/src/core/file_sys/registered_cache.cpp b/src/core/file_sys/registered_cache.cpp index 26e73d260a..ce851e4d38 100644 --- a/src/core/file_sys/registered_cache.cpp +++ b/src/core/file_sys/registered_cache.cpp @@ -5,7 +5,6 @@ // SPDX-License-Identifier: GPL-2.0-or-later #include -#include #include #include #include @@ -16,7 +15,6 @@ #include "common/random.h" #include "common/string_util.h" #include "core/crypto/key_manager.h" -#include "core/crypto/ncz_decompressor.h" #include "core/file_sys/card_image.h" #include "core/file_sys/common_funcs.h" #include "core/file_sys/content_archive.h" @@ -159,25 +157,6 @@ static std::shared_ptr OpenContainerAsNsp(const VirtualFile& file, Loader:: return nullptr; } -// Checks that every .ncz entry in the container is NCZBLOCK. Solid NCZ has no random access, -// and the whole point of this build is to reject it at scan time so such files never appear -// in the game list. Containers without any .ncz (plain NSP/XCI) pass through. -static bool ContainerIsFullyBlockCompressed(const std::shared_ptr& nsp) { - if (!nsp) { - return false; - } - for (const auto& entry : nsp->GetFiles()) { - const auto name = entry->GetName(); - if (name.size() < 4 || name.substr(name.size() - 4) != ".ncz") { - continue; - } - if (!Core::Crypto::IsBlockCompressedNCZ(entry)) { - return false; // solid NCZ -> reject the whole container - } - } - return true; // no .ncz at all, or all block-compressed -} - template bool ForEachContainerEntry(const std::shared_ptr& nsp, bool only_content, std::optional base_program_id, Callback&& on_entry) { @@ -369,22 +348,6 @@ std::vector ContentProvider::ListEntries() const { return ListEntriesFilter(std::nullopt, std::nullopt, std::nullopt); } -std::optional ContentProvider::GetParentApplicationId(u64 program_id) const { - const auto application_id = GetBaseTitleID(program_id); - const auto program_index = program_id - application_id; - if (program_index == 0 || program_index > std::numeric_limits::max()) { - return std::nullopt; - } - if (!ListEntriesFilter(TitleType::Application, ContentRecordType::Meta, program_id).empty()) { - return std::nullopt; - } - if ((!ListEntriesFilter(TitleType::Application, ContentRecordType::Meta, application_id).empty() && HasEntry(program_id, ContentRecordType::Program)) - || (!ListEntriesFilter(TitleType::Update, ContentRecordType::Meta, GetUpdateTitleID(application_id)).empty() && HasEntry(GetUpdateTitleID(program_id), ContentRecordType::Program))) { - return application_id; - } - return std::nullopt; -} - PlaceholderCache::PlaceholderCache(VirtualDir dir_) : dir(std::move(dir_)) {} bool PlaceholderCache::Create(const NcaID& id, u64 size) const { @@ -831,14 +794,7 @@ std::vector RegisteredCache::ListEntriesFilter( } static std::shared_ptr GetNCAFromNSPForID(const NSP& nsp, const NcaID& id) { - const auto id_string = Common::HexToString(id, false); - auto file = nsp.GetFile(fmt::format("{}.nca", id_string)); - if (file == nullptr) { - if (auto ncz_file = nsp.GetFile(fmt::format("{}.ncz", id_string))) { - file = Core::Crypto::DecompressNCZForInstall( - ncz_file, fmt::format("{}.nca", id_string)); - } - } + auto file = nsp.GetFile(fmt::format("{}.nca", Common::HexToString(id, false))); if (file == nullptr) { return nullptr; } @@ -1300,12 +1256,6 @@ bool ManualContentProvider::AddEntriesFromContainer(VirtualFile file, bool only_ return false; } - // Reject solid NCZ (.nsz without -B): only block-compressed NCZ is supported. - if (!ContainerIsFullyBlockCompressed(nsp)) { - LOG_DEBUG(Service_FS, "Skipping solid-compressed container: {}", file->GetName()); - return false; - } - return ForEachContainerEntry( nsp, only_content, base_program_id, [this](TitleType title_type, ContentRecordType content_type, u64 title_id, @@ -1448,9 +1398,8 @@ void ExternalContentProvider::ScanDirectory(const VirtualDir& dir) { } const auto extension = Common::ToLower(filename.substr(dot_pos + 1)); - // .xcz is an XCI container, but its updates only work through the NSP/PFS0 path - // (DecompressNCZ), not ProcessXCI. So route .xcz here on purpose. - if (extension == "nsp" || extension == "nsz" || extension == "xcz") { + + if (extension == "nsp") { ProcessNSP(file); } else if (extension == "xci") { ProcessXCI(file); @@ -1468,12 +1417,6 @@ void ExternalContentProvider::ProcessNSP(const VirtualFile& file) { return; } - // Reject solid NCZ (.nsz without -B): Eden only supports block-compressed NCZ. - if (!ContainerIsFullyBlockCompressed(nsp)) { - LOG_DEBUG(Service_FS, "Skipping solid-compressed container: {}", file->GetName()); - return; - } - LOG_DEBUG(Service_FS, "Processing NSP file: {}", file->GetName()); AddExternalEntriesFromContainer(nsp, entries, versions, multi_version_entries); } diff --git a/src/core/file_sys/registered_cache.h b/src/core/file_sys/registered_cache.h index 89140a2e95..a8e60ad470 100644 --- a/src/core/file_sys/registered_cache.h +++ b/src/core/file_sys/registered_cache.h @@ -100,8 +100,6 @@ public: std::optional title_type = {}, std::optional record_type = {}, std::optional title_id = {}) const = 0; - [[nodiscard]] std::optional GetParentApplicationId(u64 program_id) const; - protected: // A single instance of KeyManager to be used by GetEntry() Core::Crypto::KeyManager& keys = Core::Crypto::KeyManager::Instance(); diff --git a/src/core/file_sys/savedata_factory.cpp b/src/core/file_sys/savedata_factory.cpp index c756734a43..0ba839ec14 100644 --- a/src/core/file_sys/savedata_factory.cpp +++ b/src/core/file_sys/savedata_factory.cpp @@ -57,7 +57,11 @@ std::string GetFutureSaveDataPath(SaveDataSpaceId space_id, SaveDataType type, u SaveDataFactory::SaveDataFactory(Core::System& system_, ProgramId program_id_, VirtualDir save_directory_) - : system{system_}, program_id{program_id_}, dir{std::move(save_directory_)} {} + : system{system_}, program_id{program_id_}, dir{std::move(save_directory_)} { + // Delete all temporary storages + // On hardware, it is expected that temporary storage be empty at first use. + dir->DeleteSubdirectoryRecursive("temp"); +} SaveDataFactory::~SaveDataFactory() = default; diff --git a/src/core/file_sys/savedata_factory.h b/src/core/file_sys/savedata_factory.h index c7899f023d..15dd4ec7de 100644 --- a/src/core/file_sys/savedata_factory.h +++ b/src/core/file_sys/savedata_factory.h @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/file_sys/submission_package.cpp b/src/core/file_sys/submission_package.cpp index 1a39d819f6..0ea323492b 100644 --- a/src/core/file_sys/submission_package.cpp +++ b/src/core/file_sys/submission_package.cpp @@ -12,7 +12,6 @@ #include "common/hex_util.h" #include "common/logging.h" #include "core/crypto/key_manager.h" -#include "core/crypto/ncz_decompressor.h" #include "core/file_sys/common_funcs.h" #include "core/file_sys/content_archive.h" #include "core/file_sys/nca_metadata.h" @@ -247,17 +246,6 @@ void NSP::ReadNCAs(const std::vector& files) { const auto id_string = Common::HexToString(rec.nca_id, false); auto next_file = pfs->GetFile(fmt::format("{}.nca", id_string)); - if (next_file == nullptr) { - auto ncz_file = pfs->GetFile(fmt::format("{}.ncz", id_string)); - if (ncz_file != nullptr) { - next_file = Core::Crypto::DecompressNCZ(ncz_file, fmt::format("{}.nca", id_string)); - if (next_file == nullptr) { - LOG_DEBUG(Service_FS, "Skipping solid or unsupported NCZ content {}.ncz", id_string); - continue; - } - } - } - if (next_file == nullptr) { if (rec.type != ContentRecordType::DeltaFragment) { LOG_WARNING(Service_FS, diff --git a/src/core/file_sys/system_archive/system_version.cpp b/src/core/file_sys/system_archive/system_version.cpp index be6cde7275..2dbe4a8a01 100644 --- a/src/core/file_sys/system_archive/system_version.cpp +++ b/src/core/file_sys/system_archive/system_version.cpp @@ -40,14 +40,10 @@ VirtualDir SystemVersion() { VirtualFile file = std::make_shared(file_data, "file"); // the "/digest" - if (HLE::ApiVersion::VERSION_DIGEST[0] == '\0') { - return std::make_shared(std::vector{file}, std::vector{}, "data"); - } else { - std::vector digest_data(sizeof(HLE::ApiVersion::VERSION_DIGEST)); - std::memcpy(digest_data.data(), HLE::ApiVersion::VERSION_DIGEST, sizeof(HLE::ApiVersion::VERSION_DIGEST)); - VirtualFile digest_file = std::make_shared(digest_data, "digest"); - return std::make_shared(std::vector{file, digest_file}, std::vector{}, "data"); - } + std::vector digest_data(sizeof(HLE::ApiVersion::VERSION_DIGEST)); + std::memcpy(digest_data.data(), HLE::ApiVersion::VERSION_DIGEST, sizeof(HLE::ApiVersion::VERSION_DIGEST)); + VirtualFile digest_file = std::make_shared(digest_data, "digest"); + return std::make_shared(std::vector{file, digest_file}, std::vector{}, "data"); } } // namespace FileSys::SystemArchive diff --git a/src/core/file_sys/vfs/vfs_real.cpp b/src/core/file_sys/vfs/vfs_real.cpp index 14e0caad3c..b04f832cd3 100644 --- a/src/core/file_sys/vfs/vfs_real.cpp +++ b/src/core/file_sys/vfs/vfs_real.cpp @@ -109,7 +109,8 @@ VirtualFile RealVfsFilesystem::OpenFileFromEntry(std::string_view path_, std::op auto reference = std::make_unique(); this->InsertReferenceIntoListLocked(*reference); - auto file = std::make_shared(*this, std::move(reference), path, perms, size, std::move(parent_path)); + auto file = std::shared_ptr( + new RealVfsFile(*this, std::move(reference), path, perms, size, std::move(parent_path))); cache[path] = file; return file; @@ -176,7 +177,7 @@ bool RealVfsFilesystem::DeleteFile(std::string_view path_) { VirtualDir RealVfsFilesystem::OpenDirectory(std::string_view path_, OpenMode perms) { const auto path = FS::SanitizePath(path_, FS::DirectorySeparator::PlatformDefault); - return std::make_shared(*this, path, perms); + return std::shared_ptr(new RealVfsDirectory(*this, path, perms)); } VirtualDir RealVfsFilesystem::CreateDirectory(std::string_view path_, OpenMode perms) { @@ -184,7 +185,7 @@ VirtualDir RealVfsFilesystem::CreateDirectory(std::string_view path_, OpenMode p if (!FS::CreateDirs(path)) { return nullptr; } - return std::make_shared(*this, path, perms); + return std::shared_ptr(new RealVfsDirectory(*this, path, perms)); } VirtualDir RealVfsFilesystem::CopyDirectory(std::string_view old_path_, diff --git a/src/core/file_sys/vfs/vfs_real.h b/src/core/file_sys/vfs/vfs_real.h index a97f7d32ea..672126d7ba 100644 --- a/src/core/file_sys/vfs/vfs_real.h +++ b/src/core/file_sys/vfs/vfs_real.h @@ -82,9 +82,6 @@ class RealVfsFile : public VfsFile { friend class RealVfsFilesystem; public: - RealVfsFile(RealVfsFilesystem& base, std::unique_ptr reference, - const std::string& path, OpenMode perms = OpenMode::Read, - std::optional size = {}, std::optional parent_path = {}); ~RealVfsFile() override; std::string GetName() const override; @@ -98,6 +95,9 @@ public: bool Rename(std::string_view name) override; private: + RealVfsFile(RealVfsFilesystem& base, std::unique_ptr reference, + const std::string& path, OpenMode perms = OpenMode::Read, + std::optional size = {}, std::optional parent_path = {}); RealVfsFilesystem& base; std::unique_ptr reference; @@ -113,8 +113,6 @@ class RealVfsDirectory : public VfsDirectory { friend class RealVfsFilesystem; public: - RealVfsDirectory(RealVfsFilesystem& base, const std::string& path, - OpenMode perms = OpenMode::Read); ~RealVfsDirectory() override; VirtualFile GetFileRelative(std::string_view relative_path) const override; @@ -140,6 +138,9 @@ public: std::map> GetEntries() const override; private: + RealVfsDirectory(RealVfsFilesystem& base, const std::string& path, + OpenMode perms = OpenMode::Read); + template std::vector> IterateEntries() const; diff --git a/src/core/frontend/applets/controller.cpp b/src/core/frontend/applets/controller.cpp index e535866855..c4292c5a12 100644 --- a/src/core/frontend/applets/controller.cpp +++ b/src/core/frontend/applets/controller.cpp @@ -12,7 +12,6 @@ #include "hid_core/frontend/emulated_controller.h" #include "hid_core/hid_core.h" #include "hid_core/hid_types.h" -#include namespace Core::Frontend { @@ -30,39 +29,23 @@ void DefaultControllerApplet::ReconfigureControllers(ReconfigureCallback callbac const std::size_t min_supported_players = parameters.enable_single_mode ? 1 : parameters.min_players; - using Core::HID::NpadStyleIndex; - const std::size_t max_supported_players = parameters.enable_single_mode ? 1 : parameters.max_players; - std::size_t num_selected_players = 0; - std::array keep_connected{}; - // reserve existing AND valid players before filling slots. include Handheld, but not other - for (std::size_t index = 0; index < hid_core.available_controllers - 1; ++index) { - const auto* controller = hid_core.GetEmulatedControllerByIndex(index); - if (!parameters.keep_controllers_connected || !controller->IsConnected() || num_selected_players >= max_supported_players) continue; - - const auto style = controller->GetNpadStyleIndex(); - keep_connected[index] = - (style == NpadStyleIndex::Fullkey && parameters.allow_pro_controller) || - (style == NpadStyleIndex::JoyconDual && parameters.allow_dual_joycons) || - (style == NpadStyleIndex::JoyconLeft && parameters.allow_left_joycon) || - (style == NpadStyleIndex::JoyconRight && parameters.allow_right_joycon) || - (style == NpadStyleIndex::Handheld && parameters.enable_single_mode && parameters.allow_handheld && !Settings::IsDockedMode()) || - (style == NpadStyleIndex::GameCube && parameters.allow_gamecube_controller); - num_selected_players += keep_connected[index]; - } + // Disconnect Handheld first. auto* handheld = hid_core.GetEmulatedController(Core::HID::NpadIdType::Handheld); - if (!keep_connected[hid_core.available_controllers - 2]) handheld->Disconnect(); + handheld->Disconnect(); // Deduce the best configuration based on the input parameters. for (std::size_t index = 0; index < hid_core.available_controllers - 2; ++index) { auto* controller = hid_core.GetEmulatedControllerByIndex(index); - if (keep_connected[index]) continue; + // First, disconnect all controllers regardless of the value of keep_controllers_connected. + // This makes it easy to connect the desired controllers. controller->Disconnect(); - // only add players still needed to reach the minimum - if (num_selected_players >= min_supported_players) continue; - ++num_selected_players; + // Only connect the minimum number of required players. + if (index >= min_supported_players) { + continue; + } // Connect controllers based on the following priority list from highest to lowest priority: // Pro Controller -> Dual Joycons -> Left Joycon/Right Joycon -> Handheld diff --git a/src/core/hle/api_version.h b/src/core/hle/api_version.h index 0aff969296..29b4f4008c 100644 --- a/src/core/hle/api_version.h +++ b/src/core/hle/api_version.h @@ -16,8 +16,8 @@ namespace HLE::ApiVersion { // Horizon OS version constants. -constexpr u8 HOS_VERSION_MAJOR = 23; -constexpr u8 HOS_VERSION_MINOR = 0; +constexpr u8 HOS_VERSION_MAJOR = 22; +constexpr u8 HOS_VERSION_MINOR = 5; constexpr u8 HOS_VERSION_MICRO = 0; // NintendoSDK version constants. @@ -25,16 +25,15 @@ constexpr u8 SDK_REVISION_MAJOR = 1; constexpr u8 SDK_REVISION_MINOR = 0; constexpr char PLATFORM_STRING[0x20] = "NX"; -constexpr char VERSION_HASH[0x40] = "c2663accb7490a6ccfe9bc4dfd120ca215490525"; -constexpr char DISPLAY_VERSION[0x18] = "23.0.0"; -constexpr char DISPLAY_TITLE[0x80] = "NintendoSDK Firmware for NX 23.0.0-4.0"; -// Leave empty when there's no digest (N/A) -constexpr char VERSION_DIGEST[0x40] = ""; +constexpr char VERSION_HASH[0x40] = "ae93061abbc7791fcf8d2f7e7b7b2d62163af697"; +constexpr char DISPLAY_VERSION[0x18] = "22.5.0"; +constexpr char DISPLAY_TITLE[0x80] = "NintendoSDK Firmware for NX 22.5.0-1.0 "; +constexpr char VERSION_DIGEST[0x40] = "CusHY#00160500#WxlZDREksAFSi6bQJEV6nm6-cHLg2jikdYRVN3bwqyE="; // Atmosphere version constants. constexpr u8 ATMOSPHERE_RELEASE_VERSION_MAJOR = 1; -constexpr u8 ATMOSPHERE_RELEASE_VERSION_MINOR = 12; -constexpr u8 ATMOSPHERE_RELEASE_VERSION_MICRO = 0; +constexpr u8 ATMOSPHERE_RELEASE_VERSION_MINOR = 11; +constexpr u8 ATMOSPHERE_RELEASE_VERSION_MICRO = 2; constexpr u32 AtmosphereTargetFirmwareWithRevision(u8 major, u8 minor, u8 micro, u8 rev) { return u32{major} << 24 | u32{minor} << 16 | u32{micro} << 8 | u32{rev}; diff --git a/src/core/hle/kernel/k_scheduler.cpp b/src/core/hle/kernel/k_scheduler.cpp index 3156a17064..8e629f6456 100644 --- a/src/core/hle/kernel/k_scheduler.cpp +++ b/src/core/hle/kernel/k_scheduler.cpp @@ -465,10 +465,6 @@ void KScheduler::ScheduleImplFiber(KernelCore& kernel) { // Check if we need scheduling. If we do, then we can't complete the switch and should // retry. if (m_state.needs_scheduling.load(std::memory_order_seq_cst)) { - // Some libc++ lazily init mutex - [[maybe_unused]] auto const can_lock = highest_priority_thread->m_context_guard.try_lock(); - DEBUG_ASSERT(!can_lock); - // Our switch failed. // We should unlock the thread context, and then retry. highest_priority_thread->m_context_guard.unlock(); @@ -500,10 +496,6 @@ void KScheduler::Unload(KernelCore& kernel, KThread* thread) { // Check if the thread is terminated by checking the DPC flags. if ((thread->GetStackParameters().dpc_flags & static_cast(DpcFlag::Terminated)) == 0) { - // Some libc++ lazily init mutex - [[maybe_unused]] auto const can_lock = thread->m_context_guard.try_lock(); - DEBUG_ASSERT(!can_lock); - // The thread isn't terminated, so we want to unlock it. thread->m_context_guard.unlock(); } diff --git a/src/core/hle/kernel/k_slab_heap.h b/src/core/hle/kernel/k_slab_heap.h index a5dbab9571..c91e7969a2 100644 --- a/src/core/hle/kernel/k_slab_heap.h +++ b/src/core/hle/kernel/k_slab_heap.h @@ -1,4 +1,4 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project +// SPDX-FileCopyrightText: Copyright 2025 Eden Emulator Project // SPDX-License-Identifier: GPL-3.0-or-later // SPDX-FileCopyrightText: Copyright 2020 yuzu Emulator Project @@ -12,6 +12,7 @@ #include "common/atomic_ops.h" #include "common/common_funcs.h" #include "common/common_types.h" +#include "common/spin_lock.h" namespace Kernel { @@ -29,7 +30,7 @@ public: }; public: - KSlabHeapImpl() = default; + constexpr KSlabHeapImpl() = default; void Initialize() { ASSERT(m_head == nullptr); @@ -67,7 +68,7 @@ public: private: std::atomic m_head{}; - std::mutex m_lock; + Common::SpinLock m_lock; }; } // namespace impl diff --git a/src/core/hle/kernel/k_thread.h b/src/core/hle/kernel/k_thread.h index 0ee5f72c8e..95ba1b4d76 100644 --- a/src/core/hle/kernel/k_thread.h +++ b/src/core/hle/kernel/k_thread.h @@ -19,6 +19,7 @@ #include "common/intrusive_red_black_tree.h" #include "common/scratch_buffer.h" +#include "common/spin_lock.h" #include "core/arm/arm_interface.h" #include "core/hle/kernel/k_affinity_mask.h" #include "core/hle/kernel/k_light_lock.h" @@ -919,7 +920,7 @@ private: bool m_resource_limit_release_hint{}; bool m_is_kernel_address_key{}; StackParameters m_stack_parameters{}; - std::mutex m_context_guard{}; + Common::SpinLock m_context_guard{}; // For emulation std::shared_ptr m_host_context{}; diff --git a/src/core/hle/kernel/svc/svc_info.cpp b/src/core/hle/kernel/svc/svc_info.cpp index 863bb58fa8..e6190ac33a 100644 --- a/src/core/hle/kernel/svc/svc_info.cpp +++ b/src/core/hle/kernel/svc/svc_info.cpp @@ -210,13 +210,6 @@ Result GetInfo(Core::System& system, u64* result, InfoType info_id_type, Handle *result = system.Kernel().CurrentScheduler()->GetIdleThread()->GetCpuTime(); R_SUCCEED(); } - case InfoType::Unknown37: - case InfoType::Unknown38: { - LOG_WARNING(Kernel_SVC, "(STUBBED) called, info_id={:#x}, info_sub_id={:#x}, handle={:#08x}", - info_id, info_sub_id, handle); - *result = 0; - R_SUCCEED(); - } case InfoType::MesosphereMeta: { enum MesosphereMetaInfo : u64 { KernelVersion = 0, diff --git a/src/core/hle/kernel/svc_types.h b/src/core/hle/kernel/svc_types.h index b0f4796da4..fce3dea476 100644 --- a/src/core/hle/kernel/svc_types.h +++ b/src/core/hle/kernel/svc_types.h @@ -1,4 +1,4 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project +// SPDX-FileCopyrightText: Copyright 2025 Eden Emulator Project // SPDX-License-Identifier: GPL-3.0-or-later // SPDX-FileCopyrightText: Copyright 2020 yuzu Emulator Project @@ -158,11 +158,6 @@ enum class InfoType : u32 { IoRegionHint = 27, AliasRegionExtraSize = 28, - TransferMemoryHint = 34, - - Unknown37 = 37, - Unknown38 = 38, - MesosphereMeta = 65000, MesosphereCurrentProcess = 65001, }; diff --git a/src/core/hle/service/acc/async_context.h b/src/core/hle/service/acc/async_context.h index c50537d4ae..d7bffc055e 100644 --- a/src/core/hle/service/acc/async_context.h +++ b/src/core/hle/service/acc/async_context.h @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2021 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/acc/errors.h b/src/core/hle/service/acc/errors.h index b7cf8b5f93..433ebfe9d6 100644 --- a/src/core/hle/service/acc/errors.h +++ b/src/core/hle/service/acc/errors.h @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2019 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/acc/profile_manager.h b/src/core/hle/service/acc/profile_manager.h index 81688175c2..1fd0cc700f 100644 --- a/src/core/hle/service/acc/profile_manager.h +++ b/src/core/hle/service/acc/profile_manager.h @@ -23,12 +23,6 @@ constexpr std::size_t profile_username_size{32}; using ProfileUsername = std::array; using UserIDArray = std::array; -// This is nn::account::Uid -struct Uid { - std::array unk0; -}; -static_assert(sizeof(Uid) == 0x10); - /// Contains extra data related to a user. /// TODO: RE this structure struct UserData { diff --git a/src/core/hle/service/am/am.cpp b/src/core/hle/service/am/am.cpp index 86d9d52e34..2ef393439b 100644 --- a/src/core/hle/service/am/am.cpp +++ b/src/core/hle/service/am/am.cpp @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/am/am.h b/src/core/hle/service/am/am.h index 0bf5880f30..1afe253aed 100644 --- a/src/core/hle/service/am/am.h +++ b/src/core/hle/service/am/am.h @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2024 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/am/applet_manager.h b/src/core/hle/service/am/applet_manager.h index cd3035de31..2b0714adf7 100644 --- a/src/core/hle/service/am/applet_manager.h +++ b/src/core/hle/service/am/applet_manager.h @@ -1,4 +1,4 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project +// SPDX-FileCopyrightText: Copyright 2025 Eden Emulator Project // SPDX-License-Identifier: GPL-3.0-or-later // SPDX-FileCopyrightText: Copyright 2024 yuzu Emulator Project diff --git a/src/core/hle/service/am/display_layer_manager.cpp b/src/core/hle/service/am/display_layer_manager.cpp index cd9e26e899..494e8a132b 100644 --- a/src/core/hle/service/am/display_layer_manager.cpp +++ b/src/core/hle/service/am/display_layer_manager.cpp @@ -73,20 +73,16 @@ Result DisplayLayerManager::CreateManagedDisplayLayer(u64* out_layer_id) { R_TRY(m_manager_display_service->CreateManagedLayer( out_layer_id, 0, display_id, Service::AppletResourceUserId{m_process->GetProcessId()})); - m_manager_display_service->SetLayerVisibility(m_visible, *out_layer_id); - (void)m_display_service->GetContainer()->SetLayerStackMask(*out_layer_id, - this->GetLayerStackMask()); - if (m_applet_id != AppletId::Application) { (void)m_manager_display_service->SetLayerBlending(m_blending_enabled, *out_layer_id); if (m_applet_id == AppletId::OverlayDisplay) { - (void)m_manager_display_service->SetLayerZIndex(Overlay, *out_layer_id); + (void)m_manager_display_service->SetLayerZIndex(-1, *out_layer_id); + (void)m_display_service->GetContainer()->SetLayerIsOverlay(*out_layer_id, true); } else { - (void)m_manager_display_service->SetLayerZIndex(Foreground, *out_layer_id); + (void)m_manager_display_service->SetLayerZIndex(1, *out_layer_id); } } - - m_display_service->GetContainer()->SetLayerZIndex(*out_layer_id, true); + (void)m_display_service->GetContainer()->SetLayerZIndex(*out_layer_id, true); m_managed_display_layers.emplace(*out_layer_id); R_SUCCEED(); @@ -126,16 +122,14 @@ Result DisplayLayerManager::IsSystemBufferSharingEnabled() { // Ensure the overlay layer is visible m_manager_display_service->SetLayerVisibility(m_visible, m_system_shared_layer_id); - (void)m_manager_display_service->SetLayerBlending(m_blending_enabled, m_system_shared_layer_id); - s32 initial_z = Foreground; + m_manager_display_service->SetLayerBlending(m_blending_enabled, m_system_shared_layer_id); + s32 initial_z = 1; + (void)m_display_service->GetContainer()->SetLayerZIndex(m_system_shared_layer_id, true); if (m_applet_id == AppletId::OverlayDisplay) { - initial_z = Overlay; - (void)m_manager_display_service->SetLayerZIndex(initial_z, m_system_shared_layer_id); + initial_z = -1; (void)m_display_service->GetContainer()->SetLayerIsOverlay(m_system_shared_layer_id, true); } m_manager_display_service->SetLayerZIndex(initial_z, m_system_shared_layer_id); - m_display_service->GetContainer()->SetLayerZIndex(m_system_shared_layer_id, true); - m_managed_display_layers.emplace(m_system_shared_layer_id); R_SUCCEED(); } diff --git a/src/core/hle/service/am/frontend/applet_cabinet.h b/src/core/hle/service/am/frontend/applet_cabinet.h index a74f233569..3a211ed372 100644 --- a/src/core/hle/service/am/frontend/applet_cabinet.h +++ b/src/core/hle/service/am/frontend/applet_cabinet.h @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2022 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/am/frontend/applet_controller.h b/src/core/hle/service/am/frontend/applet_controller.h index 3877a7b02e..341ebed234 100644 --- a/src/core/hle/service/am/frontend/applet_controller.h +++ b/src/core/hle/service/am/frontend/applet_controller.h @@ -1,4 +1,4 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project +// SPDX-FileCopyrightText: Copyright 2025 Eden Emulator Project // SPDX-License-Identifier: GPL-3.0-or-later // SPDX-FileCopyrightText: Copyright 2020 yuzu Emulator Project diff --git a/src/core/hle/service/am/frontend/applet_error.h b/src/core/hle/service/am/frontend/applet_error.h index af3e2134a5..678bf33fac 100644 --- a/src/core/hle/service/am/frontend/applet_error.h +++ b/src/core/hle/service/am/frontend/applet_error.h @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2019 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/am/frontend/applet_general.h b/src/core/hle/service/am/frontend/applet_general.h index ceb0537119..eaa7ae25fe 100644 --- a/src/core/hle/service/am/frontend/applet_general.h +++ b/src/core/hle/service/am/frontend/applet_general.h @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2019 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/am/frontend/applet_mii_edit.h b/src/core/hle/service/am/frontend/applet_mii_edit.h index 8654426431..5db792f7d2 100644 --- a/src/core/hle/service/am/frontend/applet_mii_edit.h +++ b/src/core/hle/service/am/frontend/applet_mii_edit.h @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2022 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/am/frontend/applet_mii_edit_types.h b/src/core/hle/service/am/frontend/applet_mii_edit_types.h index 9c354bd947..23d9d7a69b 100644 --- a/src/core/hle/service/am/frontend/applet_mii_edit_types.h +++ b/src/core/hle/service/am/frontend/applet_mii_edit_types.h @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2022 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/am/frontend/applet_net_connect.h b/src/core/hle/service/am/frontend/applet_net_connect.h index 0986b63c60..d5d503ed41 100644 --- a/src/core/hle/service/am/frontend/applet_net_connect.h +++ b/src/core/hle/service/am/frontend/applet_net_connect.h @@ -1,4 +1,4 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project +// SPDX-FileCopyrightText: Copyright 2025 Eden Emulator Project // SPDX-License-Identifier: GPL-3.0-or-later #pragma once diff --git a/src/core/hle/service/am/frontend/applet_profile_select.cpp b/src/core/hle/service/am/frontend/applet_profile_select.cpp index 0f46ee6232..89b5a1eabe 100644 --- a/src/core/hle/service/am/frontend/applet_profile_select.cpp +++ b/src/core/hle/service/am/frontend/applet_profile_select.cpp @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/am/frontend/applet_profile_select.h b/src/core/hle/service/am/frontend/applet_profile_select.h index 4feba73a37..674e7afe17 100644 --- a/src/core/hle/service/am/frontend/applet_profile_select.h +++ b/src/core/hle/service/am/frontend/applet_profile_select.h @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/am/frontend/applet_software_keyboard_types.h b/src/core/hle/service/am/frontend/applet_software_keyboard_types.h index 6bb8f437d3..a25ff2a6d2 100644 --- a/src/core/hle/service/am/frontend/applet_software_keyboard_types.h +++ b/src/core/hle/service/am/frontend/applet_software_keyboard_types.h @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2021 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/am/frontend/applet_web_browser.h b/src/core/hle/service/am/frontend/applet_web_browser.h index 41461a93d0..ae62389f13 100644 --- a/src/core/hle/service/am/frontend/applet_web_browser.h +++ b/src/core/hle/service/am/frontend/applet_web_browser.h @@ -1,4 +1,4 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project +// SPDX-FileCopyrightText: Copyright 2025 Eden Emulator Project // SPDX-License-Identifier: GPL-3.0-or-later // SPDX-FileCopyrightText: Copyright 2020 yuzu Emulator Project diff --git a/src/core/hle/service/am/frontend/applets.cpp b/src/core/hle/service/am/frontend/applets.cpp index c59e4b9c6b..407ca10602 100644 --- a/src/core/hle/service/am/frontend/applets.cpp +++ b/src/core/hle/service/am/frontend/applets.cpp @@ -29,7 +29,6 @@ #include "core/hle/service/am/frontend/applet_web_browser.h" #include "core/hle/service/am/frontend/applets.h" #include "core/hle/service/am/service/storage.h" -#include "core/hle/service/am/window_system.h" #include "core/hle/service/sm/sm.h" namespace Service::AM::Frontend { @@ -73,16 +72,10 @@ void FrontendApplet::PushInteractiveOutData(std::shared_ptr storage) { void FrontendApplet::Exit() { auto applet_ = applet.lock(); - { - std::scoped_lock lk{applet_->lock}; - applet_->is_completed = true; - applet_->state_changed_event.Signal(system.Kernel()); - } - if (auto caller_applet = applet_->caller_applet.lock()) { - std::scoped_lock lk{caller_applet->lock}; - std::erase(caller_applet->child_applets, applet_); - } - if (auto* window_system = system.GetAppletManager().GetWindowSystem()) window_system->RequestUpdate(); + + std::scoped_lock lk{applet_->lock}; + applet_->is_completed = true; + applet_->state_changed_event.Signal(system.Kernel()); } FrontendAppletSet::FrontendAppletSet() = default; @@ -250,10 +243,9 @@ std::shared_ptr FrontendAppletHolder::GetApplet(std::shared_ptr< return std::make_shared(system, applet, mode, *frontend.photo_viewer); case AppletId::NetConnect: return std::make_shared(system, applet, mode, *frontend.net_connect); - case AppletId::None: - return nullptr; default: - UNIMPLEMENTED_MSG("No frontend implementation exists for applet_id={:02X} program_id={:016X}! Using stub applet.", static_cast(id), applet->program_id); + LOG_ERROR(Service_AM, "No backend implementation exists for applet_id={:02X} program_id={:016X}" + "Falling back to stub applet", static_cast(id), applet->program_id); return std::make_shared(system, applet, id, mode); } } diff --git a/src/core/hle/service/am/frontend/applets.h b/src/core/hle/service/am/frontend/applets.h index 6259a5668a..8eb08ea77b 100644 --- a/src/core/hle/service/am/frontend/applets.h +++ b/src/core/hle/service/am/frontend/applets.h @@ -1,4 +1,4 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project +// SPDX-FileCopyrightText: Copyright 2025 Eden Emulator Project // SPDX-License-Identifier: GPL-3.0-or-later // SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project diff --git a/src/core/hle/service/am/lifecycle_manager.h b/src/core/hle/service/am/lifecycle_manager.h index 15657a36d8..ae041d3e29 100644 --- a/src/core/hle/service/am/lifecycle_manager.h +++ b/src/core/hle/service/am/lifecycle_manager.h @@ -92,13 +92,6 @@ public: } } - void RequestFocusStateChangedNotification(Kernel::KernelCore& kernel) { - if (m_focus_state_changed_notification_enabled) { - m_has_focus_state_changed = true; - this->SignalSystemEventIfNeeded(kernel); - } - } - void OnOperationAndPerformanceModeChanged(Kernel::KernelCore& kernel); public: diff --git a/src/core/hle/service/am/process_holder.cpp b/src/core/hle/service/am/process_holder.cpp index 8ad6599fd6..21ef5bf838 100644 --- a/src/core/hle/service/am/process_holder.cpp +++ b/src/core/hle/service/am/process_holder.cpp @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2024 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/am/process_holder.h b/src/core/hle/service/am/process_holder.h index dbf04668dc..3a9b81dfb4 100644 --- a/src/core/hle/service/am/process_holder.h +++ b/src/core/hle/service/am/process_holder.h @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2024 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/am/service/application_accessor.h b/src/core/hle/service/am/service/application_accessor.h index 7908099916..b9797bcc0a 100644 --- a/src/core/hle/service/am/service/application_accessor.h +++ b/src/core/hle/service/am/service/application_accessor.h @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2024 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/am/service/application_creator.cpp b/src/core/hle/service/am/service/application_creator.cpp index 4eb2f29e22..e3bb92c3a4 100644 --- a/src/core/hle/service/am/service/application_creator.cpp +++ b/src/core/hle/service/am/service/application_creator.cpp @@ -16,7 +16,6 @@ #include "core/hle/service/cmif_serialization.h" #include "core/loader/loader.h" #include "core/launch_timestamp_cache.h" -#include "core/hle/api_version.h" namespace Service::AM { @@ -88,7 +87,7 @@ Result IApplicationCreator::CreateSystemApplication( std::vector control; std::unique_ptr loader; - auto process = CreateProcess(system, application_id, 1, HLE::ApiVersion::HOS_VERSION_MAJOR); + auto process = CreateProcess(system, application_id, 1, 22); R_UNLESS(process != nullptr, ResultUnknown); const auto applet = std::make_shared(system, std::move(process), true); diff --git a/src/core/hle/service/am/service/application_creator.h b/src/core/hle/service/am/service/application_creator.h index 59ae924131..75975b9596 100644 --- a/src/core/hle/service/am/service/application_creator.h +++ b/src/core/hle/service/am/service/application_creator.h @@ -1,4 +1,4 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project +// SPDX-FileCopyrightText: Copyright 2025 Eden Emulator Project // SPDX-License-Identifier: GPL-3.0-or-later // SPDX-FileCopyrightText: Copyright 2024 yuzu Emulator Project diff --git a/src/core/hle/service/am/service/application_functions.cpp b/src/core/hle/service/am/service/application_functions.cpp index 90d292c4a2..215d204098 100644 --- a/src/core/hle/service/am/service/application_functions.cpp +++ b/src/core/hle/service/am/service/application_functions.cpp @@ -347,22 +347,21 @@ Result IApplicationFunctions::NotifyRunning(Out out_became_running) { Result IApplicationFunctions::GetPseudoDeviceId(Out out_pseudo_device_id) { LOG_WARNING(Service_AM, "(stubbed)"); - R_UNLESS(out_pseudo_device_id != nullptr, ResultUnknown); + R_UNLESS(out_pseudo_device_id, ResultUnknown); // This should be hashed with the device specific hash // for now this will do const auto res = FileSys::PatchManager::GetMetadataFromBaseOrUpdate(system, m_applet->program_id); - R_UNLESS(res.first != nullptr, ResultUnknown); - std::array hash; + u8 hash[EVP_MAX_MD_SIZE]; unsigned int hash_len = 0; auto const seed = res.first->raw.seed_for_pseudo_device_id; EVP_MD_CTX *ctx = EVP_MD_CTX_new(); auto const algorithm = EVP_sha1(); EVP_DigestInit_ex(ctx, algorithm, nullptr); EVP_DigestUpdate(ctx, &seed, sizeof(seed)); - EVP_DigestFinal_ex(ctx, hash.data(), &hash_len); + EVP_DigestFinal_ex(ctx, hash, &hash_len); EVP_MD_CTX_free(ctx); - *out_pseudo_device_id = Common::UUID::MakeRFC4122V5(std::span{hash.begin(), hash.begin() + 16}); + *out_pseudo_device_id = Common::UUID::MakeRFC4122V5(std::span{hash, std::size(hash)}); R_SUCCEED(); } diff --git a/src/core/hle/service/am/service/application_proxy.cpp b/src/core/hle/service/am/service/application_proxy.cpp index df438e1e17..6e1328fee7 100644 --- a/src/core/hle/service/am/service/application_proxy.cpp +++ b/src/core/hle/service/am/service/application_proxy.cpp @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2024 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/am/service/application_proxy.h b/src/core/hle/service/am/service/application_proxy.h index b56f597605..8c62459c45 100644 --- a/src/core/hle/service/am/service/application_proxy.h +++ b/src/core/hle/service/am/service/application_proxy.h @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2024 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/am/service/application_proxy_service.cpp b/src/core/hle/service/am/service/application_proxy_service.cpp index 7727951d8c..b7d7b3c2d9 100644 --- a/src/core/hle/service/am/service/application_proxy_service.cpp +++ b/src/core/hle/service/am/service/application_proxy_service.cpp @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/am/service/application_proxy_service.h b/src/core/hle/service/am/service/application_proxy_service.h index fce860a7c1..e5f4ea345b 100644 --- a/src/core/hle/service/am/service/application_proxy_service.h +++ b/src/core/hle/service/am/service/application_proxy_service.h @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/am/service/audio_controller.cpp b/src/core/hle/service/am/service/audio_controller.cpp index 4e9af756f2..f627b1df0e 100644 --- a/src/core/hle/service/am/service/audio_controller.cpp +++ b/src/core/hle/service/am/service/audio_controller.cpp @@ -1,4 +1,4 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project +// SPDX-FileCopyrightText: Copyright 2025 Eden Emulator Project // SPDX-License-Identifier: GPL-3.0-or-later // SPDX-FileCopyrightText: Copyright 2024 yuzu Emulator Project diff --git a/src/core/hle/service/am/service/audio_controller.h b/src/core/hle/service/am/service/audio_controller.h index a13f3b199b..4b0f3f9aed 100644 --- a/src/core/hle/service/am/service/audio_controller.h +++ b/src/core/hle/service/am/service/audio_controller.h @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2024 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/am/service/cradle_firmware_updater.cpp b/src/core/hle/service/am/service/cradle_firmware_updater.cpp index b9f19e59d2..0a8af0858d 100644 --- a/src/core/hle/service/am/service/cradle_firmware_updater.cpp +++ b/src/core/hle/service/am/service/cradle_firmware_updater.cpp @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2024 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/am/service/cradle_firmware_updater.h b/src/core/hle/service/am/service/cradle_firmware_updater.h index c895a34c22..3e803f0ae9 100644 --- a/src/core/hle/service/am/service/cradle_firmware_updater.h +++ b/src/core/hle/service/am/service/cradle_firmware_updater.h @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2024 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/am/service/debug_functions.cpp b/src/core/hle/service/am/service/debug_functions.cpp index 4128366270..fcac4776db 100644 --- a/src/core/hle/service/am/service/debug_functions.cpp +++ b/src/core/hle/service/am/service/debug_functions.cpp @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2024 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/am/service/debug_functions.h b/src/core/hle/service/am/service/debug_functions.h index 381499e93d..d559687439 100644 --- a/src/core/hle/service/am/service/debug_functions.h +++ b/src/core/hle/service/am/service/debug_functions.h @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2024 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/am/service/display_controller.h b/src/core/hle/service/am/service/display_controller.h index 35e98b9ad3..171feace6e 100644 --- a/src/core/hle/service/am/service/display_controller.h +++ b/src/core/hle/service/am/service/display_controller.h @@ -1,4 +1,4 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project +// SPDX-FileCopyrightText: Copyright 2025 Eden Emulator Project // SPDX-License-Identifier: GPL-3.0-or-later // SPDX-FileCopyrightText: Copyright 2024 yuzu Emulator Project diff --git a/src/core/hle/service/am/service/global_state_controller.cpp b/src/core/hle/service/am/service/global_state_controller.cpp index e7cd60927c..3e3b61b0a0 100644 --- a/src/core/hle/service/am/service/global_state_controller.cpp +++ b/src/core/hle/service/am/service/global_state_controller.cpp @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2024 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/am/service/global_state_controller.h b/src/core/hle/service/am/service/global_state_controller.h index 012692ecd8..83efb57dfc 100644 --- a/src/core/hle/service/am/service/global_state_controller.h +++ b/src/core/hle/service/am/service/global_state_controller.h @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2024 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/am/service/library_applet_accessor.cpp b/src/core/hle/service/am/service/library_applet_accessor.cpp index 849e5794cf..c49b1f3f05 100644 --- a/src/core/hle/service/am/service/library_applet_accessor.cpp +++ b/src/core/hle/service/am/service/library_applet_accessor.cpp @@ -164,15 +164,15 @@ Result ILibraryAppletAccessor::PushInData(SharedPointer storage) { Result ILibraryAppletAccessor::PopOutData(Out> out_storage) { LOG_DEBUG(Service_AM, "called"); - R_TRY(m_broker->GetOutData().Pop(system.Kernel(), out_storage.Get())); if (auto caller_applet = m_applet->caller_applet.lock(); caller_applet) { - std::scoped_lock lk{caller_applet->lock}; - const bool focus_state_changed = caller_applet->lifecycle_manager.UpdateRequestedFocusState(); - const bool is_front_app = m_applet->frontend && caller_applet->lifecycle_manager.IsApplication(); - if (focus_state_changed) caller_applet->lifecycle_manager.SignalSystemEventIfNeeded(system.Kernel()); - else if (is_front_app) caller_applet->lifecycle_manager.RequestFocusStateChangedNotification(system.Kernel()); + caller_applet->lifecycle_manager.GetSystemEvent().Signal(system.Kernel()); + caller_applet->lifecycle_manager.RequestResumeNotification(); + caller_applet->lifecycle_manager.GetSystemEvent().Clear(system.Kernel()); + caller_applet->lifecycle_manager.UpdateRequestedFocusState(); } + R_TRY(m_broker->GetOutData().Pop(system.Kernel(), out_storage.Get())); + if (m_applet->applet_id == AppletId::ProfileSelect && *out_storage) { auto impl = (*out_storage)->GetImpl(); diff --git a/src/core/hle/service/am/service/library_applet_creator.cpp b/src/core/hle/service/am/service/library_applet_creator.cpp index 4ee92908b5..c20a77f8c4 100644 --- a/src/core/hle/service/am/service/library_applet_creator.cpp +++ b/src/core/hle/service/am/service/library_applet_creator.cpp @@ -13,8 +13,6 @@ #include "core/hle/service/am/process_creation.h" #include "core/hle/service/am/service/library_applet_accessor.h" #include "core/hle/service/am/service/library_applet_creator.h" - -#include "core/hle/api_version.h" #include "core/hle/service/am/service/storage.h" #include "core/hle/service/am/window_system.h" #include "core/hle/service/cmif_serialization.h" @@ -110,7 +108,20 @@ std::shared_ptr CreateGuestApplet(Core::System& system, return {}; } - auto process = CreateProcess(system, program_id, 1, HLE::ApiVersion::HOS_VERSION_MAJOR); + // TODO: enable other versions of applets + enum : u8 { + Firmware1400 = 14, + Firmware1500 = 15, + Firmware1600 = 16, + Firmware1700 = 17, + Firmware1800 = 18, + Firmware1900 = 19, + Firmware2000 = 20, + Firmware2100 = 21, + Firmware2200 = 22, + }; + + auto process = CreateProcess(system, program_id, Firmware1400, Firmware2200); if (process) { const auto applet = std::make_shared(system, std::move(process), false); applet->program_id = program_id; @@ -122,10 +133,7 @@ std::shared_ptr CreateGuestApplet(Core::System& system, auto broker = std::make_shared(system); applet->caller_applet = caller_applet; applet->caller_applet_broker = broker; - { - std::scoped_lock lk{caller_applet->lock}; - caller_applet->child_applets.push_back(applet); - } + caller_applet->child_applets.push_back(applet); window_system.TrackApplet(applet, false); return std::make_shared(system, broker, applet); } @@ -151,10 +159,10 @@ std::shared_ptr CreateFrontendApplet(Core::System& syste applet->caller_applet = caller_applet; applet->caller_applet_broker = storage; applet->frontend = system.GetFrontendAppletHolder().GetApplet(applet, applet_id, mode); - { - std::scoped_lock lk{caller_applet->lock}; - caller_applet->child_applets.push_back(applet); - } + caller_applet->child_applets.push_back(applet); + + window_system.TrackApplet(applet, false); + return std::make_shared(system, storage, applet); } diff --git a/src/core/hle/service/am/service/library_applet_creator.h b/src/core/hle/service/am/service/library_applet_creator.h index 1c7f930055..34e7586e8f 100644 --- a/src/core/hle/service/am/service/library_applet_creator.h +++ b/src/core/hle/service/am/service/library_applet_creator.h @@ -1,4 +1,4 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project +// SPDX-FileCopyrightText: Copyright 2025 Eden Emulator Project // SPDX-License-Identifier: GPL-3.0-or-later // SPDX-FileCopyrightText: Copyright 2024 yuzu Emulator Project diff --git a/src/core/hle/service/am/service/library_applet_proxy.cpp b/src/core/hle/service/am/service/library_applet_proxy.cpp index 567ff75797..f9cfb82a90 100644 --- a/src/core/hle/service/am/service/library_applet_proxy.cpp +++ b/src/core/hle/service/am/service/library_applet_proxy.cpp @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2024 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/am/service/library_applet_proxy.h b/src/core/hle/service/am/service/library_applet_proxy.h index c659dbe187..792d585827 100644 --- a/src/core/hle/service/am/service/library_applet_proxy.h +++ b/src/core/hle/service/am/service/library_applet_proxy.h @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2024 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/am/service/lock_accessor.h b/src/core/hle/service/am/service/lock_accessor.h index fe3f11dcf0..9bfb5c0502 100644 --- a/src/core/hle/service/am/service/lock_accessor.h +++ b/src/core/hle/service/am/service/lock_accessor.h @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2024 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/am/service/overlay_applet_proxy.cpp b/src/core/hle/service/am/service/overlay_applet_proxy.cpp index 735ba9d307..5e140fe031 100644 --- a/src/core/hle/service/am/service/overlay_applet_proxy.cpp +++ b/src/core/hle/service/am/service/overlay_applet_proxy.cpp @@ -1,4 +1,4 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project +// SPDX-FileCopyrightText: Copyright 2025 Eden Emulator Project // SPDX-License-Identifier: GPL-3.0-or-later #include "core/hle/service/am/service/common_state_getter.h" diff --git a/src/core/hle/service/am/service/overlay_applet_proxy.h b/src/core/hle/service/am/service/overlay_applet_proxy.h index 6c02166a2d..2c7fa57dfd 100644 --- a/src/core/hle/service/am/service/overlay_applet_proxy.h +++ b/src/core/hle/service/am/service/overlay_applet_proxy.h @@ -1,4 +1,4 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project +// SPDX-FileCopyrightText: Copyright 2025 Eden Emulator Project // SPDX-License-Identifier: GPL-3.0-or-later #pragma once diff --git a/src/core/hle/service/am/service/self_controller.cpp b/src/core/hle/service/am/service/self_controller.cpp index 3a654b9daa..70ce7443c4 100644 --- a/src/core/hle/service/am/service/self_controller.cpp +++ b/src/core/hle/service/am/service/self_controller.cpp @@ -71,7 +71,6 @@ ISelfController::ISelfController(Core::System& system_, std::shared_ptr {120, D<&ISelfController::SaveCurrentScreenshot>, "SaveCurrentScreenshot"}, {130, D<&ISelfController::SetRecordVolumeMuted>, "SetRecordVolumeMuted"}, {230, D<&ISelfController::Unknown230>, "Unknown230"}, - {240, D<&ISelfController::Unknown240>, "Unknown240"}, {1000, nullptr, "GetDebugStorageChannel"}, }; // clang-format on @@ -423,10 +422,4 @@ Result ISelfController::Unknown230(u32 in_val, Out out_val) { R_SUCCEED(); } -Result ISelfController::Unknown240(u32 in_val) { - LOG_WARNING(Service_AM, "(STUBBED) called, in_val={}", in_val); - - R_SUCCEED(); -} - } // namespace Service::AM diff --git a/src/core/hle/service/am/service/self_controller.h b/src/core/hle/service/am/service/self_controller.h index c9f480f575..b6403abde2 100644 --- a/src/core/hle/service/am/service/self_controller.h +++ b/src/core/hle/service/am/service/self_controller.h @@ -68,7 +68,6 @@ private: Result SaveCurrentScreenshot(Capture::AlbumReportOption album_report_option); Result SetRecordVolumeMuted(bool muted); Result Unknown230(u32 in_val, Out out_val); - Result Unknown240(u32 in_val); Kernel::KProcess* const m_process; const std::shared_ptr m_applet; diff --git a/src/core/hle/service/am/service/storage.h b/src/core/hle/service/am/service/storage.h index 462c823206..cde2ed0ead 100644 --- a/src/core/hle/service/am/service/storage.h +++ b/src/core/hle/service/am/service/storage.h @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2024 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/am/service/storage_accessor.cpp b/src/core/hle/service/am/service/storage_accessor.cpp index 2fe379a74d..84577fee45 100644 --- a/src/core/hle/service/am/service/storage_accessor.cpp +++ b/src/core/hle/service/am/service/storage_accessor.cpp @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2024 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/am/service/storage_accessor.h b/src/core/hle/service/am/service/storage_accessor.h index 76af3de363..1a01730e00 100644 --- a/src/core/hle/service/am/service/storage_accessor.h +++ b/src/core/hle/service/am/service/storage_accessor.h @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2024 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/am/service/system_applet_proxy.cpp b/src/core/hle/service/am/service/system_applet_proxy.cpp index bb56750d09..c435288a26 100644 --- a/src/core/hle/service/am/service/system_applet_proxy.cpp +++ b/src/core/hle/service/am/service/system_applet_proxy.cpp @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2024 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/am/service/system_applet_proxy.h b/src/core/hle/service/am/service/system_applet_proxy.h index 76cef507a5..ab9769b3d9 100644 --- a/src/core/hle/service/am/service/system_applet_proxy.h +++ b/src/core/hle/service/am/service/system_applet_proxy.h @@ -1,4 +1,4 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project +// SPDX-FileCopyrightText: Copyright 2025 Eden Emulator Project // SPDX-License-Identifier: GPL-3.0-or-later // SPDX-FileCopyrightText: Copyright 2024 yuzu Emulator Project diff --git a/src/core/hle/service/am/service/window_controller.cpp b/src/core/hle/service/am/service/window_controller.cpp index f2b9dccb27..54396affbe 100644 --- a/src/core/hle/service/am/service/window_controller.cpp +++ b/src/core/hle/service/am/service/window_controller.cpp @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2024 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/am/service/window_controller.h b/src/core/hle/service/am/service/window_controller.h index 51a67f3039..a784dd4a49 100644 --- a/src/core/hle/service/am/service/window_controller.h +++ b/src/core/hle/service/am/service/window_controller.h @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2024 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/am/window_system.cpp b/src/core/hle/service/am/window_system.cpp index fbb1a57efd..3858791430 100644 --- a/src/core/hle/service/am/window_system.cpp +++ b/src/core/hle/service/am/window_system.cpp @@ -517,7 +517,7 @@ void WindowSystem::UpdateAppletStateLocked(Applet* applet, bool is_foreground, b // Layer ordering. Composition sorts back-to-front. Now with enums for calrity. s32 z_index = Background; if (is_overlay) { - z_index = this->IsOverlayOpenLocked(*applet) ? Overlay : Background; + z_index = Overlay; } else if (inherited_foreground) { z_index = is_obscured ? Foreground : ForegroundVisible; } diff --git a/src/core/hle/service/aoc/addon_content_manager.h b/src/core/hle/service/aoc/addon_content_manager.h index b505525590..91857df4c7 100644 --- a/src/core/hle/service/aoc/addon_content_manager.h +++ b/src/core/hle/service/aoc/addon_content_manager.h @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/aoc/purchase_event_manager.cpp b/src/core/hle/service/aoc/purchase_event_manager.cpp index 64e1244967..9e718510b4 100644 --- a/src/core/hle/service/aoc/purchase_event_manager.cpp +++ b/src/core/hle/service/aoc/purchase_event_manager.cpp @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/aoc/purchase_event_manager.h b/src/core/hle/service/aoc/purchase_event_manager.h index c0bdfaf242..ea3836bc93 100644 --- a/src/core/hle/service/aoc/purchase_event_manager.h +++ b/src/core/hle/service/aoc/purchase_event_manager.h @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/apm/apm.h b/src/core/hle/service/apm/apm.h index 265e581697..e188b4e446 100644 --- a/src/core/hle/service/apm/apm.h +++ b/src/core/hle/service/apm/apm.h @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/apm/apm_controller.h b/src/core/hle/service/apm/apm_controller.h index c2f65a2f0e..3357b7762a 100644 --- a/src/core/hle/service/apm/apm_controller.h +++ b/src/core/hle/service/apm/apm_controller.h @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2019 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/apm/apm_interface.h b/src/core/hle/service/apm/apm_interface.h index eeac3474b0..58718453b6 100644 --- a/src/core/hle/service/apm/apm_interface.h +++ b/src/core/hle/service/apm/apm_interface.h @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/audio/audio.cpp b/src/core/hle/service/audio/audio.cpp index fde766a275..c433283304 100644 --- a/src/core/hle/service/audio/audio.cpp +++ b/src/core/hle/service/audio/audio.cpp @@ -185,26 +185,26 @@ public: void LoopProcess(Core::System& system) { auto server_manager = std::make_unique(system); - server_manager->RegisterNamedService("aud:a", std::make_shared(system), 30); - server_manager->RegisterNamedService("aud:d", std::make_shared(system), 30); + server_manager->RegisterNamedService("aud:a", std::make_shared(system)); + server_manager->RegisterNamedService("aud:d", std::make_shared(system)); - server_manager->RegisterNamedService("audout:d", std::make_shared(system), 30); - server_manager->RegisterNamedService("audin:d", std::make_shared(system), 30); - server_manager->RegisterNamedService("audrec:d", std::make_shared(system), 30); - server_manager->RegisterNamedService("audren:d", std::make_shared(system), 30); + server_manager->RegisterNamedService("audout:d", std::make_shared(system)); + server_manager->RegisterNamedService("audin:d", std::make_shared(system)); + server_manager->RegisterNamedService("audrec:d", std::make_shared(system)); + server_manager->RegisterNamedService("audren:d", std::make_shared(system)); - server_manager->RegisterNamedService("audin:u", std::make_shared(system), 30); - server_manager->RegisterNamedService("audin:a", std::make_shared(system), 30); - server_manager->RegisterNamedService("audout:u", std::make_shared(system), 30); - server_manager->RegisterNamedService("audout:a", std::make_shared(system), 30); - server_manager->RegisterNamedService("auddev", std::make_shared(system), 30); + server_manager->RegisterNamedService("audin:u", std::make_shared(system)); + server_manager->RegisterNamedService("audin:a", std::make_shared(system)); + server_manager->RegisterNamedService("audout:u", std::make_shared(system)); + server_manager->RegisterNamedService("audout:a", std::make_shared(system)); + server_manager->RegisterNamedService("auddev", std::make_shared(system)); // Depends on audout:u and audin:u on ctor! - server_manager->RegisterNamedService("audctl", std::make_shared(system), 30); - server_manager->RegisterNamedService("audrec:a", std::make_shared(system), 30); - server_manager->RegisterNamedService("audrec:u", std::make_shared(system), 30); - server_manager->RegisterNamedService("audren:u", std::make_shared(system), 30); - server_manager->RegisterNamedService("audren:a", std::make_shared(system), 30); - server_manager->RegisterNamedService("hwopus", std::make_shared(system), 25); + server_manager->RegisterNamedService("audctl", std::make_shared(system)); + server_manager->RegisterNamedService("audrec:a", std::make_shared(system)); + server_manager->RegisterNamedService("audrec:u", std::make_shared(system)); + server_manager->RegisterNamedService("audren:u", std::make_shared(system)); + server_manager->RegisterNamedService("audren:a", std::make_shared(system)); + server_manager->RegisterNamedService("hwopus", std::make_shared(system)); ServerManager::RunServer(std::move(server_manager)); } diff --git a/src/core/hle/service/audio/audio.h b/src/core/hle/service/audio/audio.h index eb8f482690..d70f022c73 100644 --- a/src/core/hle/service/audio/audio.h +++ b/src/core/hle/service/audio/audio.h @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/audio/audio_controller.cpp b/src/core/hle/service/audio/audio_controller.cpp index 9e2db4a84c..611e48e8ba 100644 --- a/src/core/hle/service/audio/audio_controller.cpp +++ b/src/core/hle/service/audio/audio_controller.cpp @@ -1,4 +1,7 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project +// SPDX-FileCopyrightText: Copyright 2025 Eden Emulator Project +// SPDX-License-Identifier: GPL-3.0-or-later + +// SPDX-FileCopyrightText: Copyright 2025 Eden Emulator Project // SPDX-License-Identifier: GPL-3.0-or-later // SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project diff --git a/src/core/hle/service/audio/audio_controller.h b/src/core/hle/service/audio/audio_controller.h index a30b572ac7..ff51f4c244 100644 --- a/src/core/hle/service/audio/audio_controller.h +++ b/src/core/hle/service/audio/audio_controller.h @@ -1,4 +1,4 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project +// SPDX-FileCopyrightText: Copyright 2025 Eden Emulator Project // SPDX-License-Identifier: GPL-3.0-or-later // SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project diff --git a/src/core/hle/service/audio/audio_in.h b/src/core/hle/service/audio/audio_in.h index 793d2b3ad4..3fe1e1e870 100644 --- a/src/core/hle/service/audio/audio_in.h +++ b/src/core/hle/service/audio/audio_in.h @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2024 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/audio/audio_in_manager.cpp b/src/core/hle/service/audio/audio_in_manager.cpp index fccfe38b3b..2675a57735 100644 --- a/src/core/hle/service/audio/audio_in_manager.cpp +++ b/src/core/hle/service/audio/audio_in_manager.cpp @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2024 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/audio/audio_in_manager.h b/src/core/hle/service/audio/audio_in_manager.h index d8f63972c3..2a983bc607 100644 --- a/src/core/hle/service/audio/audio_in_manager.h +++ b/src/core/hle/service/audio/audio_in_manager.h @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2024 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/audio/audio_out.h b/src/core/hle/service/audio/audio_out.h index 178ee57df6..779b213e78 100644 --- a/src/core/hle/service/audio/audio_out.h +++ b/src/core/hle/service/audio/audio_out.h @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2024 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/audio/audio_renderer.h b/src/core/hle/service/audio/audio_renderer.h index 7f4ea9a662..f25c50ce8d 100644 --- a/src/core/hle/service/audio/audio_renderer.h +++ b/src/core/hle/service/audio/audio_renderer.h @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2024 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/audio/errors.h b/src/core/hle/service/audio/errors.h index 553b4ee360..8062820de3 100644 --- a/src/core/hle/service/audio/errors.h +++ b/src/core/hle/service/audio/errors.h @@ -1,4 +1,4 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project +// SPDX-FileCopyrightText: Copyright 2025 Eden Emulator Project // SPDX-License-Identifier: GPL-3.0-or-later // SPDX-FileCopyrightText: Copyright 2019 yuzu Emulator Project @@ -33,7 +33,6 @@ constexpr Result ResultLibOpusInternalError{ErrorModule::HwOpus, 4}; constexpr Result ResultBufferTooSmall{ErrorModule::HwOpus, 3}; constexpr Result ResultLibOpusBadArg{ErrorModule::HwOpus, 2}; constexpr Result ResultInvalidOpusDSPReturnCode{ErrorModule::HwOpus, 259}; -constexpr Result ResultOutOfOpusDecoders{ErrorModule::HwOpus, 385}; constexpr Result ResultInvalidOpusSampleRate{ErrorModule::HwOpus, 1001}; constexpr Result ResultInvalidOpusChannelCount{ErrorModule::HwOpus, 1002}; diff --git a/src/core/hle/service/audio/final_output_recorder_manager.cpp b/src/core/hle/service/audio/final_output_recorder_manager.cpp index 2bc9d29e3e..f70a0e62d7 100644 --- a/src/core/hle/service/audio/final_output_recorder_manager.cpp +++ b/src/core/hle/service/audio/final_output_recorder_manager.cpp @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/audio/final_output_recorder_manager.h b/src/core/hle/service/audio/final_output_recorder_manager.h index 833c621be7..0663b894e7 100644 --- a/src/core/hle/service/audio/final_output_recorder_manager.h +++ b/src/core/hle/service/audio/final_output_recorder_manager.h @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/audio/final_output_recorder_manager_for_applet.cpp b/src/core/hle/service/audio/final_output_recorder_manager_for_applet.cpp index dc2ea63aa0..7e2e42bbe7 100644 --- a/src/core/hle/service/audio/final_output_recorder_manager_for_applet.cpp +++ b/src/core/hle/service/audio/final_output_recorder_manager_for_applet.cpp @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/audio/final_output_recorder_manager_for_applet.h b/src/core/hle/service/audio/final_output_recorder_manager_for_applet.h index 32efb75b5e..27940f7e0d 100644 --- a/src/core/hle/service/audio/final_output_recorder_manager_for_applet.h +++ b/src/core/hle/service/audio/final_output_recorder_manager_for_applet.h @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/audio/hardware_opus_decoder.cpp b/src/core/hle/service/audio/hardware_opus_decoder.cpp index 14888afa0d..03d3374c14 100644 --- a/src/core/hle/service/audio/hardware_opus_decoder.cpp +++ b/src/core/hle/service/audio/hardware_opus_decoder.cpp @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2024 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/audio/hardware_opus_decoder.h b/src/core/hle/service/audio/hardware_opus_decoder.h index 5297572da8..511bf46bdb 100644 --- a/src/core/hle/service/audio/hardware_opus_decoder.h +++ b/src/core/hle/service/audio/hardware_opus_decoder.h @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2024 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/audio/hardware_opus_decoder_manager.cpp b/src/core/hle/service/audio/hardware_opus_decoder_manager.cpp index b89e210012..9de72e30fe 100644 --- a/src/core/hle/service/audio/hardware_opus_decoder_manager.cpp +++ b/src/core/hle/service/audio/hardware_opus_decoder_manager.cpp @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/audio/hardware_opus_decoder_manager.h b/src/core/hle/service/audio/hardware_opus_decoder_manager.h index 4dd211e232..4f869c5174 100644 --- a/src/core/hle/service/audio/hardware_opus_decoder_manager.h +++ b/src/core/hle/service/audio/hardware_opus_decoder_manager.h @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/bcat/backend/backend.h b/src/core/hle/service/bcat/backend/backend.h index 645af9a386..8419399a62 100644 --- a/src/core/hle/service/bcat/backend/backend.h +++ b/src/core/hle/service/bcat/backend/backend.h @@ -6,11 +6,12 @@ #pragma once +#include #include #include -#include #include "common/common_types.h" +#include "core/file_sys/vfs/vfs_types.h" #include "core/hle/result.h" #include "core/hle/service/bcat/bcat_types.h" #include "core/hle/service/kernel_helpers.h" diff --git a/src/core/hle/service/bcat/bcat.cpp b/src/core/hle/service/bcat/bcat.cpp index bf9e054a49..ea8b15998d 100644 --- a/src/core/hle/service/bcat/bcat.cpp +++ b/src/core/hle/service/bcat/bcat.cpp @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later @@ -15,16 +12,25 @@ namespace Service::BCAT { void LoopProcess(Core::System& system) { auto server_manager = std::make_unique(system); - server_manager->RegisterNamedService("bcat:a", std::make_shared(system, "bcat:a"), 32); - server_manager->RegisterNamedService("bcat:m", std::make_shared(system, "bcat:m"), 32); - server_manager->RegisterNamedService("bcat:u", std::make_shared(system, "bcat:u"), 32); - server_manager->RegisterNamedService("bcat:s", std::make_shared(system, "bcat:s"), 32); + server_manager->RegisterNamedService("bcat:a", + std::make_shared(system, "bcat:a")); + server_manager->RegisterNamedService("bcat:m", + std::make_shared(system, "bcat:m")); + server_manager->RegisterNamedService("bcat:u", + std::make_shared(system, "bcat:u")); + server_manager->RegisterNamedService("bcat:s", + std::make_shared(system, "bcat:s")); - server_manager->RegisterNamedService("news:a", std::make_shared(system, 0xffffffff, "news:a"), 32); - server_manager->RegisterNamedService("news:p", std::make_shared(system, 0x1, "news:p"), 32); - server_manager->RegisterNamedService("news:c", std::make_shared(system, 0x2, "news:c"), 32); - server_manager->RegisterNamedService("news:v", std::make_shared(system, 0x4, "news:v"), 32); - server_manager->RegisterNamedService("news:m", std::make_shared(system, 0xd, "news:m"), 32); + server_manager->RegisterNamedService( + "news:a", std::make_shared(system, 0xffffffff, "news:a")); + server_manager->RegisterNamedService( + "news:p", std::make_shared(system, 0x1, "news:p")); + server_manager->RegisterNamedService( + "news:c", std::make_shared(system, 0x2, "news:c")); + server_manager->RegisterNamedService( + "news:v", std::make_shared(system, 0x4, "news:v")); + server_manager->RegisterNamedService( + "news:m", std::make_shared(system, 0xd, "news:m")); ServerManager::RunServer(std::move(server_manager)); } diff --git a/src/core/hle/service/bcat/bcat.h b/src/core/hle/service/bcat/bcat.h index 65961baffe..2aaffc693b 100644 --- a/src/core/hle/service/bcat/bcat.h +++ b/src/core/hle/service/bcat/bcat.h @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/bcat/bcat_result.h b/src/core/hle/service/bcat/bcat_result.h index c6fa1b4e26..edf8a65641 100644 --- a/src/core/hle/service/bcat/bcat_result.h +++ b/src/core/hle/service/bcat/bcat_result.h @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2024 yuzu Emulator Project // SPDX-License-Identifier: GPL-3.0-or-later diff --git a/src/core/hle/service/bcat/delivery_cache_directory_service.h b/src/core/hle/service/bcat/delivery_cache_directory_service.h index cea67b0d87..b902c64959 100644 --- a/src/core/hle/service/bcat/delivery_cache_directory_service.h +++ b/src/core/hle/service/bcat/delivery_cache_directory_service.h @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2024 yuzu Emulator Project // SPDX-License-Identifier: GPL-3.0-or-later diff --git a/src/core/hle/service/bcat/delivery_cache_file_service.cpp b/src/core/hle/service/bcat/delivery_cache_file_service.cpp index 1d961e1655..b75fac4bfe 100644 --- a/src/core/hle/service/bcat/delivery_cache_file_service.cpp +++ b/src/core/hle/service/bcat/delivery_cache_file_service.cpp @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2024 yuzu Emulator Project // SPDX-License-Identifier: GPL-3.0-or-later diff --git a/src/core/hle/service/bcat/delivery_cache_file_service.h b/src/core/hle/service/bcat/delivery_cache_file_service.h index 911bda55b3..e1012e6873 100644 --- a/src/core/hle/service/bcat/delivery_cache_file_service.h +++ b/src/core/hle/service/bcat/delivery_cache_file_service.h @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2024 yuzu Emulator Project // SPDX-License-Identifier: GPL-3.0-or-later diff --git a/src/core/hle/service/bcat/delivery_cache_progress_service.cpp b/src/core/hle/service/bcat/delivery_cache_progress_service.cpp index 873977bf90..79e7e0d957 100644 --- a/src/core/hle/service/bcat/delivery_cache_progress_service.cpp +++ b/src/core/hle/service/bcat/delivery_cache_progress_service.cpp @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2024 yuzu Emulator Project // SPDX-License-Identifier: GPL-3.0-or-later diff --git a/src/core/hle/service/bcat/delivery_cache_progress_service.h b/src/core/hle/service/bcat/delivery_cache_progress_service.h index 83d4d35827..f81a139806 100644 --- a/src/core/hle/service/bcat/delivery_cache_progress_service.h +++ b/src/core/hle/service/bcat/delivery_cache_progress_service.h @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2024 yuzu Emulator Project // SPDX-License-Identifier: GPL-3.0-or-later diff --git a/src/core/hle/service/bcat/delivery_cache_storage_service.cpp b/src/core/hle/service/bcat/delivery_cache_storage_service.cpp index a363bcb2d1..46ed4dae67 100644 --- a/src/core/hle/service/bcat/delivery_cache_storage_service.cpp +++ b/src/core/hle/service/bcat/delivery_cache_storage_service.cpp @@ -1,4 +1,4 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project +// SPDX-FileCopyrightText: Copyright 2025 Eden Emulator Project // SPDX-License-Identifier: GPL-3.0-or-later // SPDX-FileCopyrightText: Copyright 2024 yuzu Emulator Project diff --git a/src/core/hle/service/bcat/delivery_cache_storage_service.h b/src/core/hle/service/bcat/delivery_cache_storage_service.h index 4849e58047..3b8dfb1a39 100644 --- a/src/core/hle/service/bcat/delivery_cache_storage_service.h +++ b/src/core/hle/service/bcat/delivery_cache_storage_service.h @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2024 yuzu Emulator Project // SPDX-License-Identifier: GPL-3.0-or-later diff --git a/src/core/hle/service/bcat/news/builtin_news.h b/src/core/hle/service/bcat/news/builtin_news.h index e47cc89588..cb06b2d4e3 100644 --- a/src/core/hle/service/bcat/news/builtin_news.h +++ b/src/core/hle/service/bcat/news/builtin_news.h @@ -1,4 +1,4 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project +// SPDX-FileCopyrightText: Copyright 2025 Eden Emulator Project // SPDX-License-Identifier: GPL-3.0-or-later #pragma once diff --git a/src/core/hle/service/bcat/news/msgpack.cpp b/src/core/hle/service/bcat/news/msgpack.cpp index 9cea2de522..b67b75ea9d 100644 --- a/src/core/hle/service/bcat/news/msgpack.cpp +++ b/src/core/hle/service/bcat/news/msgpack.cpp @@ -1,4 +1,4 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project +// SPDX-FileCopyrightText: Copyright 2025 Eden Emulator Project // SPDX-License-Identifier: GPL-3.0-or-later #include "core/hle/service/bcat/news/msgpack.h" diff --git a/src/core/hle/service/bcat/news/msgpack.h b/src/core/hle/service/bcat/news/msgpack.h index 3163689782..a7a2aa40ba 100644 --- a/src/core/hle/service/bcat/news/msgpack.h +++ b/src/core/hle/service/bcat/news/msgpack.h @@ -1,4 +1,4 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project +// SPDX-FileCopyrightText: Copyright 2025 Eden Emulator Project // SPDX-License-Identifier: GPL-3.0-or-later #pragma once diff --git a/src/core/hle/service/bcat/news/newly_arrived_event_holder.cpp b/src/core/hle/service/bcat/news/newly_arrived_event_holder.cpp index b60de3b1f5..ed393f7a26 100644 --- a/src/core/hle/service/bcat/news/newly_arrived_event_holder.cpp +++ b/src/core/hle/service/bcat/news/newly_arrived_event_holder.cpp @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2024 yuzu Emulator Project // SPDX-License-Identifier: GPL-3.0-or-later diff --git a/src/core/hle/service/bcat/news/newly_arrived_event_holder.h b/src/core/hle/service/bcat/news/newly_arrived_event_holder.h index 5c2aeec182..6cc9ae0997 100644 --- a/src/core/hle/service/bcat/news/newly_arrived_event_holder.h +++ b/src/core/hle/service/bcat/news/newly_arrived_event_holder.h @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2024 yuzu Emulator Project // SPDX-License-Identifier: GPL-3.0-or-later diff --git a/src/core/hle/service/bcat/news/news_data_service.h b/src/core/hle/service/bcat/news/news_data_service.h index 45fe4bafcc..8f5e031701 100644 --- a/src/core/hle/service/bcat/news/news_data_service.h +++ b/src/core/hle/service/bcat/news/news_data_service.h @@ -1,4 +1,4 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project +// SPDX-FileCopyrightText: Copyright 2025 Eden Emulator Project // SPDX-License-Identifier: GPL-3.0-or-later // SPDX-FileCopyrightText: Copyright 2024 yuzu Emulator Project diff --git a/src/core/hle/service/bcat/news/news_database_service.cpp b/src/core/hle/service/bcat/news/news_database_service.cpp index 27ca1ad378..3580ceb0f7 100644 --- a/src/core/hle/service/bcat/news/news_database_service.cpp +++ b/src/core/hle/service/bcat/news/news_database_service.cpp @@ -1,4 +1,4 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project +// SPDX-FileCopyrightText: Copyright 2025 Eden Emulator Project // SPDX-License-Identifier: GPL-3.0-or-later // SPDX-FileCopyrightText: Copyright 2024 yuzu Emulator Project diff --git a/src/core/hle/service/bcat/news/news_database_service.h b/src/core/hle/service/bcat/news/news_database_service.h index 7552da23de..143864e80e 100644 --- a/src/core/hle/service/bcat/news/news_database_service.h +++ b/src/core/hle/service/bcat/news/news_database_service.h @@ -1,4 +1,4 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project +// SPDX-FileCopyrightText: Copyright 2025 Eden Emulator Project // SPDX-License-Identifier: GPL-3.0-or-later // SPDX-FileCopyrightText: Copyright 2024 yuzu Emulator Project diff --git a/src/core/hle/service/bcat/news/news_service.cpp b/src/core/hle/service/bcat/news/news_service.cpp index 4dcaa14881..aed1536bfe 100644 --- a/src/core/hle/service/bcat/news/news_service.cpp +++ b/src/core/hle/service/bcat/news/news_service.cpp @@ -1,4 +1,4 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project +// SPDX-FileCopyrightText: Copyright 2025 Eden Emulator Project // SPDX-License-Identifier: GPL-3.0-or-later // SPDX-FileCopyrightText: Copyright 2024 yuzu Emulator Project diff --git a/src/core/hle/service/bcat/news/news_service.h b/src/core/hle/service/bcat/news/news_service.h index 5d6109243b..1a320df02f 100644 --- a/src/core/hle/service/bcat/news/news_service.h +++ b/src/core/hle/service/bcat/news/news_service.h @@ -1,4 +1,4 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project +// SPDX-FileCopyrightText: Copyright 2025 Eden Emulator Project // SPDX-License-Identifier: GPL-3.0-or-later // SPDX-FileCopyrightText: Copyright 2024 yuzu Emulator Project diff --git a/src/core/hle/service/bcat/news/news_storage.cpp b/src/core/hle/service/bcat/news/news_storage.cpp index b65b680771..793c1fa94f 100644 --- a/src/core/hle/service/bcat/news/news_storage.cpp +++ b/src/core/hle/service/bcat/news/news_storage.cpp @@ -1,4 +1,4 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project +// SPDX-FileCopyrightText: Copyright 2025 Eden Emulator Project // SPDX-License-Identifier: GPL-3.0-or-later #include "core/hle/service/bcat/news/news_storage.h" diff --git a/src/core/hle/service/bcat/news/overwrite_event_holder.cpp b/src/core/hle/service/bcat/news/overwrite_event_holder.cpp index 08449f1c4a..1712971e4d 100644 --- a/src/core/hle/service/bcat/news/overwrite_event_holder.cpp +++ b/src/core/hle/service/bcat/news/overwrite_event_holder.cpp @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2024 yuzu Emulator Project // SPDX-License-Identifier: GPL-3.0-or-later diff --git a/src/core/hle/service/bcat/news/overwrite_event_holder.h b/src/core/hle/service/bcat/news/overwrite_event_holder.h index 507f6ab668..cdc87d782c 100644 --- a/src/core/hle/service/bcat/news/overwrite_event_holder.h +++ b/src/core/hle/service/bcat/news/overwrite_event_holder.h @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2024 yuzu Emulator Project // SPDX-License-Identifier: GPL-3.0-or-later diff --git a/src/core/hle/service/bcat/news/service_creator.cpp b/src/core/hle/service/bcat/news/service_creator.cpp index f27e4e52e6..a1b22c0044 100644 --- a/src/core/hle/service/bcat/news/service_creator.cpp +++ b/src/core/hle/service/bcat/news/service_creator.cpp @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2024 yuzu Emulator Project // SPDX-License-Identifier: GPL-3.0-or-later diff --git a/src/core/hle/service/bcat/news/service_creator.h b/src/core/hle/service/bcat/news/service_creator.h index 42fbccd2a0..5a62e7c1a9 100644 --- a/src/core/hle/service/bcat/news/service_creator.h +++ b/src/core/hle/service/bcat/news/service_creator.h @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2024 yuzu Emulator Project // SPDX-License-Identifier: GPL-3.0-or-later diff --git a/src/core/hle/service/bcat/service_creator.h b/src/core/hle/service/bcat/service_creator.h index 2245007d6c..50e6633248 100644 --- a/src/core/hle/service/bcat/service_creator.h +++ b/src/core/hle/service/bcat/service_creator.h @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2024 yuzu Emulator Project // SPDX-License-Identifier: GPL-3.0-or-later diff --git a/src/core/hle/service/bpc/bpc.cpp b/src/core/hle/service/bpc/bpc.cpp index 6f2e00b22b..6fd7001821 100644 --- a/src/core/hle/service/bpc/bpc.cpp +++ b/src/core/hle/service/bpc/bpc.cpp @@ -101,28 +101,14 @@ public: } }; -class BPC_AMS final : public ServiceFramework { -public: - explicit BPC_AMS(Core::System& system_) : ServiceFramework{system_, "bpc:ams"} { - // clang-format off - static const FunctionInfo functions[] = { - {65000, nullptr, "RebootToFatalError"}, - {65001, nullptr, "SetRebootPayload"}, - }; - // clang-format on - RegisterHandlers(functions); - } -}; - void LoopProcess(Core::System& system) { auto server_manager = std::make_unique(system); - server_manager->RegisterNamedService("bpc", std::make_shared(system), 13); - server_manager->RegisterNamedService("bpc:r", std::make_shared(system), 13); - server_manager->RegisterNamedService("bpc:c", std::make_shared(system), 13); - server_manager->RegisterNamedService("bpc:b", std::make_shared(system), 13); - server_manager->RegisterNamedService("bpc:w", std::make_shared(system), 13); - server_manager->RegisterNamedService("bpc:ams", std::make_shared(system), 4); + server_manager->RegisterNamedService("bpc", std::make_shared(system)); + server_manager->RegisterNamedService("bpc:r", std::make_shared(system)); + server_manager->RegisterNamedService("bpc:c", std::make_shared(system)); + server_manager->RegisterNamedService("bpc:b", std::make_shared(system)); + server_manager->RegisterNamedService("bpc:w", std::make_shared(system)); ServerManager::RunServer(std::move(server_manager)); } diff --git a/src/core/hle/service/bpc/bpc.h b/src/core/hle/service/bpc/bpc.h index bf13ce5bae..524391ddb5 100644 --- a/src/core/hle/service/bpc/bpc.h +++ b/src/core/hle/service/bpc/bpc.h @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/btdrv/btdrv.h b/src/core/hle/service/btdrv/btdrv.h index 4e739a96e3..42713860e6 100644 --- a/src/core/hle/service/btdrv/btdrv.h +++ b/src/core/hle/service/btdrv/btdrv.h @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/btm/btm.cpp b/src/core/hle/service/btm/btm.cpp index b358387ffe..327c2d2ddb 100644 --- a/src/core/hle/service/btm/btm.cpp +++ b/src/core/hle/service/btm/btm.cpp @@ -1,4 +1,4 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project +// SPDX-FileCopyrightText: Copyright 2025 Eden Emulator Project // SPDX-License-Identifier: GPL-3.0-or-later // SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project diff --git a/src/core/hle/service/btm/btm.h b/src/core/hle/service/btm/btm.h index 902a61d8cc..0bf77d053e 100644 --- a/src/core/hle/service/btm/btm.h +++ b/src/core/hle/service/btm/btm.h @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/btm/btm_debug.cpp b/src/core/hle/service/btm/btm_debug.cpp index abbe7d4832..0c9a3a6557 100644 --- a/src/core/hle/service/btm/btm_debug.cpp +++ b/src/core/hle/service/btm/btm_debug.cpp @@ -1,4 +1,4 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project +// SPDX-FileCopyrightText: Copyright 2025 Eden Emulator Project // SPDX-License-Identifier: GPL-3.0-or-later // SPDX-FileCopyrightText: Copyright 2024 yuzu Emulator Project diff --git a/src/core/hle/service/btm/btm_debug.h b/src/core/hle/service/btm/btm_debug.h index fad760d674..bf4f7e14fd 100644 --- a/src/core/hle/service/btm/btm_debug.h +++ b/src/core/hle/service/btm/btm_debug.h @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2024 yuzu Emulator Project // SPDX-License-Identifier: GPL-3.0-or-later diff --git a/src/core/hle/service/btm/btm_system.h b/src/core/hle/service/btm/btm_system.h index 9755540204..fe1c6dbd78 100644 --- a/src/core/hle/service/btm/btm_system.h +++ b/src/core/hle/service/btm/btm_system.h @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2024 yuzu Emulator Project // SPDX-License-Identifier: GPL-3.0-or-later diff --git a/src/core/hle/service/btm/btm_user.h b/src/core/hle/service/btm/btm_user.h index d6cf330ed6..d9ee5db455 100644 --- a/src/core/hle/service/btm/btm_user.h +++ b/src/core/hle/service/btm/btm_user.h @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2024 yuzu Emulator Project // SPDX-License-Identifier: GPL-3.0-or-later diff --git a/src/core/hle/service/btm/btm_user_core.h b/src/core/hle/service/btm/btm_user_core.h index 5a565a5897..dc0a22e810 100644 --- a/src/core/hle/service/btm/btm_user_core.h +++ b/src/core/hle/service/btm/btm_user_core.h @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2024 yuzu Emulator Project // SPDX-License-Identifier: GPL-3.0-or-later diff --git a/src/core/hle/service/caps/caps.h b/src/core/hle/service/caps/caps.h index 670ee59cda..58e9725b85 100644 --- a/src/core/hle/service/caps/caps.h +++ b/src/core/hle/service/caps/caps.h @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/caps/caps_a.h b/src/core/hle/service/caps/caps_a.h index c6aa8f9210..1885ba6be0 100644 --- a/src/core/hle/service/caps/caps_a.h +++ b/src/core/hle/service/caps/caps_a.h @@ -1,4 +1,4 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project +// SPDX-FileCopyrightText: Copyright 2025 Eden Emulator Project // SPDX-License-Identifier: GPL-3.0-or-later // SPDX-FileCopyrightText: Copyright 2020 yuzu Emulator Project diff --git a/src/core/hle/service/caps/caps_c.h b/src/core/hle/service/caps/caps_c.h index f50de0ee8c..0ecdfa1147 100644 --- a/src/core/hle/service/caps/caps_c.h +++ b/src/core/hle/service/caps/caps_c.h @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2020 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/caps/caps_result.h b/src/core/hle/service/caps/caps_result.h index b7ba2a642d..179ae48409 100644 --- a/src/core/hle/service/caps/caps_result.h +++ b/src/core/hle/service/caps/caps_result.h @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/caps/caps_sc.cpp b/src/core/hle/service/caps/caps_sc.cpp index 92d53da9f5..6117cb7c6c 100644 --- a/src/core/hle/service/caps/caps_sc.cpp +++ b/src/core/hle/service/caps/caps_sc.cpp @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2020 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/caps/caps_sc.h b/src/core/hle/service/caps/caps_sc.h index 72e947bf16..d555f49792 100644 --- a/src/core/hle/service/caps/caps_sc.h +++ b/src/core/hle/service/caps/caps_sc.h @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2020 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/caps/caps_ss.h b/src/core/hle/service/caps/caps_ss.h index 78971bde0e..da4b4cc5fc 100644 --- a/src/core/hle/service/caps/caps_ss.h +++ b/src/core/hle/service/caps/caps_ss.h @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2020 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/caps/caps_su.h b/src/core/hle/service/caps/caps_su.h index b7e53007ce..4b4cbd09e6 100644 --- a/src/core/hle/service/caps/caps_su.h +++ b/src/core/hle/service/caps/caps_su.h @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2020 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/caps/caps_u.h b/src/core/hle/service/caps/caps_u.h index debae97a46..023ee1fe79 100644 --- a/src/core/hle/service/caps/caps_u.h +++ b/src/core/hle/service/caps/caps_u.h @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2020 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/cmif_types.h b/src/core/hle/service/cmif_types.h index 783bce7781..dad358b87c 100644 --- a/src/core/hle/service/cmif_types.h +++ b/src/core/hle/service/cmif_types.h @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2024 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/erpt/erpt.h b/src/core/hle/service/erpt/erpt.h index 456e9af910..60094f556e 100644 --- a/src/core/hle/service/erpt/erpt.h +++ b/src/core/hle/service/erpt/erpt.h @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/es/es.h b/src/core/hle/service/es/es.h index 215aadb98f..3176806252 100644 --- a/src/core/hle/service/es/es.h +++ b/src/core/hle/service/es/es.h @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/eupld/eupld.cpp b/src/core/hle/service/eupld/eupld.cpp index 9b26ae9c83..3cf27513ae 100644 --- a/src/core/hle/service/eupld/eupld.cpp +++ b/src/core/hle/service/eupld/eupld.cpp @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/eupld/eupld.h b/src/core/hle/service/eupld/eupld.h index 851e286733..8eb0a5b4f2 100644 --- a/src/core/hle/service/eupld/eupld.h +++ b/src/core/hle/service/eupld/eupld.h @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/fatal/fatal.h b/src/core/hle/service/fatal/fatal.h index 176ad8d0d9..f1c1104060 100644 --- a/src/core/hle/service/fatal/fatal.h +++ b/src/core/hle/service/fatal/fatal.h @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/fatal/fatal_p.cpp b/src/core/hle/service/fatal/fatal_p.cpp index 345743d6bc..4a81bb5e2f 100644 --- a/src/core/hle/service/fatal/fatal_p.cpp +++ b/src/core/hle/service/fatal/fatal_p.cpp @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/fatal/fatal_p.h b/src/core/hle/service/fatal/fatal_p.h index ea2183c125..f743368350 100644 --- a/src/core/hle/service/fatal/fatal_p.h +++ b/src/core/hle/service/fatal/fatal_p.h @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/fatal/fatal_u.cpp b/src/core/hle/service/fatal/fatal_u.cpp index b2850c3e62..3739711fce 100644 --- a/src/core/hle/service/fatal/fatal_u.cpp +++ b/src/core/hle/service/fatal/fatal_u.cpp @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/fatal/fatal_u.h b/src/core/hle/service/fatal/fatal_u.h index 4d193857d0..65fbe26961 100644 --- a/src/core/hle/service/fatal/fatal_u.h +++ b/src/core/hle/service/fatal/fatal_u.h @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/fgm/fgm.h b/src/core/hle/service/fgm/fgm.h index 89ef7096bb..9d2465c0fb 100644 --- a/src/core/hle/service/fgm/fgm.h +++ b/src/core/hle/service/fgm/fgm.h @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/filesystem/filesystem.cpp b/src/core/hle/service/filesystem/filesystem.cpp index 925af7b371..306e8701c3 100644 --- a/src/core/hle/service/filesystem/filesystem.cpp +++ b/src/core/hle/service/filesystem/filesystem.cpp @@ -787,13 +787,6 @@ void FileSystemController::CreateFactories(FileSys::VfsFilesystem& vfs, bool ove } } -void FileSystemController::InitTempStorage() { - const auto save_directory = system.GetFilesystem()->OpenDirectory(Common::FS::GetEdenPathString(Common::FS::EdenPath::SaveDir), FileSys::OpenMode::ReadWrite); - if (save_directory != nullptr) { - save_directory->DeleteSubdirectoryRecursive("temp"); - } -} - void FileSystemController::Reset() { std::scoped_lock lk{registration_lock}; registrations.clear(); @@ -804,9 +797,9 @@ void LoopProcess(Core::System& system) { const auto FileSystemProxyFactory = [&] { return std::make_shared(system); }; - server_manager->RegisterNamedService("fsp-ldr", std::make_shared(system), 61); - server_manager->RegisterNamedService("fsp-pr", std::make_shared(system), 61); - server_manager->RegisterNamedService("fsp-srv", std::move(FileSystemProxyFactory), 61); + server_manager->RegisterNamedService("fsp-ldr", std::make_shared(system)); + server_manager->RegisterNamedService("fsp-pr", std::make_shared(system)); + server_manager->RegisterNamedService("fsp-srv", std::move(FileSystemProxyFactory)); ServerManager::RunServer(std::move(server_manager)); } diff --git a/src/core/hle/service/filesystem/filesystem.h b/src/core/hle/service/filesystem/filesystem.h index a77358e2ef..ef45aec627 100644 --- a/src/core/hle/service/filesystem/filesystem.h +++ b/src/core/hle/service/filesystem/filesystem.h @@ -127,8 +127,6 @@ public: // above is called. void CreateFactories(FileSys::VfsFilesystem& vfs, bool overwrite = true); - void InitTempStorage(); - void Reset(); private: diff --git a/src/core/hle/service/filesystem/fsp/fs_i_directory.cpp b/src/core/hle/service/filesystem/fsp/fs_i_directory.cpp index c4e3c81f22..8483394d0c 100644 --- a/src/core/hle/service/filesystem/fsp/fs_i_directory.cpp +++ b/src/core/hle/service/filesystem/fsp/fs_i_directory.cpp @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/filesystem/fsp/fs_i_directory.h b/src/core/hle/service/filesystem/fsp/fs_i_directory.h index 79256604f3..b6251f7fdb 100644 --- a/src/core/hle/service/filesystem/fsp/fs_i_directory.h +++ b/src/core/hle/service/filesystem/fsp/fs_i_directory.h @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/filesystem/fsp/fs_i_file.h b/src/core/hle/service/filesystem/fsp/fs_i_file.h index 14348f7fc6..e8599ee2f8 100644 --- a/src/core/hle/service/filesystem/fsp/fs_i_file.h +++ b/src/core/hle/service/filesystem/fsp/fs_i_file.h @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/filesystem/fsp/fs_i_multi_commit_manager.cpp b/src/core/hle/service/filesystem/fsp/fs_i_multi_commit_manager.cpp index 4af0a4ea2d..6263282344 100644 --- a/src/core/hle/service/filesystem/fsp/fs_i_multi_commit_manager.cpp +++ b/src/core/hle/service/filesystem/fsp/fs_i_multi_commit_manager.cpp @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/filesystem/fsp/fs_i_multi_commit_manager.h b/src/core/hle/service/filesystem/fsp/fs_i_multi_commit_manager.h index 3ebeb2cb0a..8ebf7c7d96 100644 --- a/src/core/hle/service/filesystem/fsp/fs_i_multi_commit_manager.h +++ b/src/core/hle/service/filesystem/fsp/fs_i_multi_commit_manager.h @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/filesystem/fsp/fs_i_save_data_info_reader.cpp b/src/core/hle/service/filesystem/fsp/fs_i_save_data_info_reader.cpp index 0cac094caf..495b131df4 100644 --- a/src/core/hle/service/filesystem/fsp/fs_i_save_data_info_reader.cpp +++ b/src/core/hle/service/filesystem/fsp/fs_i_save_data_info_reader.cpp @@ -1,4 +1,4 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project +// SPDX-FileCopyrightText: Copyright 2025 Eden Emulator Project // SPDX-License-Identifier: GPL-3.0-or-later // SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project diff --git a/src/core/hle/service/filesystem/fsp/fs_i_save_data_info_reader.h b/src/core/hle/service/filesystem/fsp/fs_i_save_data_info_reader.h index d2b8eb97cf..e45ad852ba 100644 --- a/src/core/hle/service/filesystem/fsp/fs_i_save_data_info_reader.h +++ b/src/core/hle/service/filesystem/fsp/fs_i_save_data_info_reader.h @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/filesystem/fsp/fs_i_storage.cpp b/src/core/hle/service/filesystem/fsp/fs_i_storage.cpp index 8541c17817..50b7d1e765 100644 --- a/src/core/hle/service/filesystem/fsp/fs_i_storage.cpp +++ b/src/core/hle/service/filesystem/fsp/fs_i_storage.cpp @@ -4,10 +4,6 @@ // SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later -#include -#include -#include - #include "core/file_sys/errors.h" #include "core/hle/service/cmif_serialization.h" #include "core/hle/service/filesystem/fsp/fs_i_storage.h" @@ -35,14 +31,6 @@ Result IStorage::Read( R_UNLESS(length >= 0, FileSys::ResultInvalidSize); R_UNLESS(offset >= 0, FileSys::ResultInvalidOffset); - const auto now = std::chrono::steady_clock::now(); - if (now < next_read_tick) { - std::this_thread::sleep_for(next_read_tick - now); - } - next_read_tick = std::chrono::steady_clock::now() + - std::chrono::nanoseconds{std::min(length, MaxChargedReadSize) * - 1'000'000'000 / ReadBytesPerSecond}; - // Read the data from the Storage backend backend->Read(out_bytes.data(), length, offset); diff --git a/src/core/hle/service/filesystem/fsp/fs_i_storage.h b/src/core/hle/service/filesystem/fsp/fs_i_storage.h index bac72d73c7..74d879386f 100644 --- a/src/core/hle/service/filesystem/fsp/fs_i_storage.h +++ b/src/core/hle/service/filesystem/fsp/fs_i_storage.h @@ -1,13 +1,8 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later #pragma once -#include - #include "core/file_sys/vfs/vfs.h" #include "core/hle/service/cmif_types.h" #include "core/hle/service/filesystem/filesystem.h" @@ -22,10 +17,6 @@ public: private: FileSys::VirtualFile backend; - static constexpr s64 ReadBytesPerSecond = 40'000'000; - static constexpr s64 MaxChargedReadSize = 64 * 1024; - std::chrono::steady_clock::time_point next_read_tick{}; - Result Read( OutBuffer out_bytes, s64 offset, s64 length); diff --git a/src/core/hle/service/filesystem/fsp/fsp_ldr.cpp b/src/core/hle/service/filesystem/fsp/fsp_ldr.cpp index 1dcacb0231..8ee733f474 100644 --- a/src/core/hle/service/filesystem/fsp/fsp_ldr.cpp +++ b/src/core/hle/service/filesystem/fsp/fsp_ldr.cpp @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/filesystem/fsp/fsp_ldr.h b/src/core/hle/service/filesystem/fsp/fsp_ldr.h index b642efe7ad..358739a872 100644 --- a/src/core/hle/service/filesystem/fsp/fsp_ldr.h +++ b/src/core/hle/service/filesystem/fsp/fsp_ldr.h @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/filesystem/fsp/fsp_pr.cpp b/src/core/hle/service/filesystem/fsp/fsp_pr.cpp index e7941ef9c9..7c03ebaeae 100644 --- a/src/core/hle/service/filesystem/fsp/fsp_pr.cpp +++ b/src/core/hle/service/filesystem/fsp/fsp_pr.cpp @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/filesystem/fsp/fsp_pr.h b/src/core/hle/service/filesystem/fsp/fsp_pr.h index 175a3c7a23..bd4e0a730c 100644 --- a/src/core/hle/service/filesystem/fsp/fsp_pr.h +++ b/src/core/hle/service/filesystem/fsp/fsp_pr.h @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/filesystem/fsp/fsp_srv.cpp b/src/core/hle/service/filesystem/fsp/fsp_srv.cpp index 58303a0bd6..fdbd50ed7a 100644 --- a/src/core/hle/service/filesystem/fsp/fsp_srv.cpp +++ b/src/core/hle/service/filesystem/fsp/fsp_srv.cpp @@ -54,7 +54,7 @@ FSP_SRV::FSP_SRV(Core::System& system_) static const FunctionInfo functions[] = { {0, nullptr, "OpenFileSystem"}, {1, D<&FSP_SRV::SetCurrentProcess>, "SetCurrentProcess"}, - {2, D<&FSP_SRV::OpenDataFileSystemByCurrentProcess>, "OpenDataFileSystemByCurrentProcess"}, + {2, nullptr, "OpenDataFileSystemByCurrentProcess"}, {7, D<&FSP_SRV::OpenFileSystemWithPatch>, "OpenFileSystemWithPatch"}, {8, nullptr, "OpenFileSystemWithId"}, {9, nullptr, "OpenDataFileSystemByApplicationId"}, @@ -118,7 +118,6 @@ FSP_SRV::FSP_SRV(Core::System& system_) {204, nullptr, "OpenDataFileSystemByProgramIndex"}, {205, D<&FSP_SRV::OpenDataStorageWithProgramIndex>, "OpenDataStorageWithProgramIndex"}, {206, nullptr, "OpenDataStorageByPath"}, - {210, D<&FSP_SRV::SetCurrentProcess>, "SetCurrentProcess"}, {400, nullptr, "OpenDeviceOperator"}, {500, nullptr, "OpenSdCardDetectionEventNotifier"}, {501, nullptr, "OpenGameCardDetectionEventNotifier"}, @@ -154,9 +153,6 @@ FSP_SRV::FSP_SRV(Core::System& system_) {720, nullptr, "AbandonAccessFailure"}, {800, nullptr, "GetAndClearFileSystemProxyErrorInfo"}, {810, nullptr, "RegisterProgramIndexMapInfo"}, - {820, nullptr, "GetContentStorageInfoIndex"}, - {830, nullptr, "EncryptStreamPlaySaveData"}, - {831, nullptr, "DecryptStreamPlaySaveData"}, {1000, nullptr, "SetBisRootForHost"}, {1001, nullptr, "SetSaveDataSize"}, {1002, nullptr, "SetSaveDataRootPath"}, @@ -464,31 +460,6 @@ Result FSP_SRV::OpenSaveDataTransferProhibiter( R_SUCCEED(); } -Result FSP_SRV::OpenDataFileSystemByCurrentProcess(OutInterface out_interface) { - LOG_DEBUG(Service_FS, "called"); - - if (!romfs) { - auto current_romfs = romfs_controller->OpenRomFSCurrentProcess(); - if (!current_romfs) { - LOG_CRITICAL(Service_FS, "No file system interface available!"); - R_RETURN(ResultUnknown); - } - - romfs = current_romfs; - } - - auto extracted_romfs = FileSys::ExtractRomFS(romfs); - if (!extracted_romfs) { - LOG_CRITICAL(Service_FS, "Failed to extract RomFS for the current process!"); - R_RETURN(ResultUnknown); - } - - *out_interface = std::make_shared( - system, extracted_romfs, SizeGetter::FromStorageId(fsc, FileSys::StorageId::NandUser)); - - R_SUCCEED(); -} - Result FSP_SRV::OpenDataStorageByCurrentProcess(OutInterface out_interface) { LOG_DEBUG(Service_FS, "called"); diff --git a/src/core/hle/service/filesystem/fsp/fsp_srv.h b/src/core/hle/service/filesystem/fsp/fsp_srv.h index 156cf4e571..0ea41903e4 100644 --- a/src/core/hle/service/filesystem/fsp/fsp_srv.h +++ b/src/core/hle/service/filesystem/fsp/fsp_srv.h @@ -51,7 +51,6 @@ public: private: Result SetCurrentProcess(ClientProcessId pid); - Result OpenDataFileSystemByCurrentProcess(OutInterface out_interface); Result OpenFileSystemWithPatch(OutInterface out_interface, FileSystemProxyType type, u64 open_program_id); Result OpenSdCardFileSystem(OutInterface out_interface); diff --git a/src/core/hle/service/filesystem/fsp/fsp_types.h b/src/core/hle/service/filesystem/fsp/fsp_types.h index c704203ad1..294da6a2de 100644 --- a/src/core/hle/service/filesystem/fsp/fsp_types.h +++ b/src/core/hle/service/filesystem/fsp/fsp_types.h @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/filesystem/fsp/save_data_transfer_prohibiter.cpp b/src/core/hle/service/filesystem/fsp/save_data_transfer_prohibiter.cpp index f4c218db8d..d8d6289fe1 100644 --- a/src/core/hle/service/filesystem/fsp/save_data_transfer_prohibiter.cpp +++ b/src/core/hle/service/filesystem/fsp/save_data_transfer_prohibiter.cpp @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2024 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/filesystem/fsp/save_data_transfer_prohibiter.h b/src/core/hle/service/filesystem/fsp/save_data_transfer_prohibiter.h index 6141bae18c..d206e1dea4 100644 --- a/src/core/hle/service/filesystem/fsp/save_data_transfer_prohibiter.h +++ b/src/core/hle/service/filesystem/fsp/save_data_transfer_prohibiter.h @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2024 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/filesystem/romfs_controller.cpp b/src/core/hle/service/filesystem/romfs_controller.cpp index 9725d02f4b..19c9cec722 100644 --- a/src/core/hle/service/filesystem/romfs_controller.cpp +++ b/src/core/hle/service/filesystem/romfs_controller.cpp @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2024 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/filesystem/romfs_controller.h b/src/core/hle/service/filesystem/romfs_controller.h index 5471e136c3..3c3ead344c 100644 --- a/src/core/hle/service/filesystem/romfs_controller.h +++ b/src/core/hle/service/filesystem/romfs_controller.h @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2024 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/filesystem/save_data_controller.cpp b/src/core/hle/service/filesystem/save_data_controller.cpp index d3e22b1552..8720681d17 100644 --- a/src/core/hle/service/filesystem/save_data_controller.cpp +++ b/src/core/hle/service/filesystem/save_data_controller.cpp @@ -1,4 +1,4 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project +// SPDX-FileCopyrightText: Copyright 2025 Eden Emulator Project // SPDX-License-Identifier: GPL-3.0-or-later // SPDX-FileCopyrightText: Copyright 2024 yuzu Emulator Project diff --git a/src/core/hle/service/filesystem/save_data_controller.h b/src/core/hle/service/filesystem/save_data_controller.h index afb95cb949..dc9d713dfb 100644 --- a/src/core/hle/service/filesystem/save_data_controller.h +++ b/src/core/hle/service/filesystem/save_data_controller.h @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2024 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/friend/friend.h b/src/core/hle/service/friend/friend.h index 61ac92fbb4..2824dc7866 100644 --- a/src/core/hle/service/friend/friend.h +++ b/src/core/hle/service/friend/friend.h @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/friend/friend_interface.cpp b/src/core/hle/service/friend/friend_interface.cpp index b436d43303..c8b98b1f0c 100644 --- a/src/core/hle/service/friend/friend_interface.cpp +++ b/src/core/hle/service/friend/friend_interface.cpp @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/friend/friend_interface.h b/src/core/hle/service/friend/friend_interface.h index 0315c62c39..3a2184c347 100644 --- a/src/core/hle/service/friend/friend_interface.h +++ b/src/core/hle/service/friend/friend_interface.h @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/glue/arp.cpp b/src/core/hle/service/glue/arp.cpp index 7eda57ddc3..b5dfbe9c60 100644 --- a/src/core/hle/service/glue/arp.cpp +++ b/src/core/hle/service/glue/arp.cpp @@ -36,18 +36,18 @@ std::optional GetTitleIDForProcessID(Core::System& system, u64 process_id) ARP_R::ARP_R(Core::System& system_, const ARPManager& manager_) : ServiceFramework{system_, "arp:r"}, manager{manager_} { // clang-format off - static const FunctionInfo functions[] = { - {0, &ARP_R::GetApplicationLaunchProperty, "GetApplicationLaunchProperty"}, - {1, &ARP_R::GetApplicationLaunchPropertyWithApplicationId, "GetApplicationLaunchPropertyWithApplicationId"}, - {2, &ARP_R::GetApplicationControlProperty, "GetApplicationControlProperty"}, - {3, &ARP_R::GetApplicationControlPropertyWithApplicationId, "GetApplicationControlPropertyWithApplicationId"}, - {4, nullptr, "GetApplicationInstanceUnregistrationNotifier"}, - {5, nullptr, "ListApplicationInstanceId"}, - {6, nullptr, "GetMicroApplicationInstanceId"}, - {7, nullptr, "GetApplicationCertificate"}, - {9998, nullptr, "GetPreomiaApplicationLaunchProperty"}, - {9999, nullptr, "GetPreomiaApplicationControlProperty"}, - }; + static const FunctionInfo functions[] = { + {0, &ARP_R::GetApplicationLaunchProperty, "GetApplicationLaunchProperty"}, + {1, &ARP_R::GetApplicationLaunchPropertyWithApplicationId, "GetApplicationLaunchPropertyWithApplicationId"}, + {2, &ARP_R::GetApplicationControlProperty, "GetApplicationControlProperty"}, + {3, &ARP_R::GetApplicationControlPropertyWithApplicationId, "GetApplicationControlPropertyWithApplicationId"}, + {4, nullptr, "GetApplicationInstanceUnregistrationNotifier"}, + {5, nullptr, "ListApplicationInstanceId"}, + {6, nullptr, "GetMicroApplicationInstanceId"}, + {7, nullptr, "GetApplicationCertificate"}, + {9998, nullptr, "GetPreomiaApplicationLaunchProperty"}, + {9999, nullptr, "GetPreomiaApplicationControlProperty"}, + }; // clang-format on RegisterHandlers(functions); @@ -191,7 +191,8 @@ private: } if (issued) { - LOG_ERROR(Service_ARP, "Attempted to issue registrar, but registrar is already issued!"); + LOG_ERROR(Service_ARP, + "Attempted to issue registrar, but registrar is already issued!"); IPC::ResponseBuilder rb{ctx, 2}; rb.Push(Glue::ResultAlreadyBound); return; @@ -208,7 +209,9 @@ private: LOG_DEBUG(Service_ARP, "called"); if (issued) { - LOG_ERROR(Service_ARP, "Attempted to set application launch property, but registrar is already issued!"); + LOG_ERROR( + Service_ARP, + "Attempted to set application launch property, but registrar is already issued!"); IPC::ResponseBuilder rb{ctx, 2}; rb.Push(Glue::ResultAlreadyBound); return; @@ -225,7 +228,9 @@ private: LOG_DEBUG(Service_ARP, "called"); if (issued) { - LOG_ERROR(Service_ARP, "Attempted to set application control property, but registrar is already issued!"); + LOG_ERROR( + Service_ARP, + "Attempted to set application control property, but registrar is already issued!"); IPC::ResponseBuilder rb{ctx, 2}; rb.Push(Glue::ResultAlreadyBound); return; diff --git a/src/core/hle/service/glue/arp.h b/src/core/hle/service/glue/arp.h index ec3d809b5b..5bce801755 100644 --- a/src/core/hle/service/glue/arp.h +++ b/src/core/hle/service/glue/arp.h @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2019 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/glue/bgtc.h b/src/core/hle/service/glue/bgtc.h index 129193da1f..5a5d9c9a7a 100644 --- a/src/core/hle/service/glue/bgtc.h +++ b/src/core/hle/service/glue/bgtc.h @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2019 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/glue/errors.h b/src/core/hle/service/glue/errors.h index 9839271447..30feaa5c03 100644 --- a/src/core/hle/service/glue/errors.h +++ b/src/core/hle/service/glue/errors.h @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2019 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/glue/glue.cpp b/src/core/hle/service/glue/glue.cpp index f267060ef4..46d078d00b 100644 --- a/src/core/hle/service/glue/glue.cpp +++ b/src/core/hle/service/glue/glue.cpp @@ -22,8 +22,8 @@ void LoopProcess(Core::System& system) { auto server_manager = std::make_unique(system); // ARP - server_manager->RegisterNamedService("arp:r", std::make_shared(system, system.GetARPManager()), 16); - server_manager->RegisterNamedService("arp:w", std::make_shared(system, system.GetARPManager()), 8); + server_manager->RegisterNamedService("arp:r", std::make_shared(system, system.GetARPManager())); + server_manager->RegisterNamedService("arp:w", std::make_shared(system, system.GetARPManager())); // BackGround Task Controller server_manager->RegisterNamedService("bgtc:t", std::make_shared(system)); diff --git a/src/core/hle/service/glue/glue.h b/src/core/hle/service/glue/glue.h index 64d45cfc14..2a906f5ad6 100644 --- a/src/core/hle/service/glue/glue.h +++ b/src/core/hle/service/glue/glue.h @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2019 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/glue/glue_manager.cpp b/src/core/hle/service/glue/glue_manager.cpp index 78fc5ebac3..22f0017044 100644 --- a/src/core/hle/service/glue/glue_manager.cpp +++ b/src/core/hle/service/glue/glue_manager.cpp @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2019 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/glue/glue_manager.h b/src/core/hle/service/glue/glue_manager.h index 6330828834..216aa34c19 100644 --- a/src/core/hle/service/glue/glue_manager.h +++ b/src/core/hle/service/glue/glue_manager.h @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2019 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/glue/notif.h b/src/core/hle/service/glue/notif.h index 7ae20ba6f8..ef2522fdfb 100644 --- a/src/core/hle/service/glue/notif.h +++ b/src/core/hle/service/glue/notif.h @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2021 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/glue/time/alarm_worker.h b/src/core/hle/service/glue/time/alarm_worker.h index c8882fed88..131d012a6a 100644 --- a/src/core/hle/service/glue/time/alarm_worker.h +++ b/src/core/hle/service/glue/time/alarm_worker.h @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/glue/time/file_timestamp_worker.cpp b/src/core/hle/service/glue/time/file_timestamp_worker.cpp index 60bd688e72..048ff174c9 100644 --- a/src/core/hle/service/glue/time/file_timestamp_worker.cpp +++ b/src/core/hle/service/glue/time/file_timestamp_worker.cpp @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/glue/time/file_timestamp_worker.h b/src/core/hle/service/glue/time/file_timestamp_worker.h index 58f74e7d29..5f8b9b0499 100644 --- a/src/core/hle/service/glue/time/file_timestamp_worker.h +++ b/src/core/hle/service/glue/time/file_timestamp_worker.h @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/glue/time/manager.cpp b/src/core/hle/service/glue/time/manager.cpp index 0b3312904e..0da790e1c8 100644 --- a/src/core/hle/service/glue/time/manager.cpp +++ b/src/core/hle/service/glue/time/manager.cpp @@ -1,4 +1,4 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project +// SPDX-FileCopyrightText: Copyright 2025 Eden Emulator Project // SPDX-License-Identifier: GPL-3.0-or-later // SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project diff --git a/src/core/hle/service/glue/time/manager.h b/src/core/hle/service/glue/time/manager.h index 5a86585754..87e6a21fd5 100644 --- a/src/core/hle/service/glue/time/manager.h +++ b/src/core/hle/service/glue/time/manager.h @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/glue/time/pm_state_change_handler.cpp b/src/core/hle/service/glue/time/pm_state_change_handler.cpp index 0bc37f75da..7470fb2259 100644 --- a/src/core/hle/service/glue/time/pm_state_change_handler.cpp +++ b/src/core/hle/service/glue/time/pm_state_change_handler.cpp @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/glue/time/pm_state_change_handler.h b/src/core/hle/service/glue/time/pm_state_change_handler.h index bf99fa8a14..27d9f78726 100644 --- a/src/core/hle/service/glue/time/pm_state_change_handler.h +++ b/src/core/hle/service/glue/time/pm_state_change_handler.h @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/glue/time/standard_steady_clock_resource.cpp b/src/core/hle/service/glue/time/standard_steady_clock_resource.cpp index e191405567..5ebaa33e00 100644 --- a/src/core/hle/service/glue/time/standard_steady_clock_resource.cpp +++ b/src/core/hle/service/glue/time/standard_steady_clock_resource.cpp @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/glue/time/standard_steady_clock_resource.h b/src/core/hle/service/glue/time/standard_steady_clock_resource.h index b5168cb837..978d6b63b8 100644 --- a/src/core/hle/service/glue/time/standard_steady_clock_resource.h +++ b/src/core/hle/service/glue/time/standard_steady_clock_resource.h @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/glue/time/static.cpp b/src/core/hle/service/glue/time/static.cpp index beccf6ce43..d8672b7248 100644 --- a/src/core/hle/service/glue/time/static.cpp +++ b/src/core/hle/service/glue/time/static.cpp @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/glue/time/static.h b/src/core/hle/service/glue/time/static.h index a52b84bf31..7bb0e0b36e 100644 --- a/src/core/hle/service/glue/time/static.h +++ b/src/core/hle/service/glue/time/static.h @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/glue/time/time_zone_binary.cpp b/src/core/hle/service/glue/time/time_zone_binary.cpp index eadad551e5..3cc1a62afd 100644 --- a/src/core/hle/service/glue/time/time_zone_binary.cpp +++ b/src/core/hle/service/glue/time/time_zone_binary.cpp @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/glue/time/time_zone_binary.h b/src/core/hle/service/glue/time/time_zone_binary.h index 012b933573..135da631f2 100644 --- a/src/core/hle/service/glue/time/time_zone_binary.h +++ b/src/core/hle/service/glue/time/time_zone_binary.h @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/glue/time/worker.h b/src/core/hle/service/glue/time/worker.h index f4be2ff367..69904e6748 100644 --- a/src/core/hle/service/glue/time/worker.h +++ b/src/core/hle/service/glue/time/worker.h @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/grc/grc.cpp b/src/core/hle/service/grc/grc.cpp index e8e901662d..b3d39a6294 100644 --- a/src/core/hle/service/grc/grc.cpp +++ b/src/core/hle/service/grc/grc.cpp @@ -46,8 +46,8 @@ public: void LoopProcess(Core::System& system) { auto server_manager = std::make_unique(system); - server_manager->RegisterNamedService("grc:c", std::make_shared(system), 4); - server_manager->RegisterNamedService("grc:d", std::make_shared(system), 4); + server_manager->RegisterNamedService("grc:c", std::make_shared(system)); + server_manager->RegisterNamedService("grc:d", std::make_shared(system)); ServerManager::RunServer(std::move(server_manager)); } diff --git a/src/core/hle/service/grc/grc.h b/src/core/hle/service/grc/grc.h index 4c2b45057d..a3f8a5b90e 100644 --- a/src/core/hle/service/grc/grc.h +++ b/src/core/hle/service/grc/grc.h @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/hid/active_vibration_device_list.h b/src/core/hle/service/hid/active_vibration_device_list.h index f155eaf839..beaa44d97a 100644 --- a/src/core/hle/service/hid/active_vibration_device_list.h +++ b/src/core/hle/service/hid/active_vibration_device_list.h @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2024 yuzu Emulator Project // SPDX-License-Identifier: GPL-3.0-or-later diff --git a/src/core/hle/service/hid/applet_resource.h b/src/core/hle/service/hid/applet_resource.h index 40c3852baa..d1e7db9b1e 100644 --- a/src/core/hle/service/hid/applet_resource.h +++ b/src/core/hle/service/hid/applet_resource.h @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2024 yuzu Emulator Project // SPDX-License-Identifier: GPL-3.0-or-later diff --git a/src/core/hle/service/hid/hid.h b/src/core/hle/service/hid/hid.h index bf8cd44481..ec5463f4e2 100644 --- a/src/core/hle/service/hid/hid.h +++ b/src/core/hle/service/hid/hid.h @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/hid/hid_debug_server.cpp b/src/core/hle/service/hid/hid_debug_server.cpp index 42428a9ff9..43fe0f3a19 100644 --- a/src/core/hle/service/hid/hid_debug_server.cpp +++ b/src/core/hle/service/hid/hid_debug_server.cpp @@ -1,4 +1,4 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project +// SPDX-FileCopyrightText: Copyright 2025 Eden Emulator Project // SPDX-License-Identifier: GPL-3.0-or-later // SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project diff --git a/src/core/hle/service/hid/hid_debug_server.h b/src/core/hle/service/hid/hid_debug_server.h index f48f0205ed..3a483f07e5 100644 --- a/src/core/hle/service/hid/hid_debug_server.h +++ b/src/core/hle/service/hid/hid_debug_server.h @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project // SPDX-License-Identifier: GPL-3.0-or-later diff --git a/src/core/hle/service/hid/hid_system_server.cpp b/src/core/hle/service/hid/hid_system_server.cpp index e544adf03c..f3c01b5d89 100644 --- a/src/core/hle/service/hid/hid_system_server.cpp +++ b/src/core/hle/service/hid/hid_system_server.cpp @@ -121,7 +121,7 @@ IHidSystemServer::IHidSystemServer(Core::System& system_, std::shared_ptr data; diff --git a/src/core/hle/service/hid/hid_system_server.h b/src/core/hle/service/hid/hid_system_server.h index 150b697305..1a4f244d72 100644 --- a/src/core/hle/service/hid/hid_system_server.h +++ b/src/core/hle/service/hid/hid_system_server.h @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project // SPDX-License-Identifier: GPL-3.0-or-later diff --git a/src/core/hle/service/hid/hidbus.h b/src/core/hle/service/hid/hidbus.h index 19dd894ed3..af4d956673 100644 --- a/src/core/hle/service/hid/hidbus.h +++ b/src/core/hle/service/hid/hidbus.h @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2021 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/hid/irs.h b/src/core/hle/service/hid/irs.h index 2ca34b9106..58dfee6c36 100644 --- a/src/core/hle/service/hid/irs.h +++ b/src/core/hle/service/hid/irs.h @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/hid/xcd.cpp b/src/core/hle/service/hid/xcd.cpp index 2e41cbd3da..75cc266ea9 100644 --- a/src/core/hle/service/hid/xcd.cpp +++ b/src/core/hle/service/hid/xcd.cpp @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/hid/xcd.h b/src/core/hle/service/hid/xcd.h index 9000110a9a..fe0b91b919 100644 --- a/src/core/hle/service/hid/xcd.h +++ b/src/core/hle/service/hid/xcd.h @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/ipc_helpers.h b/src/core/hle/service/ipc_helpers.h index a266b1a05c..67eef7a087 100644 --- a/src/core/hle/service/ipc_helpers.h +++ b/src/core/hle/service/ipc_helpers.h @@ -22,7 +22,6 @@ namespace IPC { -constexpr Result ResultNotSupported{ErrorModule::HIPC, 1}; constexpr Result ResultSessionClosed{ErrorModule::HIPC, 301}; struct ResponseBuilder { diff --git a/src/core/hle/service/jit/jit.h b/src/core/hle/service/jit/jit.h index a9ebf146ec..19014c75a4 100644 --- a/src/core/hle/service/jit/jit.h +++ b/src/core/hle/service/jit/jit.h @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2022 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/jit/jit_context.cpp b/src/core/hle/service/jit/jit_context.cpp index e1e8eeadbe..36bf5d6649 100644 --- a/src/core/hle/service/jit/jit_context.cpp +++ b/src/core/hle/service/jit/jit_context.cpp @@ -71,14 +71,17 @@ public: void InstructionSynchronizationBarrierRaised() override { last_code_addr = u64(-1); //reset back, force refetch } - u64 MemoryRead(u64 vaddr, size_t size) override { - switch (size) { - case sizeof(u64): return ReadMemory(vaddr); - case sizeof(u32): return ReadMemory(vaddr); - case sizeof(u16): return ReadMemory(vaddr); - case sizeof(u8): return ReadMemory(vaddr); - default: UNREACHABLE(); - } + u8 MemoryRead8(u64 vaddr) override { + return ReadMemory(vaddr); + } + u16 MemoryRead16(u64 vaddr) override { + return ReadMemory(vaddr); + } + u32 MemoryRead32(u64 vaddr) override { + return ReadMemory(vaddr); + } + u64 MemoryRead64(u64 vaddr) override { + return ReadMemory(vaddr); } u128 MemoryRead128(u64 vaddr) override { return ReadMemory(vaddr); @@ -86,19 +89,22 @@ public: std::string MemoryReadCString(u64 vaddr) { std::string result{}; u8 next; - while ((next = u8(MemoryRead(vaddr++, sizeof(u8)))) != 0) + while ((next = MemoryRead8(vaddr++)) != 0) result += char(next); return result; } - void MemoryWrite(u64 vaddr, u64 value, size_t size) override { - switch (size) { - case sizeof(u64): WriteMemory(vaddr, u64(value)); break; - case sizeof(u32): WriteMemory(vaddr, u32(value)); break; - case sizeof(u16): WriteMemory(vaddr, u16(value)); break; - case sizeof(u8): WriteMemory(vaddr, u8(value)); break; - default: UNREACHABLE(); - } + void MemoryWrite8(u64 vaddr, u8 value) override { + WriteMemory(vaddr, value); + } + void MemoryWrite16(u64 vaddr, u16 value) override { + WriteMemory(vaddr, value); + } + void MemoryWrite32(u64 vaddr, u32 value) override { + WriteMemory(vaddr, value); + } + void MemoryWrite64(u64 vaddr, u64 value) override { + WriteMemory(vaddr, value); } void MemoryWrite128(u64 vaddr, u128 value) override { WriteMemory(vaddr, value); @@ -187,14 +193,14 @@ public: // The loaded NRO file has ELF relocations that must be processed before it can run. // Normally this would be processed by RTLD, but in HLE context, we don't have // the linker available, so we have to do it ourselves. - const VAddr mod_offset{callbacks->MemoryRead(4, sizeof(u32))}; - if (callbacks->MemoryRead(mod_offset, sizeof(u32)) != Common::MakeMagic('M', 'O', 'D', '0')) + const VAddr mod_offset{callbacks->MemoryRead32(4)}; + if (callbacks->MemoryRead32(mod_offset) != Common::MakeMagic('M', 'O', 'D', '0')) return false; // For more info about dynamic entries, see the ELF ABI specification: // https://refspecs.linuxbase.org/elf/gabi4+/ch5.dynamic.html // https://refspecs.linuxbase.org/elf/gabi4+/ch4.reloc.html - VAddr dynamic_offset{mod_offset + callbacks->MemoryRead(mod_offset + 4, sizeof(u32))}; + VAddr dynamic_offset{mod_offset + callbacks->MemoryRead32(mod_offset + 4)}; VAddr rela_dyn = 0, relr_dyn = 0; size_t num_rela = 0, num_relr = 0; while (true) { @@ -216,8 +222,8 @@ public: for (size_t i = 0; i < num_rela; i++) { const auto rela{callbacks->ReadMemory(rela_dyn + i * sizeof(Elf64_Rela))}; if (Elf64RelType(rela.r_info) == ElfAArch64Relative) { - const VAddr contents{callbacks->MemoryRead(rela.r_offset, sizeof(u64))}; - callbacks->MemoryWrite(rela.r_offset, contents + rela.r_addend, sizeof(u64)); + const VAddr contents{callbacks->MemoryRead64(rela.r_offset)}; + callbacks->MemoryWrite64(rela.r_offset, contents + rela.r_addend); } } @@ -225,7 +231,7 @@ public: for (size_t i = 0; i < num_relr; i++) { const auto relr = callbacks->ReadMemory(relr_dyn + i * sizeof(Elf64_Relr)); const auto incr = [&](VAddr where) { - callbacks->MemoryWrite(where, callbacks->MemoryRead(where, sizeof(u64)) + relocbase, sizeof(u64)); + callbacks->MemoryWrite64(where, callbacks->MemoryRead64(where) + relocbase); }; if ((relr & 1) == 0) { // where pointer @@ -288,7 +294,7 @@ public: if (argument_stack.size() > 8) { const VAddr new_sp = Common::AlignDown(top_of_stack - (argument_stack.size() - 8) * sizeof(u64), STACK_ALIGN); for (size_t i = 8; i < argument_stack.size(); i++) - callbacks->MemoryWrite(new_sp + (i - 8) * sizeof(u64), argument_stack[i], sizeof(u64)); + callbacks->MemoryWrite64(new_sp + (i - 8) * sizeof(u64), argument_stack[i]); jit->SetSP(new_sp); } // Reset the call state for the next invocation @@ -379,17 +385,17 @@ void DynarmicCallbacks64::CallSVC(u32 swi) { if (dest < src) { for (size_t i = 0; i < n; i++) - MemoryWrite(dest + i, u8(MemoryRead(src + i, sizeof(u8))), sizeof(u8)); + MemoryWrite8(dest + i, MemoryRead8(src + i)); } else { for (size_t i = n; i > 0; i--) - MemoryWrite(dest + i - 1, u8(MemoryRead(src + i - 1, sizeof(u8))), sizeof(u8)); + MemoryWrite8(dest + i - 1, MemoryRead8(src + i - 1)); } } else if (pc == parent.helpers[size_t(HelperFn::Memset)]) { const VAddr dest{parent.jit->GetRegister(0)}; const u64 c{parent.jit->GetRegister(1)}; const size_t n{parent.jit->GetRegister(2)}; for (size_t i = 0; i < n; i++) - MemoryWrite(dest + i, u8(c), sizeof(u8)); + MemoryWrite8(dest + i, u8(c)); } else if (pc == parent.helpers[size_t(HelperFn::Resolve)]) { // X0 contains a char* for a symbol to resolve const auto name{MemoryReadCString(parent.jit->GetRegister(0))}; @@ -416,7 +422,7 @@ void DynarmicCallbacks64::CallSVC(u32 swi) { } void DynarmicCallbacks64::ExceptionRaised(u64 pc, Dynarmic::A64::Exception exception) { - auto const inst = MemoryRead(pc, sizeof(u32)); + auto const inst = MemoryRead32(pc); LOG_CRITICAL(Service_JIT, "{} PC @ {:08x}, data = {:08x}", exception, pc, inst); parent.jit->HaltExecution(); } diff --git a/src/core/hle/service/jit/jit_context.h b/src/core/hle/service/jit/jit_context.h index aa9a2d3589..f17fc5e244 100644 --- a/src/core/hle/service/jit/jit_context.h +++ b/src/core/hle/service/jit/jit_context.h @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2022 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/lbl/lbl.h b/src/core/hle/service/lbl/lbl.h index e2cd1b3980..e47759c01c 100644 --- a/src/core/hle/service/lbl/lbl.h +++ b/src/core/hle/service/lbl/lbl.h @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/ldn/lan_discovery.cpp b/src/core/hle/service/ldn/lan_discovery.cpp index 90adcdcee4..f37dbe492f 100644 --- a/src/core/hle/service/ldn/lan_discovery.cpp +++ b/src/core/hle/service/ldn/lan_discovery.cpp @@ -1,6 +1,5 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project +// SPDX-FileCopyrightText: Copyright 2025 Eden Emulator Project // SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2022 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/ldn/lan_discovery.h b/src/core/hle/service/ldn/lan_discovery.h index f1f3c4bece..5d0642bd0f 100644 --- a/src/core/hle/service/ldn/lan_discovery.h +++ b/src/core/hle/service/ldn/lan_discovery.h @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2022 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/ldn/ldn.h b/src/core/hle/service/ldn/ldn.h index 76c7f4f439..dae037fa8f 100644 --- a/src/core/hle/service/ldn/ldn.h +++ b/src/core/hle/service/ldn/ldn.h @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/ldn/ldn_results.h b/src/core/hle/service/ldn/ldn_results.h index cf6c22b54b..f340bda422 100644 --- a/src/core/hle/service/ldn/ldn_results.h +++ b/src/core/hle/service/ldn/ldn_results.h @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2022 yuzu Emulator Project // SPDX-License-Identifier: GPL-3.0-or-later diff --git a/src/core/hle/service/ldn/monitor_service.cpp b/src/core/hle/service/ldn/monitor_service.cpp index 6cb7180b15..ea6ac4d5dd 100644 --- a/src/core/hle/service/ldn/monitor_service.cpp +++ b/src/core/hle/service/ldn/monitor_service.cpp @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2024 yuzu Emulator Project // SPDX-License-Identifier: GPL-3.0-or-later diff --git a/src/core/hle/service/ldn/monitor_service.h b/src/core/hle/service/ldn/monitor_service.h index 2d4a69c311..e663145b4f 100644 --- a/src/core/hle/service/ldn/monitor_service.h +++ b/src/core/hle/service/ldn/monitor_service.h @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2024 yuzu Emulator Project // SPDX-License-Identifier: GPL-3.0-or-later diff --git a/src/core/hle/service/ldn/sf_monitor_service.cpp b/src/core/hle/service/ldn/sf_monitor_service.cpp index 5ac663b4c2..9e6736ff2c 100644 --- a/src/core/hle/service/ldn/sf_monitor_service.cpp +++ b/src/core/hle/service/ldn/sf_monitor_service.cpp @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2024 yuzu Emulator Project // SPDX-License-Identifier: GPL-3.0-or-later diff --git a/src/core/hle/service/ldn/sf_monitor_service.h b/src/core/hle/service/ldn/sf_monitor_service.h index a596093f1b..d021152010 100644 --- a/src/core/hle/service/ldn/sf_monitor_service.h +++ b/src/core/hle/service/ldn/sf_monitor_service.h @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2024 yuzu Emulator Project // SPDX-License-Identifier: GPL-3.0-or-later diff --git a/src/core/hle/service/ldn/sf_service.cpp b/src/core/hle/service/ldn/sf_service.cpp index b77672a1b6..61cabe219a 100644 --- a/src/core/hle/service/ldn/sf_service.cpp +++ b/src/core/hle/service/ldn/sf_service.cpp @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2024 yuzu Emulator Project // SPDX-License-Identifier: GPL-3.0-or-later diff --git a/src/core/hle/service/ldn/sf_service.h b/src/core/hle/service/ldn/sf_service.h index ca7a81cf29..05534b5677 100644 --- a/src/core/hle/service/ldn/sf_service.h +++ b/src/core/hle/service/ldn/sf_service.h @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2024 yuzu Emulator Project // SPDX-License-Identifier: GPL-3.0-or-later diff --git a/src/core/hle/service/ldn/sf_service_monitor.cpp b/src/core/hle/service/ldn/sf_service_monitor.cpp index 95a9bcaf71..9a1cde6881 100644 --- a/src/core/hle/service/ldn/sf_service_monitor.cpp +++ b/src/core/hle/service/ldn/sf_service_monitor.cpp @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2024 yuzu Emulator Project // SPDX-License-Identifier: GPL-3.0-or-later diff --git a/src/core/hle/service/ldn/sf_service_monitor.h b/src/core/hle/service/ldn/sf_service_monitor.h index 87854b868d..924cc17594 100644 --- a/src/core/hle/service/ldn/sf_service_monitor.h +++ b/src/core/hle/service/ldn/sf_service_monitor.h @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2024 yuzu Emulator Project // SPDX-License-Identifier: GPL-3.0-or-later diff --git a/src/core/hle/service/ldn/system_local_communication_service.cpp b/src/core/hle/service/ldn/system_local_communication_service.cpp index 57a1c6a6c2..7b52223cdc 100644 --- a/src/core/hle/service/ldn/system_local_communication_service.cpp +++ b/src/core/hle/service/ldn/system_local_communication_service.cpp @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2024 yuzu Emulator Project // SPDX-License-Identifier: GPL-3.0-or-later diff --git a/src/core/hle/service/ldn/system_local_communication_service.h b/src/core/hle/service/ldn/system_local_communication_service.h index fa0e45bde4..a02b097ea7 100644 --- a/src/core/hle/service/ldn/system_local_communication_service.h +++ b/src/core/hle/service/ldn/system_local_communication_service.h @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2024 yuzu Emulator Project // SPDX-License-Identifier: GPL-3.0-or-later diff --git a/src/core/hle/service/ldn/user_local_communication_service.cpp b/src/core/hle/service/ldn/user_local_communication_service.cpp index 7011bd52f2..572aea6314 100644 --- a/src/core/hle/service/ldn/user_local_communication_service.cpp +++ b/src/core/hle/service/ldn/user_local_communication_service.cpp @@ -1,6 +1,5 @@ // SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project // SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2024 yuzu Emulator Project // SPDX-License-Identifier: GPL-3.0-or-later diff --git a/src/core/hle/service/ldn/user_local_communication_service.h b/src/core/hle/service/ldn/user_local_communication_service.h index 720d5e9bf4..1e725ed531 100644 --- a/src/core/hle/service/ldn/user_local_communication_service.h +++ b/src/core/hle/service/ldn/user_local_communication_service.h @@ -1,7 +1,7 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project +// SPDX-FileCopyrightText: Copyright 2024 yuzu Emulator Project // SPDX-License-Identifier: GPL-3.0-or-later -// SPDX-FileCopyrightText: Copyright 2024 yuzu Emulator Project +// SPDX-FileCopyrightText: Copyright 2025 Eden Emulator Project // SPDX-License-Identifier: GPL-3.0-or-later #pragma once diff --git a/src/core/hle/service/ldr/ldr.cpp b/src/core/hle/service/ldr/ldr.cpp index db4d51b49d..ba58b3a093 100644 --- a/src/core/hle/service/ldr/ldr.cpp +++ b/src/core/hle/service/ldr/ldr.cpp @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later @@ -59,9 +56,9 @@ public: void LoopProcess(Core::System& system) { auto server_manager = std::make_unique(system); - server_manager->RegisterNamedService("ldr:dmnt", std::make_shared(system), 3); - server_manager->RegisterNamedService("ldr:pm", std::make_shared(system), 1); - server_manager->RegisterNamedService("ldr:shel", std::make_shared(system), 3); + server_manager->RegisterNamedService("ldr:dmnt", std::make_shared(system)); + server_manager->RegisterNamedService("ldr:pm", std::make_shared(system)); + server_manager->RegisterNamedService("ldr:shel", std::make_shared(system)); ServerManager::RunServer(std::move(server_manager)); } diff --git a/src/core/hle/service/ldr/ldr.h b/src/core/hle/service/ldr/ldr.h index 12a6b1f507..c9281dbfb2 100644 --- a/src/core/hle/service/ldr/ldr.h +++ b/src/core/hle/service/ldr/ldr.h @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/lm/lm.h b/src/core/hle/service/lm/lm.h index 890344f44a..0d7c39cbc3 100644 --- a/src/core/hle/service/lm/lm.h +++ b/src/core/hle/service/lm/lm.h @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/mig/mig.cpp b/src/core/hle/service/mig/mig.cpp index 7412674417..edc96506c0 100644 --- a/src/core/hle/service/mig/mig.cpp +++ b/src/core/hle/service/mig/mig.cpp @@ -1,4 +1,4 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project +// SPDX-FileCopyrightText: Copyright 2025 Eden Emulator Project // SPDX-License-Identifier: GPL-3.0-or-later // SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project diff --git a/src/core/hle/service/mig/mig.h b/src/core/hle/service/mig/mig.h index 39e92a59eb..c8ed732a5b 100644 --- a/src/core/hle/service/mig/mig.h +++ b/src/core/hle/service/mig/mig.h @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/mii/mii.h b/src/core/hle/service/mii/mii.h index 9ec6f248e5..8683ac1a52 100644 --- a/src/core/hle/service/mii/mii.h +++ b/src/core/hle/service/mii/mii.h @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/mii/mii_database.cpp b/src/core/hle/service/mii/mii_database.cpp index 6dd9773b2b..d1f4e1f198 100644 --- a/src/core/hle/service/mii/mii_database.cpp +++ b/src/core/hle/service/mii/mii_database.cpp @@ -1,4 +1,4 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project +// SPDX-FileCopyrightText: Copyright 2025 Eden Emulator Project // SPDX-License-Identifier: GPL-3.0-or-later // SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project diff --git a/src/core/hle/service/mii/mii_database.h b/src/core/hle/service/mii/mii_database.h index 6d28696206..3bd240f93b 100644 --- a/src/core/hle/service/mii/mii_database.h +++ b/src/core/hle/service/mii/mii_database.h @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/mii/mii_database_manager.h b/src/core/hle/service/mii/mii_database_manager.h index 52ec3a91cc..52c32be82c 100644 --- a/src/core/hle/service/mii/mii_database_manager.h +++ b/src/core/hle/service/mii/mii_database_manager.h @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/mii/mii_manager.h b/src/core/hle/service/mii/mii_manager.h index 9c546d2cbf..48d8e8bb7d 100644 --- a/src/core/hle/service/mii/mii_manager.h +++ b/src/core/hle/service/mii/mii_manager.h @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2020 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/mii/mii_result.h b/src/core/hle/service/mii/mii_result.h index f4964133e7..e2c36e556d 100644 --- a/src/core/hle/service/mii/mii_result.h +++ b/src/core/hle/service/mii/mii_result.h @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/mii/mii_types.h b/src/core/hle/service/mii/mii_types.h index 6afa07ef43..08c6029dff 100644 --- a/src/core/hle/service/mii/mii_types.h +++ b/src/core/hle/service/mii/mii_types.h @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/mii/types/char_info.cpp b/src/core/hle/service/mii/types/char_info.cpp index b5f4492994..e90124af4c 100644 --- a/src/core/hle/service/mii/types/char_info.cpp +++ b/src/core/hle/service/mii/types/char_info.cpp @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/mii/types/char_info.h b/src/core/hle/service/mii/types/char_info.h index e9c41435e1..d0c457fd56 100644 --- a/src/core/hle/service/mii/types/char_info.h +++ b/src/core/hle/service/mii/types/char_info.h @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/mii/types/core_data.cpp b/src/core/hle/service/mii/types/core_data.cpp index 7f2acea3ef..ba1da76bae 100644 --- a/src/core/hle/service/mii/types/core_data.cpp +++ b/src/core/hle/service/mii/types/core_data.cpp @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/mii/types/core_data.h b/src/core/hle/service/mii/types/core_data.h index 48a1ba5c73..8897e4f3b3 100644 --- a/src/core/hle/service/mii/types/core_data.h +++ b/src/core/hle/service/mii/types/core_data.h @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/mii/types/raw_data.h b/src/core/hle/service/mii/types/raw_data.h index f8182847ec..9a4cfa738e 100644 --- a/src/core/hle/service/mii/types/raw_data.h +++ b/src/core/hle/service/mii/types/raw_data.h @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2020 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/mii/types/store_data.cpp b/src/core/hle/service/mii/types/store_data.cpp index fcef3850f2..127221fdb6 100644 --- a/src/core/hle/service/mii/types/store_data.cpp +++ b/src/core/hle/service/mii/types/store_data.cpp @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/mii/types/store_data.h b/src/core/hle/service/mii/types/store_data.h index 5d5269a15b..ed5dfb9494 100644 --- a/src/core/hle/service/mii/types/store_data.h +++ b/src/core/hle/service/mii/types/store_data.h @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/mii/types/ver3_store_data.cpp b/src/core/hle/service/mii/types/ver3_store_data.cpp index 840e0f35b3..c27646fcfd 100644 --- a/src/core/hle/service/mii/types/ver3_store_data.cpp +++ b/src/core/hle/service/mii/types/ver3_store_data.cpp @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/mii/types/ver3_store_data.h b/src/core/hle/service/mii/types/ver3_store_data.h index f2cb395136..47907bf7d7 100644 --- a/src/core/hle/service/mii/types/ver3_store_data.h +++ b/src/core/hle/service/mii/types/ver3_store_data.h @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2020 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/mm/mm_u.h b/src/core/hle/service/mm/mm_u.h index ab0e76f40a..43117c9b1c 100644 --- a/src/core/hle/service/mm/mm_u.h +++ b/src/core/hle/service/mm/mm_u.h @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/ncm/ncm.h b/src/core/hle/service/ncm/ncm.h index 1d8bc7a9ea..b78efdcd79 100644 --- a/src/core/hle/service/ncm/ncm.h +++ b/src/core/hle/service/ncm/ncm.h @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/nfc/common/device.h b/src/core/hle/service/nfc/common/device.h index 98063bbc29..d59202d18f 100644 --- a/src/core/hle/service/nfc/common/device.h +++ b/src/core/hle/service/nfc/common/device.h @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2022 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/nfc/common/device_manager.h b/src/core/hle/service/nfc/common/device_manager.h index 116ae8cb7e..6c0e6b255e 100644 --- a/src/core/hle/service/nfc/common/device_manager.h +++ b/src/core/hle/service/nfc/common/device_manager.h @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project // SPDX-License-Identifier: GPL-3.0-or-later diff --git a/src/core/hle/service/nfc/mifare_result.h b/src/core/hle/service/nfc/mifare_result.h index 399f01313e..16a9171e60 100644 --- a/src/core/hle/service/nfc/mifare_result.h +++ b/src/core/hle/service/nfc/mifare_result.h @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project // SPDX-License-Identifier: GPL-3.0-or-later diff --git a/src/core/hle/service/nfc/mifare_types.h b/src/core/hle/service/nfc/mifare_types.h index 237f60f0de..4679373994 100644 --- a/src/core/hle/service/nfc/mifare_types.h +++ b/src/core/hle/service/nfc/mifare_types.h @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project // SPDX-License-Identifier: GPL-3.0-or-later diff --git a/src/core/hle/service/nfc/nfc.h b/src/core/hle/service/nfc/nfc.h index bfda30d6f1..d15955b755 100644 --- a/src/core/hle/service/nfc/nfc.h +++ b/src/core/hle/service/nfc/nfc.h @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/nfc/nfc_interface.h b/src/core/hle/service/nfc/nfc_interface.h index a1e0d8d9ca..5cc0d8ec04 100644 --- a/src/core/hle/service/nfc/nfc_interface.h +++ b/src/core/hle/service/nfc/nfc_interface.h @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2022 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/nfc/nfc_result.h b/src/core/hle/service/nfc/nfc_result.h index aab83c326c..464b5fd69a 100644 --- a/src/core/hle/service/nfc/nfc_result.h +++ b/src/core/hle/service/nfc/nfc_result.h @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project // SPDX-License-Identifier: GPL-3.0-or-later diff --git a/src/core/hle/service/nfc/nfc_types.h b/src/core/hle/service/nfc/nfc_types.h index 6774a9b4d6..6d44014ea1 100644 --- a/src/core/hle/service/nfc/nfc_types.h +++ b/src/core/hle/service/nfc/nfc_types.h @@ -1,4 +1,4 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project +// SPDX-FileCopyrightText: Copyright 2025 Eden Emulator Project // SPDX-License-Identifier: GPL-3.0-or-later // SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project diff --git a/src/core/hle/service/nfp/nfp.cpp b/src/core/hle/service/nfp/nfp.cpp index e0c24679ab..b9922ce024 100644 --- a/src/core/hle/service/nfp/nfp.cpp +++ b/src/core/hle/service/nfp/nfp.cpp @@ -42,7 +42,6 @@ public: {22, &IUser::GetApplicationAreaSize, "GetApplicationAreaSize"}, {23, &IUser::AttachAvailabilityChangeEvent, "AttachAvailabilityChangeEvent"}, {24, &IUser::RecreateApplicationArea, "RecreateApplicationArea"}, - {25, &IUser::StartDetection, "StartDetectionWithFilter"}, }; // clang-format on @@ -75,7 +74,6 @@ public: {20, &ISystem::GetDeviceState, "GetDeviceState"}, {21, &ISystem::GetNpadId, "GetNpadId"}, {23, &ISystem::AttachAvailabilityChangeEvent, "AttachAvailabilityChangeEvent"}, - {25, &ISystem::StartDetection, "StartDetectionWithFilter"}, {100, &ISystem::Format, "Format"}, {101, &ISystem::GetAdminInfo, "GetAdminInfo"}, {102, &ISystem::GetRegisterInfoPrivate, "GetRegisterInfoPrivate"}, @@ -120,7 +118,6 @@ public: {22, &IDebug::GetApplicationAreaSize, "GetApplicationAreaSize"}, {23, &IDebug::AttachAvailabilityChangeEvent, "AttachAvailabilityChangeEvent"}, {24, &IDebug::RecreateApplicationArea, "RecreateApplicationArea"}, - {25, &IDebug::StartDetection, "StartDetectionWithFilter"}, {100, &IDebug::Format, "Format"}, {101, &IDebug::GetAdminInfo, "GetAdminInfo"}, {102, &IDebug::GetRegisterInfoPrivate, "GetRegisterInfoPrivate"}, diff --git a/src/core/hle/service/nfp/nfp.h b/src/core/hle/service/nfp/nfp.h index e7af7ae39d..a5aac710b5 100644 --- a/src/core/hle/service/nfp/nfp.h +++ b/src/core/hle/service/nfp/nfp.h @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/nfp/nfp_interface.h b/src/core/hle/service/nfp/nfp_interface.h index 531db84652..fa985b068e 100644 --- a/src/core/hle/service/nfp/nfp_interface.h +++ b/src/core/hle/service/nfp/nfp_interface.h @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/nfp/nfp_result.h b/src/core/hle/service/nfp/nfp_result.h index 528b5417fa..6185338438 100644 --- a/src/core/hle/service/nfp/nfp_result.h +++ b/src/core/hle/service/nfp/nfp_result.h @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2022 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/nfp/nfp_types.h b/src/core/hle/service/nfp/nfp_types.h index 108548ea46..8330134d18 100644 --- a/src/core/hle/service/nfp/nfp_types.h +++ b/src/core/hle/service/nfp/nfp_types.h @@ -1,4 +1,4 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project +// SPDX-FileCopyrightText: Copyright 2025 Eden Emulator Project // SPDX-License-Identifier: GPL-3.0-or-later // SPDX-FileCopyrightText: Copyright 2022 yuzu Emulator Project diff --git a/src/core/hle/service/ngc/ngc.cpp b/src/core/hle/service/ngc/ngc.cpp index e79108a1eb..0af4a7bd0e 100644 --- a/src/core/hle/service/ngc/ngc.cpp +++ b/src/core/hle/service/ngc/ngc.cpp @@ -6,16 +6,10 @@ #include "common/string_util.h" #include "core/core.h" -#include "core/hle/kernel/k_client_session.h" -#include "core/hle/result.h" -#include "core/hle/service/acc/profile_manager.h" -#include "core/hle/service/cmif_types.h" -#include "core/hle/service/cmif_serialization.h" #include "core/hle/service/ipc_helpers.h" #include "core/hle/service/ngc/ngc.h" #include "core/hle/service/server_manager.h" #include "core/hle/service/service.h" -#include "frontend_common/firmware_manager.h" namespace Service::NGC { @@ -172,123 +166,12 @@ public: } }; -struct SaveDataHandle { - u64 unk0; -}; -static_assert(sizeof(SaveDataHandle) == 0x08); - -class IUserShimScopedObject final : public ServiceFramework { -public: - explicit IUserShimScopedObject(Core::System& system_) : ServiceFramework(system_, "IUserShimScopedObject") { - // clang-format off - static const FunctionInfo functions[] = { - {450, nullptr, "InitializeForSaveData"}, - {451, nullptr, "FinalizeForSaveData"}, - {452, D<&IUserShimScopedObject::OpenSaveData>, "OpenSaveData"}, - {453, nullptr, "CloseSaveData"}, - {454, D<&IUserShimScopedObject::ReadSaveSlot>, "ReadSaveSlot"}, - {455, D<&IUserShimScopedObject::WriteSaveSlot>, "WriteSaveSlot"}, - {456, nullptr, "FlushSaveSlot"}, - {457, nullptr, "CommitSaveData"}, - }; - // clang-format on - RegisterHandlers(functions); - } - - Result OpenSaveData(Account::Uid unk0, Out unk1) { - LOG_WARNING(Service_NGC, "stubbed"); - R_THROW(IPC::ResultNotSupported); - } - - Result ReadSaveSlot(s32 offset, SaveDataHandle handle, OutBuffer out_data, Out out_size) { - LOG_WARNING(Service_NGC, "stubbed"); - R_THROW(IPC::ResultNotSupported); - } - - Result WriteSaveSlot(s32 offset, SaveDataHandle handle, InBuffer out_data) { - LOG_WARNING(Service_NGC, "stubbed"); - // to implement - R_SUCCEED(); - } -}; - -class IUserService final : public ServiceFramework { -public: - explicit IUserService(Core::System& system_) : ServiceFramework(system_, "stpl:u") { - // clang-format off - static const FunctionInfo functions[] = { - {0 , D<&IUserService::Cmd0>, "Cmd0"}, - }; - // clang-format on - RegisterHandlers(functions); - } - Result Cmd0(u32 unk0, OutInterface out_interface) { - LOG_WARNING(Service_NGC, "stubbed"); - *out_interface = std::make_shared(system); - R_SUCCEED(); - } -}; - -class ISystemShimScopedObject final : public ServiceFramework { -public: - explicit ISystemShimScopedObject(Core::System& system_) : ServiceFramework(system_, "ISystemShimScopedObject") { - // clang-format off - static const FunctionInfo functions[] = { - {106, nullptr, "Cmd106"}, - {107, nullptr, "Cmd107"}, - {108, D<&ISystemShimScopedObject::Cmd108>, "Cmd108"}, - {207, nullptr, "Cmd207"}, - {208, D<&ISystemShimScopedObject::Cmd208>, "Cmd208"}, - {209, nullptr, "Cmd209"}, - {210, nullptr, "Cmd210"}, - {211, nullptr, "Cmd211"}, - {212, nullptr, "Cmd212"}, - }; - // clang-format on - RegisterHandlers(functions); - } - - Result Cmd108() { - LOG_WARNING(Service_NGC, "stubbed"); - R_THROW(IPC::ResultNotSupported); - } - - Result Cmd208(Out> unk0) { - LOG_WARNING(Service_NGC, "stubbed"); - R_THROW(IPC::ResultNotSupported); - } -}; - -class ISystemService final : public ServiceFramework { -public: - explicit ISystemService(Core::System& system_) : ServiceFramework(system_, "stpl:sys") { - // clang-format off - static const FunctionInfo functions[] = { - {0 , D<&ISystemService::Cmd0>, "Cmd0"}, - }; - // clang-format on - RegisterHandlers(functions); - } - Result Cmd0(OutInterface out_interface) { - LOG_WARNING(Service_NGC, "stubbed"); - *out_interface = std::make_shared(system); - R_SUCCEED(); - } -}; - void LoopProcess(Core::System& system) { auto server_manager = std::make_unique(system); - server_manager->RegisterNamedService("ngct:u", std::make_shared(system), 4); - server_manager->RegisterNamedService("ngct:s", std::make_shared(system), 4); - server_manager->RegisterNamedService("ngc:u", std::make_shared(system), 4); - - // +23.0.0 - if (FirmwareManager::GetFirmwareVersion(system).first.major >= 23) { - server_manager->RegisterNamedService("stpl:u", std::make_shared(system), 4); - server_manager->RegisterNamedService("stpl:sys", std::make_shared(system), 4); - } - + server_manager->RegisterNamedService("ngct:u", std::make_shared(system)); + server_manager->RegisterNamedService("ngct:s", std::make_shared(system)); + server_manager->RegisterNamedService("ngc:u", std::make_shared(system)); ServerManager::RunServer(std::move(server_manager)); } diff --git a/src/core/hle/service/ngc/ngc.h b/src/core/hle/service/ngc/ngc.h index 7dc4a46577..823b1aa819 100644 --- a/src/core/hle/service/ngc/ngc.h +++ b/src/core/hle/service/ngc/ngc.h @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2021 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/nifm/nifm.cpp b/src/core/hle/service/nifm/nifm.cpp index efada9b807..898b9ecfb2 100644 --- a/src/core/hle/service/nifm/nifm.cpp +++ b/src/core/hle/service/nifm/nifm.cpp @@ -1144,9 +1144,12 @@ private: void LoopProcess(Core::System& system) { auto server_manager = std::make_unique(system); - server_manager->RegisterNamedService("nifm:a", std::make_shared("nifm:a", system), 2); - server_manager->RegisterNamedService("nifm:s", std::make_shared("nifm:s", system), 16); - server_manager->RegisterNamedService("nifm:u", std::make_shared("nifm:u", system), 5); + server_manager->RegisterNamedService("nifm:a", + std::make_shared("nifm:a", system)); + server_manager->RegisterNamedService("nifm:s", + std::make_shared("nifm:s", system)); + server_manager->RegisterNamedService("nifm:u", + std::make_shared("nifm:u", system)); ServerManager::RunServer(std::move(server_manager)); } diff --git a/src/core/hle/service/nifm/nifm.h b/src/core/hle/service/nifm/nifm.h index 44859e0c51..3b5a438c75 100644 --- a/src/core/hle/service/nifm/nifm.h +++ b/src/core/hle/service/nifm/nifm.h @@ -1,4 +1,4 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project +// SPDX-FileCopyrightText: Copyright 2025 Eden Emulator Project // SPDX-License-Identifier: GPL-3.0-or-later // SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator diff --git a/src/core/hle/service/nim/nim.h b/src/core/hle/service/nim/nim.h index 0fad2a71af..e7d599908d 100644 --- a/src/core/hle/service/nim/nim.h +++ b/src/core/hle/service/nim/nim.h @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/npns/npns.h b/src/core/hle/service/npns/npns.h index e54a91a213..0019fca763 100644 --- a/src/core/hle/service/npns/npns.h +++ b/src/core/hle/service/npns/npns.h @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/ns/account_proxy_interface.cpp b/src/core/hle/service/ns/account_proxy_interface.cpp index 2e3dcf928d..e5041af66b 100644 --- a/src/core/hle/service/ns/account_proxy_interface.cpp +++ b/src/core/hle/service/ns/account_proxy_interface.cpp @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2024 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/ns/account_proxy_interface.h b/src/core/hle/service/ns/account_proxy_interface.h index 14cec4ddbc..e944d2a75f 100644 --- a/src/core/hle/service/ns/account_proxy_interface.h +++ b/src/core/hle/service/ns/account_proxy_interface.h @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2024 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/ns/application_manager_interface.cpp b/src/core/hle/service/ns/application_manager_interface.cpp index 348649917e..c3b2aee8a8 100644 --- a/src/core/hle/service/ns/application_manager_interface.cpp +++ b/src/core/hle/service/ns/application_manager_interface.cpp @@ -228,9 +228,9 @@ IApplicationManagerInterface::IApplicationManagerInterface(Core::System& system_ {930, nullptr, "Unknown930"}, //20.0.0+ {931, nullptr, "Unknown931"}, //20.0.0+ {933, nullptr, "Unknown933"}, //20.0.0+ - {934, nullptr, "Unknown934"}, //21.0.0+ - {935, nullptr, "Unknown935"}, //21.0.0+ - {936, D<&IApplicationManagerInterface::Unknown936>, "Unknown936"}, //21.0.0+ + {934, nullptr, "Unknown934"}, //20.0.0+ + {935, nullptr, "Unknown935"}, //20.0.0+ + {936, nullptr, "Unknown936"}, //20.0.0+ {1000, nullptr, "RequestVerifyApplicationDeprecated"}, {1001, nullptr, "CorruptApplicationForDebug"}, {1002, nullptr, "RequestVerifyAddOnContentsRights"}, @@ -422,7 +422,7 @@ IApplicationManagerInterface::IApplicationManagerInterface(Core::System& system_ {4039, nullptr, "Unknown4039"}, //20.0.0+ {4040, nullptr, "Unknown4040"}, //20.0.0+ {4041, nullptr, "Unknown4041"}, //20.0.0+ - {4042, D<&IApplicationManagerInterface::Unknown4042>, "Unknown4042"}, //20.0.0+ + {4042, nullptr, "Unknown4042"}, //20.0.0+ {4043, nullptr, "Unknown4043"}, //20.0.0+ {4044, nullptr, "Unknown4044"}, //20.0.0+ {4045, nullptr, "Unknown4045"}, //20.0.0+ @@ -476,7 +476,6 @@ IApplicationManagerInterface::IApplicationManagerInterface(Core::System& system_ {4096, nullptr, "Unknown4096"}, //20.0.0+ {4097, nullptr, "Unknown4097"}, //20.0.0+ {4099, nullptr, "Unknown4099"}, //21.0.0+ - {4105, D<&IApplicationManagerInterface::Unknown4105>, "Unknown4105"}, //23.0.0+ {5000, nullptr, "Unknown5000"}, //18.0.0+ {5001, nullptr, "Unknown5001"}, //18.0.0+ {9999, nullptr, "GetApplicationCertificate"}, //10.0.0-10.2.0 @@ -639,12 +638,6 @@ Result IApplicationManagerInterface::IsGameCardApplicationRunning(Out out_ R_SUCCEED(); } -Result IApplicationManagerInterface::Unknown936(Out out_result) { - LOG_WARNING(Service_NS, "(STUBBED) called."); - *out_result = 0; - R_SUCCEED(); -} - Result IApplicationManagerInterface::IsAnyApplicationEntityInstalled( Out out_is_any_application_entity_installed) { LOG_WARNING(Service_NS, "(STUBBED) called"); @@ -868,25 +861,11 @@ Result IApplicationManagerInterface::Unknown4023(Out out_result) { R_SUCCEED(); } -Result IApplicationManagerInterface::Unknown4042(OutInterface out_interface, - OutCopyHandle out_event, - u64 arg1, u64 arg2) { - LOG_WARNING(Service_NS, "(STUBBED) called, arg1={:016X}, arg2={:016X}", arg1, arg2); - *out_event = unknown_event.GetHandle(); - *out_interface = std::make_shared(system, &unknown_event); - R_SUCCEED(); -} - Result IApplicationManagerInterface::Unknown4053() { LOG_WARNING(Service_NS, "(STUBBED) called."); R_SUCCEED(); } -Result IApplicationManagerInterface::Unknown4105() { - LOG_WARNING(Service_NS, "(STUBBED) called."); - R_SUCCEED(); -} - void IApplicationManagerInterface::PushApplicationRecord(HLERequestContext& ctx) { const auto record = ctx.ReadBuffer(); u64 application_id{}; diff --git a/src/core/hle/service/ns/application_manager_interface.h b/src/core/hle/service/ns/application_manager_interface.h index c4ca66f319..f09ccf7b81 100644 --- a/src/core/hle/service/ns/application_manager_interface.h +++ b/src/core/hle/service/ns/application_manager_interface.h @@ -7,7 +7,6 @@ #pragma once #include "core/hle/service/cmif_types.h" -#include "core/hle/service/ns/async_result.h" #include "core/hle/service/ns/language.h" #include "core/hle/service/ns/ns_types.h" #include "core/hle/service/os/event.h" @@ -35,7 +34,6 @@ public: Result GetGameCardMountFailureEvent(OutCopyHandle out_event); Result GetGameCardWakenReadyEvent(OutCopyHandle out_event); Result IsGameCardApplicationRunning(Out out_is_running); - Result Unknown936(Out out_result); Result IsAnyApplicationEntityInstalled(Out out_is_any_application_entity_installed); Result GetApplicationViewDeprecated( OutArray out_application_views, @@ -73,11 +71,7 @@ public: InBuffer logo_path_buffer); Result Unknown4022(OutCopyHandle out_event); Result Unknown4023(Out out_result); - Result Unknown4042(OutInterface out_interface, - OutCopyHandle out_event, - u64 arg1, u64 arg2); Result Unknown4053(); - Result Unknown4105(); Result RequestDownloadApplicationControlDataInBackground(u64 control_source, u64 application_id); diff --git a/src/core/hle/service/ns/application_version_interface.cpp b/src/core/hle/service/ns/application_version_interface.cpp index 0ed9514c2c..b89e127dbe 100644 --- a/src/core/hle/service/ns/application_version_interface.cpp +++ b/src/core/hle/service/ns/application_version_interface.cpp @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2024 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/ns/application_version_interface.h b/src/core/hle/service/ns/application_version_interface.h index fcbb966a4d..b288cff1be 100644 --- a/src/core/hle/service/ns/application_version_interface.h +++ b/src/core/hle/service/ns/application_version_interface.h @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2024 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/ns/async_result.cpp b/src/core/hle/service/ns/async_result.cpp deleted file mode 100644 index 8617280bef..0000000000 --- a/src/core/hle/service/ns/async_result.cpp +++ /dev/null @@ -1,35 +0,0 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - -#include "core/hle/service/cmif_serialization.h" -#include "core/hle/service/ns/async_result.h" - -#include - -namespace Service::NS { - -IAsyncResult::IAsyncResult(Core::System& system_, Service::Event* event_) - : ServiceFramework{system_, "nn::ns::detail::IAsyncResult"}, event{event_} { - // clang-format off - static const FunctionInfo functions[] = { - {0, nullptr, "Get"}, - {1, D<&IAsyncResult::Cancel>, "Cancel"}, - {2, nullptr, "GetErrorContext"}, // 4.0.0+ - }; - // clang-format on - - RegisterHandlers(functions); -} - -IAsyncResult::~IAsyncResult() = default; - -Result IAsyncResult::Cancel() { - LOG_DEBUG(Service_NS, "called"); - if (event != nullptr) { - event->Signal(system.Kernel()); - } - - R_SUCCEED(); -} - -} // namespace Service::NS diff --git a/src/core/hle/service/ns/async_result.h b/src/core/hle/service/ns/async_result.h deleted file mode 100644 index 914ea5a42c..0000000000 --- a/src/core/hle/service/ns/async_result.h +++ /dev/null @@ -1,19 +0,0 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - -#include "core/hle/service/service.h" - -namespace Service::NS { - -class IAsyncResult final : public ServiceFramework { -public: - explicit IAsyncResult(Core::System& system_, Service::Event* event_); - ~IAsyncResult() override; - -private: - Result Cancel(); - - Service::Event* event{}; -}; - -} // namespace Service::NS \ No newline at end of file diff --git a/src/core/hle/service/ns/develop_interface.cpp b/src/core/hle/service/ns/develop_interface.cpp index 5a44c61f1b..880bdbebbf 100644 --- a/src/core/hle/service/ns/develop_interface.cpp +++ b/src/core/hle/service/ns/develop_interface.cpp @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2024 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/ns/develop_interface.h b/src/core/hle/service/ns/develop_interface.h index d7cb9e7a56..a9f81ccd60 100644 --- a/src/core/hle/service/ns/develop_interface.h +++ b/src/core/hle/service/ns/develop_interface.h @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2024 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/ns/document_interface.cpp b/src/core/hle/service/ns/document_interface.cpp index 00593d1edc..51a1e46c0d 100644 --- a/src/core/hle/service/ns/document_interface.cpp +++ b/src/core/hle/service/ns/document_interface.cpp @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2024 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/ns/document_interface.h b/src/core/hle/service/ns/document_interface.h index 4c8b15b54a..cd461652cf 100644 --- a/src/core/hle/service/ns/document_interface.h +++ b/src/core/hle/service/ns/document_interface.h @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2024 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/ns/download_task_interface.cpp b/src/core/hle/service/ns/download_task_interface.cpp index 18db60e7b0..62dc7f1874 100644 --- a/src/core/hle/service/ns/download_task_interface.cpp +++ b/src/core/hle/service/ns/download_task_interface.cpp @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2024 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/ns/download_task_interface.h b/src/core/hle/service/ns/download_task_interface.h index 1c46339daa..b1cb69cb86 100644 --- a/src/core/hle/service/ns/download_task_interface.h +++ b/src/core/hle/service/ns/download_task_interface.h @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2024 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/ns/ecommerce_interface.cpp b/src/core/hle/service/ns/ecommerce_interface.cpp index b8794bb5fb..76fc425f0c 100644 --- a/src/core/hle/service/ns/ecommerce_interface.cpp +++ b/src/core/hle/service/ns/ecommerce_interface.cpp @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2024 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/ns/ecommerce_interface.h b/src/core/hle/service/ns/ecommerce_interface.h index 6ff9512123..4352101f4a 100644 --- a/src/core/hle/service/ns/ecommerce_interface.h +++ b/src/core/hle/service/ns/ecommerce_interface.h @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2024 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/ns/factory_reset_interface.cpp b/src/core/hle/service/ns/factory_reset_interface.cpp index 11cdefb4be..fd5cf7e1fd 100644 --- a/src/core/hle/service/ns/factory_reset_interface.cpp +++ b/src/core/hle/service/ns/factory_reset_interface.cpp @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2024 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/ns/factory_reset_interface.h b/src/core/hle/service/ns/factory_reset_interface.h index 8181d6b379..50d1251239 100644 --- a/src/core/hle/service/ns/factory_reset_interface.h +++ b/src/core/hle/service/ns/factory_reset_interface.h @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2024 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/ns/ns.cpp b/src/core/hle/service/ns/ns.cpp index fe057422ce..4e3915f684 100644 --- a/src/core/hle/service/ns/ns.cpp +++ b/src/core/hle/service/ns/ns.cpp @@ -81,16 +81,16 @@ public: void LoopProcess(Core::System& system) { auto server_manager = std::make_unique(system); - server_manager->RegisterNamedService("ns:am2", std::make_shared(system, "ns:am2"), 5); - server_manager->RegisterNamedService("ns:ec", std::make_shared(system, "ns:ec"), 5); - server_manager->RegisterNamedService("ns:rid", std::make_shared(system, "ns:rid"), 5); - server_manager->RegisterNamedService("ns:rt", std::make_shared(system, "ns:rt"), 5); - server_manager->RegisterNamedService("ns:web", std::make_shared(system, "ns:web"), 5); - server_manager->RegisterNamedService("ns:ro", std::make_shared(system, "ns:ro"), 5); + server_manager->RegisterNamedService("ns:am2", std::make_shared(system, "ns:am2")); + server_manager->RegisterNamedService("ns:ec", std::make_shared(system, "ns:ec")); + server_manager->RegisterNamedService("ns:rid", std::make_shared(system, "ns:rid")); + server_manager->RegisterNamedService("ns:rt", std::make_shared(system, "ns:rt")); + server_manager->RegisterNamedService("ns:web", std::make_shared(system, "ns:web")); + server_manager->RegisterNamedService("ns:ro", std::make_shared(system, "ns:ro")); - server_manager->RegisterNamedService("ns:dev", std::make_shared(system), 5); - server_manager->RegisterNamedService("ns:su", std::make_shared(system), 5); - server_manager->RegisterNamedService("ns:vm", std::make_shared(system), 5); + server_manager->RegisterNamedService("ns:dev", std::make_shared(system)); + server_manager->RegisterNamedService("ns:su", std::make_shared(system)); + server_manager->RegisterNamedService("ns:vm", std::make_shared(system)); server_manager->RegisterNamedService("pdm:ntfy", std::make_shared(system)); server_manager->RegisterNamedService("pdm:qry", std::make_shared(system)); diff --git a/src/core/hle/service/ns/ns.h b/src/core/hle/service/ns/ns.h index 2b14d115ca..f79b4ae3d6 100644 --- a/src/core/hle/service/ns/ns.h +++ b/src/core/hle/service/ns/ns.h @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/ns/ns_results.h b/src/core/hle/service/ns/ns_results.h index 52f4c0ea59..16d2ea6f7b 100644 --- a/src/core/hle/service/ns/ns_results.h +++ b/src/core/hle/service/ns/ns_results.h @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2019 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/ns/platform_service_manager.h b/src/core/hle/service/ns/platform_service_manager.h index 73521abbc2..b82c385a6c 100644 --- a/src/core/hle/service/ns/platform_service_manager.h +++ b/src/core/hle/service/ns/platform_service_manager.h @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/ns/read_only_application_control_data_interface.cpp b/src/core/hle/service/ns/read_only_application_control_data_interface.cpp index 1359cdbb95..c7606a83bf 100644 --- a/src/core/hle/service/ns/read_only_application_control_data_interface.cpp +++ b/src/core/hle/service/ns/read_only_application_control_data_interface.cpp @@ -142,7 +142,6 @@ IReadOnlyApplicationControlDataInterface::IReadOnlyApplicationControlDataInterfa {10, &IReadOnlyApplicationControlDataInterface::ListApplicationIcon, "ListApplicationIcon"}, {13, &IReadOnlyApplicationControlDataInterface::ListApplicationTitle, "ListApplicationTitle"}, {19, D<&IReadOnlyApplicationControlDataInterface::GetApplicationControlData3>, "GetApplicationControlData"}, - {23, D<&IReadOnlyApplicationControlDataInterface::GetApplicationControlData3>, "GetApplicationControlData"}, //23.0.0+ }; // clang-format on @@ -311,30 +310,27 @@ void IReadOnlyApplicationControlDataInterface::ListApplicationIcon(HLERequestCon // u64 - app count memory.WriteBlock(t_mem_address + out_length, &app_count, sizeof(u64)); out_length += sizeof(u64); - ASSERT(out_length <= t_mem->GetSize()); // [list of u64] - size of icons for (size_t i = 0; i < app_count; ++i) { const u64 app_id = app_ids_buffer[i]; const FileSys::PatchManager pm{app_id, system.GetFileSystemController(), system.GetContentProvider()}; - if (const auto control = pm.GetControlMetadata(); control.second) { - u64 full_size = control.second->GetSize(); - memory.WriteBlock(t_mem_address + out_length, &full_size, sizeof(u64)); - } + const auto control = pm.GetControlMetadata(); + u64 full_size = control.second->GetSize(); + memory.WriteBlock(t_mem_address + out_length, &full_size, sizeof(u64)); out_length += sizeof(u64); - ASSERT(out_length <= t_mem->GetSize()); } // [list of raw icon data] + std::vector full_icon_data; for (size_t i = 0; i < app_count; ++i) { const u64 app_id = app_ids_buffer[i]; const FileSys::PatchManager pm{app_id, system.GetFileSystemController(), system.GetContentProvider()}; - if (const auto control = pm.GetControlMetadata(); control.second) { - if (auto const full_size = control.second->GetSize(); full_size > 0) { - std::vector full_icon_data(full_size); - control.second->Read(full_icon_data.data(), full_size, 0); - memory.WriteBlock(t_mem_address + out_length, full_icon_data.data(), full_size); - out_length += full_size; - ASSERT(out_length <= t_mem->GetSize()); - } + const auto control = pm.GetControlMetadata(); + auto const full_size = control.second->GetSize(); + if (full_size > 0) { + full_icon_data.resize(full_size); + control.second->Read(full_icon_data.data(), full_size, 0); + memory.WriteBlock(t_mem_address + out_length, full_icon_data.data(), full_size); + out_length += full_size; } } } @@ -348,12 +344,6 @@ void IReadOnlyApplicationControlDataInterface::ListApplicationIcon(HLERequestCon void IReadOnlyApplicationControlDataInterface::ListApplicationTitle(HLERequestContext& ctx) { const auto app_ids_buffer = ctx.ReadBuffer(); const size_t app_count = app_ids_buffer.size() / sizeof(u64); - - std::vector application_ids(app_count); - if (app_count > 0) { - std::memcpy(application_ids.data(), app_ids_buffer.data(), app_count * sizeof(u64)); - } - auto t_mem_obj = ctx.GetObjectFromHandle(ctx.GetCopyHandle(0)); auto* t_mem = t_mem_obj.GetPointerUnsafe(); constexpr size_t title_entry_size = sizeof(FileSys::LanguageEntry); @@ -363,9 +353,8 @@ void IReadOnlyApplicationControlDataInterface::ListApplicationTitle(HLERequestCo auto& memory = system.ApplicationMemory(); const auto t_mem_address = t_mem->GetSourceAddress(); for (size_t i = 0; i < app_count; ++i) { - const u64 app_id = application_ids[i]; - const FileSys::PatchManager pm{app_id, system.GetFileSystemController(), - system.GetContentProvider()}; + const u64 app_id = app_ids_buffer[i]; + const FileSys::PatchManager pm{app_id, system.GetFileSystemController(), system.GetContentProvider()}; const auto control = pm.GetControlMetadata(); FileSys::LanguageEntry entry{}; if (control.first != nullptr) { diff --git a/src/core/hle/service/ns/read_only_application_record_interface.h b/src/core/hle/service/ns/read_only_application_record_interface.h index dd842070e8..fc43c768ba 100644 --- a/src/core/hle/service/ns/read_only_application_record_interface.h +++ b/src/core/hle/service/ns/read_only_application_record_interface.h @@ -1,4 +1,4 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project +// SPDX-FileCopyrightText: Copyright 2025 Eden Emulator Project // SPDX-License-Identifier: GPL-3.0-or-later // SPDX-FileCopyrightText: Copyright 2024 yuzu Emulator Project diff --git a/src/core/hle/service/ns/service_getter_interface.cpp b/src/core/hle/service/ns/service_getter_interface.cpp index 7b7f791650..1a3dd7166c 100644 --- a/src/core/hle/service/ns/service_getter_interface.cpp +++ b/src/core/hle/service/ns/service_getter_interface.cpp @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2024 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/ns/service_getter_interface.h b/src/core/hle/service/ns/service_getter_interface.h index fc36b04325..bbc18d4445 100644 --- a/src/core/hle/service/ns/service_getter_interface.h +++ b/src/core/hle/service/ns/service_getter_interface.h @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2024 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/ns/system_update_control.cpp b/src/core/hle/service/ns/system_update_control.cpp index 2711db508c..f5f5cfd909 100644 --- a/src/core/hle/service/ns/system_update_control.cpp +++ b/src/core/hle/service/ns/system_update_control.cpp @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2024 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/ns/system_update_control.h b/src/core/hle/service/ns/system_update_control.h index 70794f4abd..a30a090000 100644 --- a/src/core/hle/service/ns/system_update_control.h +++ b/src/core/hle/service/ns/system_update_control.h @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2024 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/ns/system_update_interface.cpp b/src/core/hle/service/ns/system_update_interface.cpp index 3f4d42fdb6..7e22ca3db0 100644 --- a/src/core/hle/service/ns/system_update_interface.cpp +++ b/src/core/hle/service/ns/system_update_interface.cpp @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2024 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/ns/system_update_interface.h b/src/core/hle/service/ns/system_update_interface.h index 76f8959ed6..36a2880ec9 100644 --- a/src/core/hle/service/ns/system_update_interface.h +++ b/src/core/hle/service/ns/system_update_interface.h @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2024 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/nvdrv/devices/ioctl_serialization.h b/src/core/hle/service/nvdrv/devices/ioctl_serialization.h index 37d04e3cf1..c3baa3a75b 100644 --- a/src/core/hle/service/nvdrv/devices/ioctl_serialization.h +++ b/src/core/hle/service/nvdrv/devices/ioctl_serialization.h @@ -1,4 +1,4 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project +// SPDX-FileCopyrightText: Copyright 2025 Eden Emulator Project // SPDX-License-Identifier: GPL-3.0-or-later // SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project diff --git a/src/core/hle/service/nvdrv/devices/nvdevice.h b/src/core/hle/service/nvdrv/devices/nvdevice.h index d23ec63bae..8adaddc60b 100644 --- a/src/core/hle/service/nvdrv/devices/nvdevice.h +++ b/src/core/hle/service/nvdrv/devices/nvdevice.h @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/nvdrv/devices/nvhost_gpu.cpp b/src/core/hle/service/nvdrv/devices/nvhost_gpu.cpp index 1e571be4c9..358679b831 100644 --- a/src/core/hle/service/nvdrv/devices/nvhost_gpu.cpp +++ b/src/core/hle/service/nvdrv/devices/nvhost_gpu.cpp @@ -278,7 +278,7 @@ NvResult nvhost_gpu::AllocateObjectContext(IoctlAllocObjCtx& params) { params.flags = allowed_mask; } - s32_le ctx_class_number_index = + s32_le ctx_class_number_index = GetObjectContextClassNumberIndex(static_cast(params.class_num)); if (ctx_class_number_index < 0) { LOG_ERROR(Service_NVDRV, "Invalid class number for object context: {:#x}", diff --git a/src/core/hle/service/nvdrv/devices/nvhost_nvdec.cpp b/src/core/hle/service/nvdrv/devices/nvhost_nvdec.cpp index 7ac3dfaa46..f47369adb8 100644 --- a/src/core/hle/service/nvdrv/devices/nvhost_nvdec.cpp +++ b/src/core/hle/service/nvdrv/devices/nvhost_nvdec.cpp @@ -8,6 +8,7 @@ #include "common/assert.h" #include "common/logging.h" #include "core/core.h" +#include "core/hle/kernel/k_process.h" #include "core/hle/service/nvdrv/core/container.h" #include "core/hle/service/nvdrv/devices/ioctl_serialization.h" #include "core/hle/service/nvdrv/devices/nvhost_nvdec.h" @@ -71,17 +72,23 @@ NvResult nvhost_nvdec::Ioctl3(DeviceFD fd, Ioctl command, std::span in void nvhost_nvdec::OnOpen(NvCore::SessionId session_id, DeviceFD fd) { LOG_INFO(Service_NVDRV, "NVDEC video stream started"); - system.SetNVDECActive(true); sessions[fd] = session_id; + if (const auto* session = core.GetSession(session_id); + session != nullptr && session->process != nullptr) { + system.NotifyNVDECChannelOpen(session->process->GetId()); + } host1x.StartDevice(fd, Tegra::Host1x::ChannelType::NvDec, channel_syncpoint); } void nvhost_nvdec::OnClose(DeviceFD fd) { LOG_INFO(Service_NVDRV, "NVDEC video stream ended"); host1x.StopDevice(fd, Tegra::Host1x::ChannelType::NvDec); - system.SetNVDECActive(false); auto it = sessions.find(fd); if (it != sessions.end()) { + if (const auto* session = core.GetSession(it->second); + session != nullptr && session->process != nullptr) { + system.NotifyNVDECChannelClose(session->process->GetId()); + } sessions.erase(it); } } diff --git a/src/core/hle/service/nvdrv/devices/nvhost_nvdec.h b/src/core/hle/service/nvdrv/devices/nvhost_nvdec.h index 1747881d48..627686757b 100644 --- a/src/core/hle/service/nvdrv/devices/nvhost_nvdec.h +++ b/src/core/hle/service/nvdrv/devices/nvhost_nvdec.h @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/nvdrv/devices/nvhost_nvjpg.h b/src/core/hle/service/nvdrv/devices/nvhost_nvjpg.h index e0735b7f01..def9c254d1 100644 --- a/src/core/hle/service/nvdrv/devices/nvhost_nvjpg.h +++ b/src/core/hle/service/nvdrv/devices/nvhost_nvjpg.h @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/nvdrv/devices/nvhost_vic.h b/src/core/hle/service/nvdrv/devices/nvhost_vic.h index b1cbcb9ad7..0cc04354a0 100644 --- a/src/core/hle/service/nvdrv/devices/nvhost_vic.h +++ b/src/core/hle/service/nvdrv/devices/nvhost_vic.h @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/nvdrv/nvdrv_interface.h b/src/core/hle/service/nvdrv/nvdrv_interface.h index f628fca7df..c72f925979 100644 --- a/src/core/hle/service/nvdrv/nvdrv_interface.h +++ b/src/core/hle/service/nvdrv/nvdrv_interface.h @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/nvdrv/nvmemp.h b/src/core/hle/service/nvdrv/nvmemp.h index 6ff59834fe..85e3053a8d 100644 --- a/src/core/hle/service/nvdrv/nvmemp.h +++ b/src/core/hle/service/nvdrv/nvmemp.h @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/nvnflinger/binder.h b/src/core/hle/service/nvnflinger/binder.h index 6c7ce0ed0f..124accb946 100644 --- a/src/core/hle/service/nvnflinger/binder.h +++ b/src/core/hle/service/nvnflinger/binder.h @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2021 yuzu Emulator Project // SPDX-FileCopyrightText: Copyright 2014 The Android Open Source Project // SPDX-License-Identifier: GPL-3.0-or-later diff --git a/src/core/hle/service/nvnflinger/buffer_item.h b/src/core/hle/service/nvnflinger/buffer_item.h index 718188d849..7fd808f546 100644 --- a/src/core/hle/service/nvnflinger/buffer_item.h +++ b/src/core/hle/service/nvnflinger/buffer_item.h @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2021 yuzu Emulator Project // SPDX-FileCopyrightText: Copyright 2014 The Android Open Source Project // SPDX-License-Identifier: GPL-3.0-or-later diff --git a/src/core/hle/service/nvnflinger/buffer_item_consumer.h b/src/core/hle/service/nvnflinger/buffer_item_consumer.h index 7857569c0f..9f95c92800 100644 --- a/src/core/hle/service/nvnflinger/buffer_item_consumer.h +++ b/src/core/hle/service/nvnflinger/buffer_item_consumer.h @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2021 yuzu Emulator Project // SPDX-FileCopyrightText: Copyright 2012 The Android Open Source Project // SPDX-License-Identifier: GPL-3.0-or-later diff --git a/src/core/hle/service/nvnflinger/buffer_queue_consumer.h b/src/core/hle/service/nvnflinger/buffer_queue_consumer.h index 84f36285c0..a9226f1c35 100644 --- a/src/core/hle/service/nvnflinger/buffer_queue_consumer.h +++ b/src/core/hle/service/nvnflinger/buffer_queue_consumer.h @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2021 yuzu Emulator Project // SPDX-FileCopyrightText: Copyright 2014 The Android Open Source Project // SPDX-License-Identifier: GPL-3.0-or-later diff --git a/src/core/hle/service/nvnflinger/buffer_queue_defs.h b/src/core/hle/service/nvnflinger/buffer_queue_defs.h index 77ebd0a6a0..6fd3156f4a 100644 --- a/src/core/hle/service/nvnflinger/buffer_queue_defs.h +++ b/src/core/hle/service/nvnflinger/buffer_queue_defs.h @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2021 yuzu Emulator Project // SPDX-FileCopyrightText: Copyright 2014 The Android Open Source Project // SPDX-License-Identifier: GPL-3.0-or-later diff --git a/src/core/hle/service/nvnflinger/buffer_transform_flags.h b/src/core/hle/service/nvnflinger/buffer_transform_flags.h index 6fb40d0a72..ffe579718f 100644 --- a/src/core/hle/service/nvnflinger/buffer_transform_flags.h +++ b/src/core/hle/service/nvnflinger/buffer_transform_flags.h @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2021 yuzu Emulator Project // SPDX-License-Identifier: GPL-3.0-or-later diff --git a/src/core/hle/service/nvnflinger/consumer_base.h b/src/core/hle/service/nvnflinger/consumer_base.h index e187b520ca..b29c16f86b 100644 --- a/src/core/hle/service/nvnflinger/consumer_base.h +++ b/src/core/hle/service/nvnflinger/consumer_base.h @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2021 yuzu Emulator Project // SPDX-FileCopyrightText: Copyright 2010 The Android Open Source Project // SPDX-License-Identifier: GPL-3.0-or-later diff --git a/src/core/hle/service/nvnflinger/consumer_listener.h b/src/core/hle/service/nvnflinger/consumer_listener.h index 4b4d939551..74a1939883 100644 --- a/src/core/hle/service/nvnflinger/consumer_listener.h +++ b/src/core/hle/service/nvnflinger/consumer_listener.h @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2021 yuzu Emulator Project // SPDX-FileCopyrightText: Copyright 2014 The Android Open Source Project // SPDX-License-Identifier: GPL-3.0-or-later diff --git a/src/core/hle/service/nvnflinger/graphic_buffer_producer.cpp b/src/core/hle/service/nvnflinger/graphic_buffer_producer.cpp index 5de604233d..d72b49a8e7 100644 --- a/src/core/hle/service/nvnflinger/graphic_buffer_producer.cpp +++ b/src/core/hle/service/nvnflinger/graphic_buffer_producer.cpp @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2021 yuzu Emulator Project // SPDX-FileCopyrightText: Copyright 2010 The Android Open Source Project // SPDX-License-Identifier: GPL-3.0-or-later diff --git a/src/core/hle/service/nvnflinger/graphic_buffer_producer.h b/src/core/hle/service/nvnflinger/graphic_buffer_producer.h index 05980eb482..5d7cff7d38 100644 --- a/src/core/hle/service/nvnflinger/graphic_buffer_producer.h +++ b/src/core/hle/service/nvnflinger/graphic_buffer_producer.h @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2021 yuzu Emulator Project // SPDX-FileCopyrightText: Copyright 2010 The Android Open Source Project // SPDX-License-Identifier: GPL-3.0-or-later diff --git a/src/core/hle/service/nvnflinger/hardware_composer.cpp b/src/core/hle/service/nvnflinger/hardware_composer.cpp index 9ac56e17bb..5decb791e1 100644 --- a/src/core/hle/service/nvnflinger/hardware_composer.cpp +++ b/src/core/hle/service/nvnflinger/hardware_composer.cpp @@ -57,21 +57,8 @@ u32 HardwareComposer::ComposeLocked(f32* out_speed_scale, Display& display, // Set default speed limit to 100%. *out_speed_scale = 1.0f; - // If no layers are visible, skip the logic. Acquiring and holding buffers here would - // consume the producer's queue without ever presenting. - bool any_visible = false; - for (auto& layer : display.stack.layers) { - if (layer->visible) { - any_visible = true; - break; - } - } - if (!any_visible) { - return 1; - } - - // Wait for the previous composite, bounding the number of in-flight composites. nvdisp.WaitForComposite(); + this->ReleaseFramebuffersLocked(display); // Determine the number of vsync periods to wait before composing again. std::optional swap_interval{}; @@ -165,13 +152,6 @@ u32 HardwareComposer::ComposeLocked(f32* out_speed_scale, Display& display, // Advance by 1 frame (60 FPS compositing) m_frame_number += 1; - // Release framebuffers once the frame has been handed to the compositor. This happens - // within the same vsync period as the acquire (release_frame_number is checked against - // the advanced counter), so the producer gets its buffers back immediately instead of - // losing a queue slot for a whole frame. - // TODO: support release fences; releasing before the composite has finished can tear. - this->ReleaseFramebuffersLocked(display); - return 1; } diff --git a/src/core/hle/service/nvnflinger/hos_binder_driver.cpp b/src/core/hle/service/nvnflinger/hos_binder_driver.cpp index fa1becc34e..d30aa3717d 100644 --- a/src/core/hle/service/nvnflinger/hos_binder_driver.cpp +++ b/src/core/hle/service/nvnflinger/hos_binder_driver.cpp @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2024 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/nvnflinger/nvnflinger.cpp b/src/core/hle/service/nvnflinger/nvnflinger.cpp index 48862a747d..9e3b68b8a0 100644 --- a/src/core/hle/service/nvnflinger/nvnflinger.cpp +++ b/src/core/hle/service/nvnflinger/nvnflinger.cpp @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2021 yuzu Emulator Project // SPDX-License-Identifier: GPL-3.0-or-later diff --git a/src/core/hle/service/nvnflinger/nvnflinger.h b/src/core/hle/service/nvnflinger/nvnflinger.h index 2f5465e7ef..5c41f3013c 100644 --- a/src/core/hle/service/nvnflinger/nvnflinger.h +++ b/src/core/hle/service/nvnflinger/nvnflinger.h @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2021 yuzu Emulator Project // SPDX-License-Identifier: GPL-3.0-or-later diff --git a/src/core/hle/service/nvnflinger/parcel.h b/src/core/hle/service/nvnflinger/parcel.h index ed85512792..4567942016 100644 --- a/src/core/hle/service/nvnflinger/parcel.h +++ b/src/core/hle/service/nvnflinger/parcel.h @@ -1,4 +1,4 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project +// SPDX-FileCopyrightText: Copyright 2025 Eden Emulator Project // SPDX-License-Identifier: GPL-3.0-or-later // SPDX-FileCopyrightText: Copyright 2021 yuzu Emulator Project diff --git a/src/core/hle/service/nvnflinger/pixel_format.h b/src/core/hle/service/nvnflinger/pixel_format.h index b6e8b5f8a0..f77d0acfb3 100644 --- a/src/core/hle/service/nvnflinger/pixel_format.h +++ b/src/core/hle/service/nvnflinger/pixel_format.h @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2021 yuzu Emulator Project // SPDX-License-Identifier: GPL-3.0-or-later diff --git a/src/core/hle/service/nvnflinger/producer_listener.h b/src/core/hle/service/nvnflinger/producer_listener.h index 892f6d531d..6bf8aaf1ee 100644 --- a/src/core/hle/service/nvnflinger/producer_listener.h +++ b/src/core/hle/service/nvnflinger/producer_listener.h @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2021 yuzu Emulator Project // SPDX-FileCopyrightText: Copyright 2014 The Android Open Source Project // SPDX-License-Identifier: GPL-3.0-or-later diff --git a/src/core/hle/service/nvnflinger/status.h b/src/core/hle/service/nvnflinger/status.h index 7b188b42f5..3fa0fe15b9 100644 --- a/src/core/hle/service/nvnflinger/status.h +++ b/src/core/hle/service/nvnflinger/status.h @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2021 yuzu Emulator Project // SPDX-License-Identifier: GPL-3.0-or-later diff --git a/src/core/hle/service/nvnflinger/ui/graphic_buffer.cpp b/src/core/hle/service/nvnflinger/ui/graphic_buffer.cpp index 5ba7a31cc8..ede2a11933 100644 --- a/src/core/hle/service/nvnflinger/ui/graphic_buffer.cpp +++ b/src/core/hle/service/nvnflinger/ui/graphic_buffer.cpp @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project // SPDX-License-Identifier: GPL-3.0-or-later diff --git a/src/core/hle/service/nvnflinger/ui/graphic_buffer.h b/src/core/hle/service/nvnflinger/ui/graphic_buffer.h index 099429b3f0..da430aa752 100644 --- a/src/core/hle/service/nvnflinger/ui/graphic_buffer.h +++ b/src/core/hle/service/nvnflinger/ui/graphic_buffer.h @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2021 yuzu Emulator Project // SPDX-FileCopyrightText: Copyright 2007 The Android Open Source Project // SPDX-License-Identifier: GPL-3.0-or-later diff --git a/src/core/hle/service/nvnflinger/window.h b/src/core/hle/service/nvnflinger/window.h index 78a99f57ae..36d6cde3db 100644 --- a/src/core/hle/service/nvnflinger/window.h +++ b/src/core/hle/service/nvnflinger/window.h @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2021 yuzu Emulator Project // SPDX-License-Identifier: GPL-3.0-or-later diff --git a/src/core/hle/service/olsc/olsc.h b/src/core/hle/service/olsc/olsc.h index 62000529c5..620b634fae 100644 --- a/src/core/hle/service/olsc/olsc.h +++ b/src/core/hle/service/olsc/olsc.h @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2020 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/olsc/olsc_service_for_application.cpp b/src/core/hle/service/olsc/olsc_service_for_application.cpp index 73d7d4ed64..01360f5ef2 100644 --- a/src/core/hle/service/olsc/olsc_service_for_application.cpp +++ b/src/core/hle/service/olsc/olsc_service_for_application.cpp @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2024 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/olsc/transfer_task_list_controller.cpp b/src/core/hle/service/olsc/transfer_task_list_controller.cpp index 95e41cdb51..0f9042bf01 100644 --- a/src/core/hle/service/olsc/transfer_task_list_controller.cpp +++ b/src/core/hle/service/olsc/transfer_task_list_controller.cpp @@ -36,7 +36,7 @@ ITransferTaskListController::ITransferTaskListController(Core::System& system_) {18, nullptr, "ListTransferTaskInfo"}, {19, nullptr, "DeleteTransferTask"}, {20, nullptr, "RaiseTransferTaskPriority"}, - {21, D<&ITransferTaskListController::GetTransferTaskProgress>, "GetTransferTaskProgress"}, //10.1.0+ + {21, nullptr, "GetTransferTaskProgress"}, {22, nullptr, "GetTransferTaskLastResult"}, {23, nullptr, "SuspendTransferTask"}, {24, D<&ITransferTaskListController::GetCurrentTransferTaskInfo>, "GetCurrentTransferTaskInfo"}, @@ -82,11 +82,6 @@ Result ITransferTaskListController::GetCurrentTransferTaskInfo(Out> out_info, InBuffer in) { LOG_WARNING(Service_OLSC, "(STUBBED) called, in_size={}", in.size()); diff --git a/src/core/hle/service/olsc/transfer_task_list_controller.h b/src/core/hle/service/olsc/transfer_task_list_controller.h index 5f3429879a..4ac770b477 100644 --- a/src/core/hle/service/olsc/transfer_task_list_controller.h +++ b/src/core/hle/service/olsc/transfer_task_list_controller.h @@ -24,7 +24,6 @@ private: Result GetTransferTaskStartEventNativeHandleHolder(Out> out_holder); Result StopNextTransferTaskExecution(Out> out_stopper); Result GetTransferTaskCount(Out out_count, u8 unknown); - Result GetTransferTaskProgress(); Result GetCurrentTransferTaskInfo(Out> out_info, u8 unknown); Result FindTransferTaskInfo(Out> out_info, InBuffer in); }; diff --git a/src/core/hle/service/omm/omm.cpp b/src/core/hle/service/omm/omm.cpp index cc0b686ab1..b95319e26b 100644 --- a/src/core/hle/service/omm/omm.cpp +++ b/src/core/hle/service/omm/omm.cpp @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2024 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/omm/omm.h b/src/core/hle/service/omm/omm.h index 6b100a6d61..7bf04688ae 100644 --- a/src/core/hle/service/omm/omm.h +++ b/src/core/hle/service/omm/omm.h @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2024 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/omm/operation_mode_manager.cpp b/src/core/hle/service/omm/operation_mode_manager.cpp index 1af7714d0d..fe7ed84a7f 100644 --- a/src/core/hle/service/omm/operation_mode_manager.cpp +++ b/src/core/hle/service/omm/operation_mode_manager.cpp @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/omm/operation_mode_manager.h b/src/core/hle/service/omm/operation_mode_manager.h index dd6753757c..32bc7b2f93 100644 --- a/src/core/hle/service/omm/operation_mode_manager.h +++ b/src/core/hle/service/omm/operation_mode_manager.h @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/omm/policy_manager_system.cpp b/src/core/hle/service/omm/policy_manager_system.cpp index b9e8277f8c..1cd6fd807b 100644 --- a/src/core/hle/service/omm/policy_manager_system.cpp +++ b/src/core/hle/service/omm/policy_manager_system.cpp @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/omm/policy_manager_system.h b/src/core/hle/service/omm/policy_manager_system.h index 2fb6eb9293..151ca0d2ee 100644 --- a/src/core/hle/service/omm/policy_manager_system.h +++ b/src/core/hle/service/omm/policy_manager_system.h @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/omm/power_state_interface.cpp b/src/core/hle/service/omm/power_state_interface.cpp index 04ea75b496..22cac82595 100644 --- a/src/core/hle/service/omm/power_state_interface.cpp +++ b/src/core/hle/service/omm/power_state_interface.cpp @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/omm/power_state_interface.h b/src/core/hle/service/omm/power_state_interface.h index dc1d376a13..825a6512d9 100644 --- a/src/core/hle/service/omm/power_state_interface.h +++ b/src/core/hle/service/omm/power_state_interface.h @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/os/multi_wait.cpp b/src/core/hle/service/os/multi_wait.cpp index c9bb256ab0..7b80d28bed 100644 --- a/src/core/hle/service/os/multi_wait.cpp +++ b/src/core/hle/service/os/multi_wait.cpp @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2024 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/os/multi_wait.h b/src/core/hle/service/os/multi_wait.h index c9076c21d7..340c611b5b 100644 --- a/src/core/hle/service/os/multi_wait.h +++ b/src/core/hle/service/os/multi_wait.h @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2024 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/os/multi_wait_holder.cpp b/src/core/hle/service/os/multi_wait_holder.cpp index f3864218c9..01efa045b5 100644 --- a/src/core/hle/service/os/multi_wait_holder.cpp +++ b/src/core/hle/service/os/multi_wait_holder.cpp @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2024 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/os/multi_wait_holder.h b/src/core/hle/service/os/multi_wait_holder.h index 3b28ec6b5a..646395a3f3 100644 --- a/src/core/hle/service/os/multi_wait_holder.h +++ b/src/core/hle/service/os/multi_wait_holder.h @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2024 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/os/multi_wait_utils.h b/src/core/hle/service/os/multi_wait_utils.h index d8f3ade4c1..96d3a10f37 100644 --- a/src/core/hle/service/os/multi_wait_utils.h +++ b/src/core/hle/service/os/multi_wait_utils.h @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2024 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/os/mutex.h b/src/core/hle/service/os/mutex.h index 8e29bbb633..95ac9b117a 100644 --- a/src/core/hle/service/os/mutex.h +++ b/src/core/hle/service/os/mutex.h @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/pcie/pcie.h b/src/core/hle/service/pcie/pcie.h index cf2048ce65..5c2d4b805b 100644 --- a/src/core/hle/service/pcie/pcie.h +++ b/src/core/hle/service/pcie/pcie.h @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/pctl/parental_control_service.cpp b/src/core/hle/service/pctl/parental_control_service.cpp index 51953c2657..97c178799e 100644 --- a/src/core/hle/service/pctl/parental_control_service.cpp +++ b/src/core/hle/service/pctl/parental_control_service.cpp @@ -4,8 +4,6 @@ // SPDX-FileCopyrightText: Copyright 2024 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later -#include - #include "core/core.h" #include "core/file_sys/control_metadata.h" #include "core/file_sys/patch_manager.h" @@ -96,7 +94,6 @@ IParentalControlService::IParentalControlService(Core::System& system_, Capabili {1457, D<&IParentalControlService::GetPlayTimerEventToRequestSuspension>, "GetPlayTimerEventToRequestSuspension"}, {1458, D<&IParentalControlService::IsPlayTimerAlarmDisabled>, "IsPlayTimerAlarmDisabled"}, {1459, D<&IParentalControlService::GetPlayTimerRemainingTimeDisplayInfo>, "GetPlayTimerRemainingTimeDisplayInfo"}, - {1460, D<&IParentalControlService::Unknown1460>, "Unknown1460"}, {1471, nullptr, "NotifyWrongPinCodeInputManyTimes"}, {1472, nullptr, "CancelNetworkRequest"}, {1473, D<&IParentalControlService::GetUnlinkedEvent>, "GetUnlinkedEvent"}, @@ -443,15 +440,8 @@ Result IParentalControlService::IsPlayTimerAlarmDisabled(Out out_play_time R_SUCCEED(); } -Result IParentalControlService::GetPlayTimerRemainingTimeDisplayInfo(Out out_display_info) { - LOG_DEBUG(Service_PCTL, "called"); - *out_display_info = {.state = PlayTimerDisplayState::NotConfigured}; - R_SUCCEED(); -} - -Result IParentalControlService::Unknown1460(u8 in_unk, Out out_display_info) { - LOG_DEBUG(Service_PCTL, "called, in_unk={}", in_unk); - *out_display_info = {.state = PlayTimerDisplayState::NotConfigured}; +Result IParentalControlService::GetPlayTimerRemainingTimeDisplayInfo(/* Out 0x18 */) { + LOG_INFO(Service_PCTL, "called"); R_SUCCEED(); } diff --git a/src/core/hle/service/pctl/parental_control_service.h b/src/core/hle/service/pctl/parental_control_service.h index 9dabe3d059..92d1d38429 100644 --- a/src/core/hle/service/pctl/parental_control_service.h +++ b/src/core/hle/service/pctl/parental_control_service.h @@ -55,8 +55,7 @@ private: Result GetPlayTimerSettingsOld(Out out_play_timer_settings); Result GetPlayTimerEventToRequestSuspension(OutCopyHandle out_event); Result IsPlayTimerAlarmDisabled(Out out_play_timer_alarm_disabled); - Result GetPlayTimerRemainingTimeDisplayInfo(Out out_display_info); - Result Unknown1460(u8 in_unk, Out out_display_info); + Result GetPlayTimerRemainingTimeDisplayInfo(); Result GetUnlinkedEvent(OutCopyHandle out_event); Result GetStereoVisionRestriction(Out out_stereo_vision_restriction); Result SetStereoVisionRestriction(bool stereo_vision_restriction); diff --git a/src/core/hle/service/pctl/parental_control_service_factory.h b/src/core/hle/service/pctl/parental_control_service_factory.h index 0b5afede82..362988add1 100644 --- a/src/core/hle/service/pctl/parental_control_service_factory.h +++ b/src/core/hle/service/pctl/parental_control_service_factory.h @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2024 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/pctl/pctl.cpp b/src/core/hle/service/pctl/pctl.cpp index 37f18a5d58..d92dbe2169 100644 --- a/src/core/hle/service/pctl/pctl.cpp +++ b/src/core/hle/service/pctl/pctl.cpp @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/pctl/pctl.h b/src/core/hle/service/pctl/pctl.h index 020866aa3d..5f9d03d4df 100644 --- a/src/core/hle/service/pctl/pctl.h +++ b/src/core/hle/service/pctl/pctl.h @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/pctl/pctl_results.h b/src/core/hle/service/pctl/pctl_results.h index 0aa4714a9c..1fc54727b7 100644 --- a/src/core/hle/service/pctl/pctl_results.h +++ b/src/core/hle/service/pctl/pctl_results.h @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2024 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/pctl/pctl_types.h b/src/core/hle/service/pctl/pctl_types.h index 3a5a19099d..a559c5d35f 100644 --- a/src/core/hle/service/pctl/pctl_types.h +++ b/src/core/hle/service/pctl/pctl_types.h @@ -1,4 +1,4 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project +// SPDX-FileCopyrightText: Copyright 2025 Eden Emulator Project // SPDX-License-Identifier: GPL-3.0-or-later // SPDX-FileCopyrightText: Copyright 2024 yuzu Emulator Project @@ -49,25 +49,4 @@ struct PlayTimerSettings { }; static_assert(sizeof(PlayTimerSettings) == 0x44, "PlayTimerSettings has incorrect size."); -enum class PlayTimerDisplayState : u8 { - TimesUp = 0, - BedtimeAlarm = 1, - RemainingTime = 2, - Unknown3 = 3, - Unknown4 = 4, - Unknown5 = 5, - TimerDisabled = 6, - NotConfigured = 7, -}; - -// This is nn::pctl::PlayTimerRemainingTimeDisplayInfo -struct PlayTimerRemainingTimeDisplayInfo { - PlayTimerDisplayState state; - INSERT_PADDING_BYTES(0x7); - u64 unknown_08; - u64 remaining_time; -}; -static_assert(sizeof(PlayTimerRemainingTimeDisplayInfo) == 0x18, - "PlayTimerRemainingTimeDisplayInfo has incorrect size."); - } // namespace Service::PCTL diff --git a/src/core/hle/service/pcv/pcv.h b/src/core/hle/service/pcv/pcv.h index 27eb179ff4..bf541e6feb 100644 --- a/src/core/hle/service/pcv/pcv.h +++ b/src/core/hle/service/pcv/pcv.h @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/pm/pm.cpp b/src/core/hle/service/pm/pm.cpp index ff7053b690..97efb1a361 100644 --- a/src/core/hle/service/pm/pm.cpp +++ b/src/core/hle/service/pm/pm.cpp @@ -252,10 +252,10 @@ private: void LoopProcess(Core::System& system) { auto server_manager = std::make_unique(system); - server_manager->RegisterNamedService("pm:bm", std::make_shared(system), 4); // Nx = 4, Ams = 8 - server_manager->RegisterNamedService("pm:dmnt", std::make_shared(system), 16); - server_manager->RegisterNamedService("pm:shell", std::make_shared(system), 3); //Nx = 3, AMS = 8 - server_manager->RegisterNamedService("pm:info", std::make_shared(system), 25); //48-(4+16+3) + server_manager->RegisterNamedService("pm:bm", std::make_shared(system)); + server_manager->RegisterNamedService("pm:dmnt", std::make_shared(system)); + server_manager->RegisterNamedService("pm:info", std::make_shared(system)); + server_manager->RegisterNamedService("pm:shell", std::make_shared(system)); ServerManager::RunServer(std::move(server_manager)); } diff --git a/src/core/hle/service/pm/pm.h b/src/core/hle/service/pm/pm.h index da70cfc6b8..5d4a1a171c 100644 --- a/src/core/hle/service/pm/pm.h +++ b/src/core/hle/service/pm/pm.h @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/prepo/prepo.h b/src/core/hle/service/prepo/prepo.h index 4caf752888..2c2462f936 100644 --- a/src/core/hle/service/prepo/prepo.h +++ b/src/core/hle/service/prepo/prepo.h @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/psc/ovln/ovln_types.h b/src/core/hle/service/psc/ovln/ovln_types.h index d827f039fe..f96b52fb49 100644 --- a/src/core/hle/service/psc/ovln/ovln_types.h +++ b/src/core/hle/service/psc/ovln/ovln_types.h @@ -1,4 +1,4 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project +// SPDX-FileCopyrightText: Copyright 2025 Eden Emulator Project // SPDX-License-Identifier: GPL-3.0-or-later // SPDX-FileCopyrightText: Copyright 2024 yuzu Emulator Project diff --git a/src/core/hle/service/psc/ovln/receiver.h b/src/core/hle/service/psc/ovln/receiver.h index 5f73d1a66c..2b96216a1a 100644 --- a/src/core/hle/service/psc/ovln/receiver.h +++ b/src/core/hle/service/psc/ovln/receiver.h @@ -1,4 +1,4 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project +// SPDX-FileCopyrightText: Copyright 2025 Eden Emulator Project // SPDX-License-Identifier: GPL-3.0-or-later // SPDX-FileCopyrightText: Copyright 2024 yuzu Emulator Project diff --git a/src/core/hle/service/psc/ovln/receiver_service.cpp b/src/core/hle/service/psc/ovln/receiver_service.cpp index 3b0b180725..d869325181 100644 --- a/src/core/hle/service/psc/ovln/receiver_service.cpp +++ b/src/core/hle/service/psc/ovln/receiver_service.cpp @@ -1,4 +1,4 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project +// SPDX-FileCopyrightText: Copyright 2025 Eden Emulator Project // SPDX-License-Identifier: GPL-3.0-or-later // SPDX-FileCopyrightText: Copyright 2024 yuzu Emulator Project @@ -24,7 +24,7 @@ IReceiverService::~IReceiverService() = default; Result IReceiverService::OpenReceiver(Out> out_receiver) { LOG_DEBUG(Service_PSC, "called"); - *out_receiver = std::make_shared(system); + *out_receiver = std::shared_ptr(new IReceiver(system)); R_SUCCEED(); } diff --git a/src/core/hle/service/psc/ovln/receiver_service.h b/src/core/hle/service/psc/ovln/receiver_service.h index a7a9b012e8..b3b31ba4aa 100644 --- a/src/core/hle/service/psc/ovln/receiver_service.h +++ b/src/core/hle/service/psc/ovln/receiver_service.h @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2024 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/psc/ovln/sender.cpp b/src/core/hle/service/psc/ovln/sender.cpp index dffcd4bc36..3227a56f25 100644 --- a/src/core/hle/service/psc/ovln/sender.cpp +++ b/src/core/hle/service/psc/ovln/sender.cpp @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2024 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/psc/ovln/sender.h b/src/core/hle/service/psc/ovln/sender.h index 9b0fe786bd..c1575428e3 100644 --- a/src/core/hle/service/psc/ovln/sender.h +++ b/src/core/hle/service/psc/ovln/sender.h @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2024 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/psc/ovln/sender_service.cpp b/src/core/hle/service/psc/ovln/sender_service.cpp index 8f80a5c461..18d2c83a3d 100644 --- a/src/core/hle/service/psc/ovln/sender_service.cpp +++ b/src/core/hle/service/psc/ovln/sender_service.cpp @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2024 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/psc/ovln/sender_service.h b/src/core/hle/service/psc/ovln/sender_service.h index 8176e85e23..10027701f4 100644 --- a/src/core/hle/service/psc/ovln/sender_service.h +++ b/src/core/hle/service/psc/ovln/sender_service.h @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2024 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/psc/pm_control.cpp b/src/core/hle/service/psc/pm_control.cpp index fc5852f863..7dedb76629 100644 --- a/src/core/hle/service/psc/pm_control.cpp +++ b/src/core/hle/service/psc/pm_control.cpp @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2024 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/psc/pm_control.h b/src/core/hle/service/psc/pm_control.h index 7967f7ab18..e0ae2f39ca 100644 --- a/src/core/hle/service/psc/pm_control.h +++ b/src/core/hle/service/psc/pm_control.h @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2024 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/psc/pm_module.cpp b/src/core/hle/service/psc/pm_module.cpp index 38ca36ab8f..74dc7ed4e8 100644 --- a/src/core/hle/service/psc/pm_module.cpp +++ b/src/core/hle/service/psc/pm_module.cpp @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2024 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/psc/pm_module.h b/src/core/hle/service/psc/pm_module.h index dac8fcff2a..b3a2d25842 100644 --- a/src/core/hle/service/psc/pm_module.h +++ b/src/core/hle/service/psc/pm_module.h @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2024 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/psc/pm_service.cpp b/src/core/hle/service/psc/pm_service.cpp index d1803bdf48..c4e0ad2286 100644 --- a/src/core/hle/service/psc/pm_service.cpp +++ b/src/core/hle/service/psc/pm_service.cpp @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2024 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/psc/pm_service.h b/src/core/hle/service/psc/pm_service.h index 721a0602c9..08e14c6f8f 100644 --- a/src/core/hle/service/psc/pm_service.h +++ b/src/core/hle/service/psc/pm_service.h @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2024 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/psc/psc.h b/src/core/hle/service/psc/psc.h index d89e6854cc..c83d07ca80 100644 --- a/src/core/hle/service/psc/psc.h +++ b/src/core/hle/service/psc/psc.h @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/psc/time/clocks/ephemeral_network_system_clock_core.h b/src/core/hle/service/psc/time/clocks/ephemeral_network_system_clock_core.h index 0abe200206..0a68867d94 100644 --- a/src/core/hle/service/psc/time/clocks/ephemeral_network_system_clock_core.h +++ b/src/core/hle/service/psc/time/clocks/ephemeral_network_system_clock_core.h @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/psc/time/clocks/standard_local_system_clock_core.cpp b/src/core/hle/service/psc/time/clocks/standard_local_system_clock_core.cpp index d0e596c504..6a74d45946 100644 --- a/src/core/hle/service/psc/time/clocks/standard_local_system_clock_core.cpp +++ b/src/core/hle/service/psc/time/clocks/standard_local_system_clock_core.cpp @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/psc/time/clocks/standard_local_system_clock_core.h b/src/core/hle/service/psc/time/clocks/standard_local_system_clock_core.h index 832c6907a0..5722d8e965 100644 --- a/src/core/hle/service/psc/time/clocks/standard_local_system_clock_core.h +++ b/src/core/hle/service/psc/time/clocks/standard_local_system_clock_core.h @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/psc/time/clocks/standard_network_system_clock_core.cpp b/src/core/hle/service/psc/time/clocks/standard_network_system_clock_core.cpp index b3143ead71..6938d369fe 100644 --- a/src/core/hle/service/psc/time/clocks/standard_network_system_clock_core.cpp +++ b/src/core/hle/service/psc/time/clocks/standard_network_system_clock_core.cpp @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/psc/time/clocks/standard_network_system_clock_core.h b/src/core/hle/service/psc/time/clocks/standard_network_system_clock_core.h index 47a411e811..bfafc7d71f 100644 --- a/src/core/hle/service/psc/time/clocks/standard_network_system_clock_core.h +++ b/src/core/hle/service/psc/time/clocks/standard_network_system_clock_core.h @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/psc/time/clocks/standard_steady_clock_core.cpp b/src/core/hle/service/psc/time/clocks/standard_steady_clock_core.cpp index 8fc44fd691..7a72d7aa25 100644 --- a/src/core/hle/service/psc/time/clocks/standard_steady_clock_core.cpp +++ b/src/core/hle/service/psc/time/clocks/standard_steady_clock_core.cpp @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/psc/time/clocks/standard_steady_clock_core.h b/src/core/hle/service/psc/time/clocks/standard_steady_clock_core.h index 342d6385fd..bbf98fcd5c 100644 --- a/src/core/hle/service/psc/time/clocks/standard_steady_clock_core.h +++ b/src/core/hle/service/psc/time/clocks/standard_steady_clock_core.h @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/psc/time/clocks/standard_user_system_clock_core.h b/src/core/hle/service/psc/time/clocks/standard_user_system_clock_core.h index 14c8e613f4..32b8bc3bcd 100644 --- a/src/core/hle/service/psc/time/clocks/standard_user_system_clock_core.h +++ b/src/core/hle/service/psc/time/clocks/standard_user_system_clock_core.h @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/psc/time/clocks/steady_clock_core.h b/src/core/hle/service/psc/time/clocks/steady_clock_core.h index 31be5e25ad..f933cc15f8 100644 --- a/src/core/hle/service/psc/time/clocks/steady_clock_core.h +++ b/src/core/hle/service/psc/time/clocks/steady_clock_core.h @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/psc/time/clocks/system_clock_core.cpp b/src/core/hle/service/psc/time/clocks/system_clock_core.cpp index 7ca5e8515e..2b7466831d 100644 --- a/src/core/hle/service/psc/time/clocks/system_clock_core.cpp +++ b/src/core/hle/service/psc/time/clocks/system_clock_core.cpp @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/psc/time/clocks/system_clock_core.h b/src/core/hle/service/psc/time/clocks/system_clock_core.h index d95bab5191..0b928432fb 100644 --- a/src/core/hle/service/psc/time/clocks/system_clock_core.h +++ b/src/core/hle/service/psc/time/clocks/system_clock_core.h @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/psc/time/clocks/tick_based_steady_clock_core.cpp b/src/core/hle/service/psc/time/clocks/tick_based_steady_clock_core.cpp index 8666df57f1..22da1fbccc 100644 --- a/src/core/hle/service/psc/time/clocks/tick_based_steady_clock_core.cpp +++ b/src/core/hle/service/psc/time/clocks/tick_based_steady_clock_core.cpp @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/psc/time/clocks/tick_based_steady_clock_core.h b/src/core/hle/service/psc/time/clocks/tick_based_steady_clock_core.h index 62890cd5ca..a7bea86a25 100644 --- a/src/core/hle/service/psc/time/clocks/tick_based_steady_clock_core.h +++ b/src/core/hle/service/psc/time/clocks/tick_based_steady_clock_core.h @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/psc/time/common.cpp b/src/core/hle/service/psc/time/common.cpp index dce2249ea1..a6d9f02ca3 100644 --- a/src/core/hle/service/psc/time/common.cpp +++ b/src/core/hle/service/psc/time/common.cpp @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/psc/time/manager.h b/src/core/hle/service/psc/time/manager.h index 7c771d25f5..62ded12475 100644 --- a/src/core/hle/service/psc/time/manager.h +++ b/src/core/hle/service/psc/time/manager.h @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/psc/time/power_state_request_manager.h b/src/core/hle/service/psc/time/power_state_request_manager.h index 325f73913b..30a0c947d6 100644 --- a/src/core/hle/service/psc/time/power_state_request_manager.h +++ b/src/core/hle/service/psc/time/power_state_request_manager.h @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/psc/time/shared_memory.cpp b/src/core/hle/service/psc/time/shared_memory.cpp index b6841a87cb..adef6bcd8b 100644 --- a/src/core/hle/service/psc/time/shared_memory.cpp +++ b/src/core/hle/service/psc/time/shared_memory.cpp @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/psc/time/time_zone.cpp b/src/core/hle/service/psc/time/time_zone.cpp index e537a821db..81bfb90929 100644 --- a/src/core/hle/service/psc/time/time_zone.cpp +++ b/src/core/hle/service/psc/time/time_zone.cpp @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/psc/time/time_zone.h b/src/core/hle/service/psc/time/time_zone.h index 68a235e440..0e4ed6ed00 100644 --- a/src/core/hle/service/psc/time/time_zone.h +++ b/src/core/hle/service/psc/time/time_zone.h @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/ptm/ptm.h b/src/core/hle/service/ptm/ptm.h index a62877e441..a0ae03d282 100644 --- a/src/core/hle/service/ptm/ptm.h +++ b/src/core/hle/service/ptm/ptm.h @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2022 yuzu Emulator Project // SPDX-License-Identifier: GPL-3.0-or-later diff --git a/src/core/hle/service/ptm/ts.h b/src/core/hle/service/ptm/ts.h index d8a0d49bf8..a10a91a64b 100644 --- a/src/core/hle/service/ptm/ts.h +++ b/src/core/hle/service/ptm/ts.h @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2022 yuzu Emulator Project // SPDX-License-Identifier: GPL-3.0-or-later diff --git a/src/core/hle/service/ro/ro.cpp b/src/core/hle/service/ro/ro.cpp index 335efa3ad3..922fc10440 100644 --- a/src/core/hle/service/ro/ro.cpp +++ b/src/core/hle/service/ro/ro.cpp @@ -7,7 +7,6 @@ #include #include -#include "common/scope_exit.h" #include "core/hle/kernel/k_process.h" #include "core/hle/service/cmif_serialization.h" @@ -17,10 +16,6 @@ #include "core/hle/service/ro/ro_types.h" #include "core/hle/service/server_manager.h" #include "core/hle/service/service.h" -#ifdef HAS_NCE -#include "core/arm/nce/patcher.h" -#include "core/hle/kernel/k_shared_memory.h" -#endif namespace Service::RO { @@ -391,7 +386,7 @@ public: R_SUCCEED(); } - Result MapManualLoadModuleMemory(Kernel::KernelCore& kernel, u64* out_address, size_t context_id, u64 nro_address, + Result MapManualLoadModuleMemory(u64* out_address, size_t context_id, u64 nro_address, u64 nro_size, u64 bss_address, u64 bss_size) { // Get context. ProcessContext* context = this->GetContextById(context_id); @@ -426,51 +421,10 @@ public: R_TRY(context->ValidateNro(std::addressof(nro_info->module_id), std::addressof(rx_size), std::addressof(ro_size), std::addressof(rw_size), nro_info->base_address, nro_size, bss_size)); - R_TRY(SetNroPerms(context->GetProcess(), nro_info->base_address, rx_size, ro_size, rw_size + bss_size)); -#ifdef HAS_NCE - if (Settings::IsNceEnabled()) { - auto* process = context->GetProcess(); - auto& memory = process->GetMemory(); - std::vector text(rx_size); - memory.ReadBlock(nro_info->base_address, text.data(), text.size()); - Core::NCE::Patcher patch{text}; - const size_t patch_size = patch.GetSectionSize(); - if (patch_size != 0) { - constexpr auto permission = Kernel::Svc::MemoryPermission::ReadExecute; - auto* patch_memory = Kernel::KSharedMemory::Create(kernel); - SCOPE_EXIT { patch_memory->Close(kernel); }; - R_TRY(patch_memory->Initialize(kernel, kernel.System().DeviceMemory(), process, permission, permission, patch_size)); - Kernel::KSharedMemory::Register(kernel, patch_memory); - const std::array offsets{static_cast(total_size + Kernel::PageSize),-static_cast(patch_size + Kernel::PageSize)}; - std::vector tls_patches; - std::span instructions; - u64 patch_address = 0; - for (const s64 offset : offsets) { - instructions = patch.RelocateRuntimeTls(offset, tls_patches); - if (instructions.empty()) {continue;} - const u64 address = static_cast(static_cast(nro_info->base_address) + offset); - if (R_FAILED(patch_memory->Map(*process, address, patch_size, permission))) {continue;} - patch_address = address; - break; - } - R_UNLESS(patch_address != 0, RO::ResultOutOfAddressSpace); - const Result add_shared_memory_result = process->AddSharedMemory(kernel, patch_memory, patch_address, patch_size); - if (R_FAILED(add_shared_memory_result)) { - R_ASSERT(patch_memory->Unmap(*process, patch_address, patch_size)); - } - R_TRY(add_shared_memory_result); - std::memcpy(patch_memory->GetPointer(), instructions.data(), instructions.size_bytes()); - auto* ptr = reinterpret_cast(patch_address); - __builtin___clear_cache(ptr, ptr + instructions.size_bytes()); - for (const auto& instruction : tls_patches) { - const u64 address = nro_info->base_address + instruction.offset; - memory.Write32(address, instruction.replacement); - ptr = reinterpret_cast(address); - __builtin___clear_cache(ptr, ptr + sizeof(u32)); - } - } - } -#endif + + // Set NRO perms. + R_TRY(SetNroPerms(context->GetProcess(), nro_info->base_address, rx_size, ro_size, + rw_size + bss_size)); context->SetNroInfoInUse(nro_info, true); nro_info->code_size = rx_size + ro_size; @@ -577,7 +531,7 @@ public: Result MapManualLoadModuleMemory(Out out_load_address, ClientProcessId client_pid, u64 nro_address, u64 nro_size, u64 bss_address, u64 bss_size) { R_TRY(m_ro->ValidateProcess(m_context_id, *client_pid)); - R_RETURN(m_ro->MapManualLoadModuleMemory(system.Kernel(), out_load_address.Get(), m_context_id, nro_address, + R_RETURN(m_ro->MapManualLoadModuleMemory(out_load_address.Get(), m_context_id, nro_address, nro_size, bss_address, bss_size)); } @@ -639,9 +593,9 @@ void LoopProcess(Core::System& system) { return std::make_shared(system, "ldr:ro", ro, NrrKind::User); }; - server_manager->RegisterNamedService("ldr:ro", std::move(RoInterfaceFactoryForUser), 2); - server_manager->RegisterNamedService("ro:1", std::make_shared(system, "ro:1", ro, NrrKind::JitPlugin), 2); - server_manager->RegisterNamedService("ro:dmnt", std::make_shared(system), 2); + server_manager->RegisterNamedService("ldr:ro", std::move(RoInterfaceFactoryForUser)); + server_manager->RegisterNamedService("ro:1", std::make_shared(system, "ro:1", ro, NrrKind::JitPlugin)); + server_manager->RegisterNamedService("ro:dmnt", std::make_shared(system)); ServerManager::RunServer(std::move(server_manager)); } diff --git a/src/core/hle/service/ro/ro.h b/src/core/hle/service/ro/ro.h index c93aac3833..74dc085368 100644 --- a/src/core/hle/service/ro/ro.h +++ b/src/core/hle/service/ro/ro.h @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/ro/ro_nro_utils.cpp b/src/core/hle/service/ro/ro_nro_utils.cpp index 1c2a97619d..268c7f93e7 100644 --- a/src/core/hle/service/ro/ro_nro_utils.cpp +++ b/src/core/hle/service/ro/ro_nro_utils.cpp @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/ro/ro_nro_utils.h b/src/core/hle/service/ro/ro_nro_utils.h index 32b97abed2..f7083a1ba3 100644 --- a/src/core/hle/service/ro/ro_nro_utils.h +++ b/src/core/hle/service/ro/ro_nro_utils.h @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/server_manager.h b/src/core/hle/service/server_manager.h index d86d20b7c5..5173ce46e1 100644 --- a/src/core/hle/service/server_manager.h +++ b/src/core/hle/service/server_manager.h @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/service.cpp b/src/core/hle/service/service.cpp index b4fe2b3ed5..225b92a783 100644 --- a/src/core/hle/service/service.cpp +++ b/src/core/hle/service/service.cpp @@ -4,12 +4,16 @@ // SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later +#include #include +#include +#include #include "common/assert.h" #include "common/logging.h" #include "common/settings.h" #include "core/core.h" #include "core/hle/ipc.h" +#include "core/hle/kernel/k_process.h" #include "core/hle/kernel/kernel.h" #include "core/hle/service/ipc_helpers.h" #include "core/hle/service/service.h" @@ -33,6 +37,7 @@ ServiceFrameworkBase::ServiceFrameworkBase(Core::System& system_, const char* se : SessionRequestHandler(system_.Kernel(), service_name_) , system{system_} , service_name{service_name_} + , is_i_storage{std::string_view{service_name_} == "IStorage"} , handler_invoker{handler_invoker_} , max_sessions{max_sessions_} {} @@ -77,13 +82,22 @@ void ServiceFrameworkBase::ReportUnimplementedFunction(HLERequestContext& ctx, } void ServiceFrameworkBase::InvokeRequest(HLERequestContext& ctx) { - auto it = handlers.find(ctx.GetCommand()); + const auto command = ctx.GetCommand(); + auto it = handlers.find(command); + const bool is_cmd_read = command == 0; FunctionInfoBase const* info = it == handlers.end() ? nullptr : &it->second; if (info == nullptr || info->handler_callback == nullptr) return ReportUnimplementedFunction(ctx, info); LOG_TRACE(Service, "{}", MakeFunctionString(info->name, GetServiceName(), ctx.CommandBuffer())); handler_invoker(this, info->handler_callback, ctx); + + if (is_i_storage && is_cmd_read) { + const auto* const process = ctx.GetThread().GetOwnerProcess(); + if (process != nullptr && system.IsNVDECActiveForProcess(process->GetId())) { + std::this_thread::sleep_for(std::chrono::microseconds{600}); + } + } } void ServiceFrameworkBase::InvokeRequestTipc(HLERequestContext& ctx) { diff --git a/src/core/hle/service/service.h b/src/core/hle/service/service.h index 68b0d636d8..df56b69847 100644 --- a/src/core/hle/service/service.h +++ b/src/core/hle/service/service.h @@ -107,6 +107,8 @@ protected: Core::System& system; /// Identifier string used to connect to the service. const char* service_name; + /// Whether this is the IStorage service. + const bool is_i_storage; /// Function used to safely up-cast pointers to the derived class before invoking a handler. InvokerFn* handler_invoker; /// Maximum number of concurrent sessions that this service can handle. @@ -141,7 +143,7 @@ protected: /// @param expected_header_ request header in the command buffer which will trigger dispatch to this handler /// @param handler_callback_ member function in this service which will be called to handle the request /// @param name_ human-friendly name for the request. Used mostly for logging purposes. - FunctionInfoTyped(u32 expected_header_, HandlerFnP handler_callback_, const char* name_) + constexpr FunctionInfoTyped(u32 expected_header_, HandlerFnP handler_callback_, const char* name_) : FunctionInfoBase{expected_header_, HandlerFnP(handler_callback_), name_} {} }; using FunctionInfo = FunctionInfoTyped; diff --git a/src/core/hle/service/services.h b/src/core/hle/service/services.h index 4072afa3d1..da5281ff29 100644 --- a/src/core/hle/service/services.h +++ b/src/core/hle/service/services.h @@ -1,4 +1,4 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project +// SPDX-FileCopyrightText: Copyright 2025 Eden Emulator Project // SPDX-License-Identifier: GPL-3.0-or-later // SPDX-FileCopyrightText: Copyright 2024 yuzu Emulator Project diff --git a/src/core/hle/service/set/factory_settings_server.cpp b/src/core/hle/service/set/factory_settings_server.cpp index d663283c98..a8e307ae26 100644 --- a/src/core/hle/service/set/factory_settings_server.cpp +++ b/src/core/hle/service/set/factory_settings_server.cpp @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/set/factory_settings_server.h b/src/core/hle/service/set/factory_settings_server.h index ddffcee643..e64cd13809 100644 --- a/src/core/hle/service/set/factory_settings_server.h +++ b/src/core/hle/service/set/factory_settings_server.h @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/set/firmware_debug_settings_server.cpp b/src/core/hle/service/set/firmware_debug_settings_server.cpp index c491675567..b7c66047e6 100644 --- a/src/core/hle/service/set/firmware_debug_settings_server.cpp +++ b/src/core/hle/service/set/firmware_debug_settings_server.cpp @@ -1,4 +1,4 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project +// SPDX-FileCopyrightText: Copyright 2025 Eden Emulator Project // SPDX-License-Identifier: GPL-3.0-or-later // SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project diff --git a/src/core/hle/service/set/firmware_debug_settings_server.h b/src/core/hle/service/set/firmware_debug_settings_server.h index 05019faa9f..5dae2263e9 100644 --- a/src/core/hle/service/set/firmware_debug_settings_server.h +++ b/src/core/hle/service/set/firmware_debug_settings_server.h @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/set/key_code_map.h b/src/core/hle/service/set/key_code_map.h index 8e010e718b..c76dc57298 100644 --- a/src/core/hle/service/set/key_code_map.h +++ b/src/core/hle/service/set/key_code_map.h @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2024 yuzu Emulator Project // SPDX-License-Identifier: GPL-3.0-or-later diff --git a/src/core/hle/service/set/setting_formats/appln_settings.cpp b/src/core/hle/service/set/setting_formats/appln_settings.cpp index 5726a41cdf..f7c7d5b912 100644 --- a/src/core/hle/service/set/setting_formats/appln_settings.cpp +++ b/src/core/hle/service/set/setting_formats/appln_settings.cpp @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/set/setting_formats/appln_settings.h b/src/core/hle/service/set/setting_formats/appln_settings.h index 2128a631e0..ba9af998ab 100644 --- a/src/core/hle/service/set/setting_formats/appln_settings.h +++ b/src/core/hle/service/set/setting_formats/appln_settings.h @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/set/setting_formats/device_settings.cpp b/src/core/hle/service/set/setting_formats/device_settings.cpp index 6e9c321d8e..5f295404d9 100644 --- a/src/core/hle/service/set/setting_formats/device_settings.cpp +++ b/src/core/hle/service/set/setting_formats/device_settings.cpp @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/set/setting_formats/private_settings.cpp b/src/core/hle/service/set/setting_formats/private_settings.cpp index c3a67b60eb..81c3624826 100644 --- a/src/core/hle/service/set/setting_formats/private_settings.cpp +++ b/src/core/hle/service/set/setting_formats/private_settings.cpp @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/set/setting_formats/private_settings.h b/src/core/hle/service/set/setting_formats/private_settings.h index 75e3e03886..6579e95e04 100644 --- a/src/core/hle/service/set/setting_formats/private_settings.h +++ b/src/core/hle/service/set/setting_formats/private_settings.h @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/set/setting_formats/system_settings.cpp b/src/core/hle/service/set/setting_formats/system_settings.cpp index fd70e2ace3..258e213e13 100644 --- a/src/core/hle/service/set/setting_formats/system_settings.cpp +++ b/src/core/hle/service/set/setting_formats/system_settings.cpp @@ -1,4 +1,4 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project +// SPDX-FileCopyrightText: Copyright 2025 Eden Emulator Project // SPDX-License-Identifier: GPL-3.0-or-later // SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project diff --git a/src/core/hle/service/set/settings.cpp b/src/core/hle/service/set/settings.cpp index 407332b9b7..73d021ff4d 100644 --- a/src/core/hle/service/set/settings.cpp +++ b/src/core/hle/service/set/settings.cpp @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later @@ -16,10 +13,13 @@ namespace Service::Set { void LoopProcess(Core::System& system) { auto server_manager = std::make_unique(system); - server_manager->RegisterNamedService("set", std::make_shared(system), 60); - server_manager->RegisterNamedService("set:cal", std::make_shared(system), 60); - server_manager->RegisterNamedService("set:fd", std::make_shared(system), 60); - server_manager->RegisterNamedService("set:sys", std::make_shared(system), 60); + server_manager->RegisterNamedService("set", std::make_shared(system)); + server_manager->RegisterNamedService("set:cal", + std::make_shared(system)); + server_manager->RegisterNamedService("set:fd", + std::make_shared(system)); + server_manager->RegisterNamedService("set:sys", + std::make_shared(system)); ServerManager::RunServer(std::move(server_manager)); } diff --git a/src/core/hle/service/set/settings.h b/src/core/hle/service/set/settings.h index e6288af2e5..03cd4bb661 100644 --- a/src/core/hle/service/set/settings.h +++ b/src/core/hle/service/set/settings.h @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/set/settings_server.h b/src/core/hle/service/set/settings_server.h index c37a65cbc9..a9cee5f626 100644 --- a/src/core/hle/service/set/settings_server.h +++ b/src/core/hle/service/set/settings_server.h @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later @@ -49,7 +46,7 @@ private: Result GetDeviceNickName( OutLargeData, BufferAttr_HipcMapAlias> out_device_name); - + Result GetKeyCodeMapByPort(OutLargeData out_key_code_map, u32 port); }; diff --git a/src/core/hle/service/sm/sm.cpp b/src/core/hle/service/sm/sm.cpp index c75c5437df..45d2a14d62 100644 --- a/src/core/hle/service/sm/sm.cpp +++ b/src/core/hle/service/sm/sm.cpp @@ -53,7 +53,8 @@ static Result ValidateServiceName(const std::string& name) { return ResultSuccess; } -Result ServiceManager::RegisterService(Kernel::KServerPort** out_server_port, std::string name, u32 max_sessions, SessionRequestHandlerFactory handler) { +Result ServiceManager::RegisterService(Kernel::KServerPort** out_server_port, std::string name, + u32 max_sessions, SessionRequestHandlerFactory handler) { R_TRY(ValidateServiceName(name)); std::scoped_lock lk{lock}; @@ -63,7 +64,7 @@ Result ServiceManager::RegisterService(Kernel::KServerPort** out_server_port, st } auto* port = Kernel::KPort::Create(kernel); - port->Initialize(kernel, max_sessions, false, 0); + port->Initialize(kernel, ServerSessionCountMax, false, 0); // Register the port. Kernel::KPort::Register(kernel, port); @@ -263,7 +264,7 @@ void SM::AtmosphereHasService(HLERequestContext& ctx) { } SM::SM(ServiceManager& service_manager_, Core::System& system_) - : ServiceFramework{system_, "sm:", 64} + : ServiceFramework{system_, "sm:", 4} , service_manager{service_manager_} , kernel{system_.Kernel()} { diff --git a/src/core/hle/service/sm/sm_controller.h b/src/core/hle/service/sm/sm_controller.h index f1fa327ff7..f7e529a269 100644 --- a/src/core/hle/service/sm/sm_controller.h +++ b/src/core/hle/service/sm/sm_controller.h @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/sockets/bsd.h b/src/core/hle/service/sockets/bsd.h index 5cc3eb5b81..b542e196f0 100644 --- a/src/core/hle/service/sockets/bsd.h +++ b/src/core/hle/service/sockets/bsd.h @@ -1,6 +1,5 @@ // SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project // SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/sockets/sockets.cpp b/src/core/hle/service/sockets/sockets.cpp index e96d7c5638..e14617ddd8 100644 --- a/src/core/hle/service/sockets/sockets.cpp +++ b/src/core/hle/service/sockets/sockets.cpp @@ -64,17 +64,17 @@ public: void LoopProcess(Core::System& system) { auto server_manager = std::make_unique(system); - server_manager->RegisterNamedService("ethc:c", std::make_shared(system), 5); - server_manager->RegisterNamedService("ethc:i", std::make_shared(system), 5); - server_manager->RegisterNamedService("bsd:s", std::make_shared(system, "bsd:s", false), 0x7E); - server_manager->RegisterNamedService("bsd:u", std::make_shared(system, "bsd:u", true), 0x0f); - server_manager->RegisterNamedService("bsd:a", std::make_shared(system, "bsd:a", true), 0x17); - server_manager->RegisterNamedService("bsd:nu", std::make_shared(system), 4); + server_manager->RegisterNamedService("ethc:c", std::make_shared(system)); + server_manager->RegisterNamedService("ethc:i", std::make_shared(system)); + server_manager->RegisterNamedService("bsd:s", std::make_shared(system, "bsd:s", false)); + server_manager->RegisterNamedService("bsd:u", std::make_shared(system, "bsd:u", true)); + server_manager->RegisterNamedService("bsd:a", std::make_shared(system, "bsd:a", true)); + server_manager->RegisterNamedService("bsd:nu", std::make_shared(system)); server_manager->RegisterNamedService("bsdcfg", std::make_shared(system, "bsdcfg")); server_manager->RegisterNamedService("ifcfg", std::make_shared(system, "ifcfg")); server_manager->RegisterNamedService("nsd:a", std::make_shared(system, "nsd:a")); server_manager->RegisterNamedService("nsd:u", std::make_shared(system, "nsd:u")); - server_manager->RegisterNamedService("sfdnsres", std::make_shared(system), 30); + server_manager->RegisterNamedService("sfdnsres", std::make_shared(system)); server_manager->RegisterNamedService("dns:priv", std::make_shared(system)); server_manager->RegisterNamedService("eth:nd", std::make_shared(system)); diff --git a/src/core/hle/service/sockets/sockets_translate.h b/src/core/hle/service/sockets/sockets_translate.h index b1dfc71961..bd6721fd3e 100644 --- a/src/core/hle/service/sockets/sockets_translate.h +++ b/src/core/hle/service/sockets/sockets_translate.h @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2020 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/spl/spl_results.h b/src/core/hle/service/spl/spl_results.h index 8c09be49ab..dd7ba11f34 100644 --- a/src/core/hle/service/spl/spl_results.h +++ b/src/core/hle/service/spl/spl_results.h @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2021 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/spl/spl_types.h b/src/core/hle/service/spl/spl_types.h index d7f0c4afbb..91f9cc0321 100644 --- a/src/core/hle/service/spl/spl_types.h +++ b/src/core/hle/service/spl/spl_types.h @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2021 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/ssl/cert_store.cpp b/src/core/hle/service/ssl/cert_store.cpp index ee5bf8306b..b321e5d32b 100644 --- a/src/core/hle/service/ssl/cert_store.cpp +++ b/src/core/hle/service/ssl/cert_store.cpp @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2024 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/ssl/cert_store.h b/src/core/hle/service/ssl/cert_store.h index 4bbb3c9c1a..613d7b02af 100644 --- a/src/core/hle/service/ssl/cert_store.h +++ b/src/core/hle/service/ssl/cert_store.h @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2024 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/ssl/ssl.cpp b/src/core/hle/service/ssl/ssl.cpp index 999efd4295..750a7de236 100644 --- a/src/core/hle/service/ssl/ssl.cpp +++ b/src/core/hle/service/ssl/ssl.cpp @@ -48,12 +48,6 @@ enum class OptionType : u32 { EnableAlpn = 3, }; -// This is nn::ssl::sf::RenegotiationMode -enum RenegotiationMode : u32 { - None = 0, ///< None - Secure = 1, ///< Secure -}; - // This is nn::ssl::sf::SslVersion struct SslVersion { union { @@ -81,34 +75,34 @@ public: shared_data{shared_data_in}, backend{std::move(backend_in)} { // clang-format off static const FunctionInfo functions[] = { - {0, D<&ISslConnection::SetSocketDescriptor>, "SetSocketDescriptor"}, - {1, D<&ISslConnection::SetHostName>, "SetHostName"}, - {2, D<&ISslConnection::SetVerifyOption>, "SetVerifyOption"}, - {3, D<&ISslConnection::SetIoMode>, "SetIoMode"}, - {4, D<&ISslConnection::GetSocketDescriptor>, "GetSocketDescriptor"}, - {5, D<&ISslConnection::GetHostName>, "GetHostName"}, + {0, &ISslConnection::SetSocketDescriptor, "SetSocketDescriptor"}, + {1, &ISslConnection::SetHostName, "SetHostName"}, + {2, &ISslConnection::SetVerifyOption, "SetVerifyOption"}, + {3, &ISslConnection::SetIoMode, "SetIoMode"}, + {4, nullptr, "GetSocketDescriptor"}, + {5, nullptr, "GetHostName"}, {6, nullptr, "GetVerifyOption"}, - {7, D<&ISslConnection::GetIoMode>, "GetIoMode"}, - {8, D<&ISslConnection::DoHandshake>, "DoHandshake"}, + {7, nullptr, "GetIoMode"}, + {8, &ISslConnection::DoHandshake, "DoHandshake"}, {9, &ISslConnection::DoHandshakeGetServerCert, "DoHandshakeGetServerCert"}, - {10, D<&ISslConnection::Read>, "Read"}, - {11, D<&ISslConnection::Write>, "Write"}, - {12, D<&ISslConnection::Pending>, "Pending"}, - {13, D<&ISslConnection::Peek>, "Peek"}, - {14, D<&ISslConnection::Poll>, "Poll"}, - {15, D<&ISslConnection::GetVerifyCertError>, "GetVerifyCertError"}, - {16, D<&ISslConnection::GetNeededServerCertBufferSize>, "GetNeededServerCertBufferSize"}, - {17, D<&ISslConnection::SetSessionCacheMode>, "SetSessionCacheMode"}, - {18, D<&ISslConnection::GetSessionCacheMode>, "GetSessionCacheMode"}, - {19, D<&ISslConnection::FlushSessionCache>, "FlushSessionCache"}, - {20, D<&ISslConnection::SetRenegotiationMode>, "SetRenegotiationMode"}, - {21, D<&ISslConnection::GetRenegotiationMode>, "GetRenegotiationMode"}, - {22, D<&ISslConnection::SetOption>, "SetOption"}, - {23, D<&ISslConnection::GetOption>, "GetOption"}, + {10, &ISslConnection::Read, "Read"}, + {11, &ISslConnection::Write, "Write"}, + {12, &ISslConnection::Pending, "Pending"}, + {13, nullptr, "Peek"}, + {14, nullptr, "Poll"}, + {15, nullptr, "GetVerifyCertError"}, + {16, nullptr, "GetNeededServerCertBufferSize"}, + {17, &ISslConnection::SetSessionCacheMode, "SetSessionCacheMode"}, + {18, nullptr, "GetSessionCacheMode"}, + {19, nullptr, "FlushSessionCache"}, + {20, nullptr, "SetRenegotiationMode"}, + {21, nullptr, "GetRenegotiationMode"}, + {22, &ISslConnection::SetOption, "SetOption"}, + {23, &ISslConnection::GetOption, "GetOption"}, {24, nullptr, "GetVerifyCertErrors"}, {25, nullptr, "GetCipherInfo"}, - {26, D<&ISslConnection::SetNextAlpnProto>, "SetNextAlpnProto"}, - {27, D<&ISslConnection::GetNextAlpnProto>, "GetNextAlpnProto"}, + {26, &ISslConnection::SetNextAlpnProto, "SetNextAlpnProto"}, + {27, &ISslConnection::GetNextAlpnProto, "GetNextAlpnProto"}, {28, nullptr, "SetDtlsSocketDescriptor"}, {29, nullptr, "GetDtlsHandshakeTimeout"}, {30, nullptr, "SetPrivateOption"}, @@ -147,6 +141,80 @@ public: } private: + SslVersion ssl_version; + std::shared_ptr shared_data; + std::unique_ptr backend; + std::optional fd_to_close; + bool do_not_close_socket = false; + bool get_server_cert_chain = false; + bool skip_default_verify = false; + bool enable_alpn = false; + std::shared_ptr socket; + std::vector next_alpn_proto; + bool did_handshake = false; + u32 verify_option = 0; + + Result SetSocketDescriptorImpl(s32* out_fd, s32 fd) { + LOG_DEBUG(Service_SSL, "called, fd={}", fd); + ASSERT(!did_handshake); + auto bsd = system.ServiceManager().GetService("bsd:u"); + ASSERT_OR_EXECUTE(bsd, { return ResultInternalError; }); + + auto const res_v = bsd->DuplicateSocketImpl(fd); + if (auto *res = std::get_if(&res_v)) { + const s32 duplicated_fd = *res; + if (do_not_close_socket) { + *out_fd = duplicated_fd; + } else { + *out_fd = -1; + fd_to_close = duplicated_fd; + } + std::optional> sock = bsd->GetSocket(duplicated_fd); + if (!sock.has_value()) { + LOG_ERROR(Service_SSL, "invalid socket fd {} after duplication", duplicated_fd); + return ResultInvalidSocket; + } + socket = std::move(*sock); + backend->SetSocket(socket); + return ResultSuccess; + } + LOG_ERROR(Service_SSL, "Failed to duplicate socket with fd {}", fd); + return ResultInvalidSocket; + } + + Result SetHostNameImpl(const std::string& hostname) { + LOG_DEBUG(Service_SSL, "called. hostname={}", hostname); + ASSERT(!did_handshake); + return backend->SetHostName(hostname); + } + + Result SetVerifyOptionImpl(u32 option) { + ASSERT(!did_handshake); + LOG_DEBUG(Service_SSL, "called. option={} (forcing 0)", option); + verify_option = 0; + backend->SetVerifyOption(0); + return ResultSuccess; + } + + Result SetIoModeImpl(u32 input_mode) { + auto mode = static_cast(input_mode); + ASSERT(mode == IoMode::Blocking || mode == IoMode::NonBlocking); + ASSERT_OR_EXECUTE(socket, { return ResultNoSocket; }); + + const bool non_block = mode == IoMode::NonBlocking; + const Network::Errno error = socket->SetNonBlock(non_block); + if (error != Network::Errno::SUCCESS) { + LOG_ERROR(Service_SSL, "Failed to set native socket non-block flag to {}", non_block); + } + return ResultSuccess; + } + + Result SetSessionCacheModeImpl(u32 mode) { + ASSERT(!did_handshake); + LOG_WARNING(Service_SSL, "(STUBBED) called. value={}", mode); + return ResultSuccess; + } + Result DoHandshakeImpl() { ASSERT_OR_EXECUTE(!did_handshake && socket, { return ResultNoSocket; }); Result res = backend->DoHandshake(); @@ -166,17 +234,19 @@ private: }; if (!get_server_cert_chain) { // Just return the first one, unencoded. - ASSERT_OR_EXECUTE_MSG(!certs.empty(), { return {}; }, "Should be at least one server cert"); + ASSERT_OR_EXECUTE_MSG( + !certs.empty(), { return {}; }, "Should be at least one server cert"); return certs[0]; } std::vector ret; - Header header{0x4E4D684374726543, u32(certs.size()), 0}; + Header header{0x4E4D684374726543, static_cast(certs.size()), 0}; ret.insert(ret.end(), reinterpret_cast(&header), reinterpret_cast(&header + 1)); size_t data_offset = sizeof(Header) + certs.size() * sizeof(EntryHeader); for (auto& cert : certs) { - EntryHeader entry_header{u32(cert.size()), u32(data_offset)}; + EntryHeader entry_header{static_cast(cert.size()), static_cast(data_offset)}; data_offset += cert.size(); - ret.insert(ret.end(), reinterpret_cast(&entry_header), reinterpret_cast(&entry_header + 1)); + ret.insert(ret.end(), reinterpret_cast(&entry_header), + reinterpret_cast(&entry_header + 1)); } for (auto& cert : certs) { ret.insert(ret.end(), cert.begin(), cert.end()); @@ -184,77 +254,65 @@ private: return ret; } - Result SetSocketDescriptor(s32 in_fd, Out out_fd) { - LOG_DEBUG(Service_SSL, "called, fd={}", in_fd); - ASSERT(!did_handshake); - auto bsd = system.ServiceManager().GetService("bsd:u"); - ASSERT_OR_EXECUTE(bsd, { return ResultInternalError; }); - - auto const res_v = bsd->DuplicateSocketImpl(in_fd); - if (auto *res = std::get_if(&res_v)) { - const s32 dup_fd = *res; - *out_fd = do_not_close_socket ? dup_fd : -1; - if (!do_not_close_socket) - fd_to_close = dup_fd; - auto const sock = bsd->GetSocket(dup_fd); - if (!sock.has_value()) { - LOG_ERROR(Service_SSL, "invalid socket fd {} after duplication", dup_fd); - return ResultInvalidSocket; - } - socket = std::move(*sock); - backend->SetSocket(std::move(socket)); - return ResultSuccess; + Result ReadImpl(std::vector* out_data) { + ASSERT_OR_EXECUTE(did_handshake, { return ResultInternalError; }); + size_t actual_size{}; + Result res = backend->Read(&actual_size, *out_data); + if (res != ResultSuccess) { + return res; } - LOG_ERROR(Service_SSL, "Failed to duplicate socket with fd {}", in_fd); - return ResultInvalidSocket; + out_data->resize(actual_size); + return res; } - Result SetHostName(InBuffer buf) { - auto const hostname = Common::StringFromBuffer(buf); - LOG_DEBUG(Service_SSL, "called. hostname={}", hostname); - ASSERT(!did_handshake); - return backend->SetHostName(hostname.c_str()); + Result WriteImpl(size_t* out_size, std::span data) { + ASSERT_OR_EXECUTE(did_handshake, { return ResultInternalError; }); + return backend->Write(out_size, data); } - Result SetVerifyOption(u32 option) { - LOG_DEBUG(Service_SSL, "called. option={} (forcing 0)", option); - ASSERT(!did_handshake); - verify_option = 0; - backend->SetVerifyOption(0); - R_SUCCEED(); + Result PendingImpl(s32* out_pending) { + LOG_WARNING(Service_SSL, "(STUBBED) called."); + *out_pending = 0; + return ResultSuccess; } - Result SetIoMode(u32 input_mode) { - auto mode = IoMode(input_mode); - ASSERT(mode == IoMode::Blocking || mode == IoMode::NonBlocking); - R_UNLESS(socket, ResultNoSocket); - const bool non_block = mode == IoMode::NonBlocking; - const Network::Errno error = socket->SetNonBlock(non_block); - if (error != Network::Errno::SUCCESS) { - LOG_ERROR(Service_SSL, "Failed to set native socket non-block flag to {}", non_block); - } - R_SUCCEED(); + void SetSocketDescriptor(HLERequestContext& ctx) { + IPC::RequestParser rp{ctx}; + const s32 in_fd = rp.Pop(); + s32 out_fd{-1}; + const Result res = SetSocketDescriptorImpl(&out_fd, in_fd); + IPC::ResponseBuilder rb{ctx, 3}; + rb.Push(res); + rb.Push(out_fd); } - Result GetSocketDescriptor(Out out_fd) { - LOG_WARNING(Service_SSL, "(STUBBED)"); - *out_fd = uint32_t(socket->GetFD()); - R_SUCCEED(); + void SetHostName(HLERequestContext& ctx) { + const std::string hostname = Common::StringFromBuffer(ctx.ReadBuffer()); + const Result res = SetHostNameImpl(hostname); + IPC::ResponseBuilder rb{ctx, 2}; + rb.Push(res); } - Result GetHostName(OutBuffer data, Out out_size) { - LOG_WARNING(Service_SSL, "(STUBBED)"); - ASSERT(!did_handshake); - return backend->GetHostName(std::span{data.begin(), data.end()}, out_size); + void SetVerifyOption(HLERequestContext& ctx) { + IPC::RequestParser rp{ctx}; + const u32 option = rp.Pop(); + const Result res = SetVerifyOptionImpl(option); + IPC::ResponseBuilder rb{ctx, 2}; + rb.Push(res); } - Result GetIoMode(Out out_mode) { - LOG_WARNING(Service_SSL, "(STUBBED)"); - R_SUCCEED(); + void SetIoMode(HLERequestContext& ctx) { + IPC::RequestParser rp{ctx}; + const u32 mode = rp.Pop(); + const Result res = SetIoModeImpl(mode); + IPC::ResponseBuilder rb{ctx, 2}; + rb.Push(res); } - Result DoHandshake() { - return DoHandshakeImpl(); + void DoHandshake(HLERequestContext& ctx) { + const Result res = DoHandshakeImpl(); + IPC::ResponseBuilder rb{ctx, 2}; + rb.Push(res); } void DoHandshakeGetServerCert(HLERequestContext& ctx) { @@ -293,158 +351,131 @@ private: rb.PushRaw(out); } - Result Read(OutBuffer data, Out out_size) { - R_UNLESS(did_handshake, ResultInternalError); - size_t tmp{}; - auto const res = backend->Read(&tmp, data); - *out_size = u32(tmp); - return res; + void Read(HLERequestContext& ctx) { + std::vector output_bytes(ctx.GetWriteBufferSize()); + const Result res = ReadImpl(&output_bytes); + IPC::ResponseBuilder rb{ctx, 3}; + rb.Push(res); + if (res == ResultSuccess) { + rb.Push(static_cast(output_bytes.size())); + ctx.WriteBuffer(output_bytes); + } else { + rb.Push(static_cast(0)); + } } - Result Write(InBuffer data, Out out_size) { - R_UNLESS(did_handshake, ResultInternalError); - size_t tmp{}; - auto const res = backend->Write(&tmp, data); - *out_size = u32(tmp); - return res; + void Write(HLERequestContext& ctx) { + size_t write_size{0}; + const Result res = WriteImpl(&write_size, ctx.ReadBuffer()); + IPC::ResponseBuilder rb{ctx, 3}; + rb.Push(res); + rb.Push(static_cast(write_size)); } - Result Pending(Out out_pending_size) { - LOG_WARNING(Service_SSL, "(STUBBED)"); - *out_pending_size = s32(backend->Pending()); - R_SUCCEED(); + void Pending(HLERequestContext& ctx) { + s32 pending_size{0}; + const Result res = PendingImpl(&pending_size); + IPC::ResponseBuilder rb{ctx, 3}; + rb.Push(res); + rb.Push(pending_size); } - Result Peek(OutBuffer data, Out out_size) { - LOG_WARNING(Service_SSL, "(STUBBED)"); - size_t tmp{}; - auto const res = backend->Peek(&tmp, data); - *out_size = u32(tmp); - return res; + void SetSessionCacheMode(HLERequestContext& ctx) { + IPC::RequestParser rp{ctx}; + const u32 mode = rp.Pop(); + const Result res = SetSessionCacheModeImpl(mode); + IPC::ResponseBuilder rb{ctx, 2}; + rb.Push(res); } - Result Poll(u32 in_pollevent, u32 timer, Out out_pollevent) { - LOG_WARNING(Service_SSL, "(STUBBED)"); - R_SUCCEED(); - } + void SetOption(HLERequestContext& ctx) { + struct Parameters { + OptionType option; + s32 value; + }; + static_assert(sizeof(Parameters) == 0x8, "Parameters is an invalid size"); - Result GetVerifyCertError() { - LOG_WARNING(Service_SSL, "(STUBBED)"); - R_SUCCEED(); - } + IPC::RequestParser rp{ctx}; + const auto parameters = rp.PopRaw(); - Result GetNeededServerCertBufferSize(Out out_needed_buffer_size) { - LOG_WARNING(Service_SSL, "(STUBBED)"); - R_SUCCEED(); - } - - Result SetSessionCacheMode(u32 mode) { - LOG_WARNING(Service_SSL, "(STUBBED) called. value={}", mode); - R_UNLESS(!did_handshake, ResultInternalError); - R_SUCCEED(); - } - - Result GetSessionCacheMode(Out mode) { - LOG_WARNING(Service_SSL, "(STUBBED)"); - R_UNLESS(!did_handshake, ResultInternalError); - R_SUCCEED(); - } - - Result FlushSessionCache() { - LOG_WARNING(Service_SSL, "(STUBBED)"); - R_UNLESS(!did_handshake, ResultInternalError); - R_SUCCEED(); - } - - Result SetRenegotiationMode(RenegotiationMode mode) { - LOG_WARNING(Service_SSL, "(STUBBED)"); - backend->SetRenegotiationMode(u32(mode)); - R_SUCCEED(); - } - - Result GetRenegotiationMode(Out mode) { - LOG_WARNING(Service_SSL, "(STUBBED)"); - u32 tmp{}; - auto const res = backend->GetRenegotiationMode(&tmp); - *mode = RenegotiationMode(tmp); - return res; - } - - Result SetOption(OptionType option, s32 value) { - switch (option) { + switch (parameters.option) { case OptionType::DoNotCloseSocket: - do_not_close_socket = bool(value); + do_not_close_socket = static_cast(parameters.value); break; case OptionType::GetServerCertChain: - get_server_cert_chain = bool(value); + get_server_cert_chain = static_cast(parameters.value); break; case OptionType::SkipDefaultVerify: - skip_default_verify = bool(value); + skip_default_verify = static_cast(parameters.value); break; case OptionType::EnableAlpn: - enable_alpn = bool(value); + enable_alpn = static_cast(parameters.value); break; default: - LOG_WARNING(Service_SSL, "Unknown option={}, value={}", option, value); + LOG_WARNING(Service_SSL, "Unknown option={}, value={}", parameters.option, + parameters.value); } - R_SUCCEED(); + + IPC::ResponseBuilder rb{ctx, 2}; + rb.Push(ResultSuccess); } - Result GetOption(OptionType option, Out value) { + void GetOption(HLERequestContext& ctx) { + IPC::RequestParser rp{ctx}; + const auto option = rp.PopRaw(); + + u8 value = 0; + switch (option) { case OptionType::DoNotCloseSocket: - *value = u8(do_not_close_socket); + value = static_cast(do_not_close_socket); break; case OptionType::GetServerCertChain: - *value = u8(get_server_cert_chain); + value = static_cast(get_server_cert_chain); break; case OptionType::SkipDefaultVerify: - *value = u8(skip_default_verify); + value = static_cast(skip_default_verify); break; case OptionType::EnableAlpn: - *value = u8(enable_alpn); + value = static_cast(enable_alpn); break; default: - LOG_WARNING(Service_SSL, "Unknown option={}", u32(option)); - *value = 0; + LOG_WARNING(Service_SSL, "Unknown option={}", option); + value = 0; break; } - LOG_DEBUG(Service_SSL, "GetOption called, option={}, ret value={}", u32(option), *value); - R_SUCCEED(); + + LOG_DEBUG(Service_SSL, "GetOption called, option={}, ret value={}", option, value); + + IPC::ResponseBuilder rb{ctx, 3}; + rb.Push(ResultSuccess); + rb.Push(value); } - Result SetNextAlpnProto(InBuffer data) { - auto const to_write = u32((std::min)(next_alpn_proto.size(), data.size())); - next_alpn_proto.assign(data.begin(), data.begin() + to_write); + void SetNextAlpnProto(HLERequestContext& ctx) { + const auto data = ctx.ReadBuffer(0); + next_alpn_proto.assign(data.begin(), data.end()); + LOG_DEBUG(Service_SSL, "SetNextAlpnProto called, size={}", next_alpn_proto.size()); - R_SUCCEED(); + + IPC::ResponseBuilder rb{ctx, 2}; + rb.Push(ResultSuccess); } - Result GetNextAlpnProto(OutBuffer data, Out to_write) { - *to_write = u32((std::min)(next_alpn_proto.size(), data.size())); - next_alpn_proto.assign(data.begin(), data.begin() + *to_write); - LOG_DEBUG(Service_SSL, "GetNextAlpnProto called, size={}", *to_write); - R_SUCCEED(); + void GetNextAlpnProto(HLERequestContext& ctx) { + const size_t writable = ctx.GetWriteBufferSize(); + const size_t to_write = (std::min)(next_alpn_proto.size(), writable); + + if (to_write != 0) { + ctx.WriteBuffer(std::span(next_alpn_proto.data(), to_write)); + } + + LOG_DEBUG(Service_SSL, "GetNextAlpnProto called, size={}", to_write); + + IPC::ResponseBuilder rb{ctx, 3}; + rb.Push(ResultSuccess); + rb.Push(static_cast(to_write)); } - - Result GetVerifyCertErrors(OutBuffer unk0, Out unk1, Out unk2) { - LOG_WARNING(Service_SSL, "(STUBBED)"); - R_SUCCEED(); - } - - SslVersion ssl_version; - std::shared_ptr shared_data; - std::unique_ptr backend; - std::optional fd_to_close; - std::shared_ptr socket; - std::vector next_alpn_proto; - u32 verify_option = 0; - - bool do_not_close_socket = false; - bool get_server_cert_chain = false; - bool skip_default_verify = false; - bool enable_alpn = false; - bool did_handshake = false; }; class ISslContext final : public ServiceFramework { @@ -461,7 +492,7 @@ public: {5, &ISslContext::ImportClientPki, "ImportClientPki"}, {6, nullptr, "RemoveServerPki"}, {7, nullptr, "RemoveClientPki"}, - {8, D<&ISslContext::RegisterInternalPki>, "RegisterInternalPki"}, + {8, nullptr, "RegisterInternalPki"}, {9, nullptr, "AddPolicyOid"}, {10, nullptr, "ImportCrl"}, {11, nullptr, "RemoveCrl"}, @@ -556,11 +587,6 @@ private: rb.Push(ResultSuccess); rb.Push(client_id); } - - Result RegisterInternalPki() { - LOG_WARNING(Service_SSL, "(STUBBED) called"); - R_SUCCEED(); - } }; class ISslService final : public ServiceFramework { diff --git a/src/core/hle/service/ssl/ssl.h b/src/core/hle/service/ssl/ssl.h index dc9f2b746b..f6e21bbb3b 100644 --- a/src/core/hle/service/ssl/ssl.h +++ b/src/core/hle/service/ssl/ssl.h @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/ssl/ssl_backend.h b/src/core/hle/service/ssl/ssl_backend.h index ef6bf8f9de..a3127342a2 100644 --- a/src/core/hle/service/ssl/ssl_backend.h +++ b/src/core/hle/service/ssl/ssl_backend.h @@ -36,17 +36,12 @@ class SSLConnectionBackend { public: virtual ~SSLConnectionBackend() {} virtual void SetSocket(std::shared_ptr socket) = 0; + virtual Result SetHostName(const std::string& hostname) = 0; virtual void SetVerifyOption(u32 option) = 0; virtual Result DoHandshake() = 0; virtual Result Read(size_t* out_size, std::span data) = 0; - virtual Result Peek(size_t* out_size, std::span data) = 0; virtual Result Write(size_t* out_size, std::span data) = 0; virtual Result GetServerCerts(std::vector>* out_certs) = 0; - virtual Result SetHostName(const char* hostname) = 0; - virtual Result GetHostName(std::span hostname, u32* out_size) = 0; - virtual int Pending() = 0; - virtual Result SetRenegotiationMode(u32 mode) = 0; - virtual Result GetRenegotiationMode(u32* mode) = 0; }; Result CreateSSLConnectionBackend(std::unique_ptr* out_backend); diff --git a/src/core/hle/service/ssl/ssl_backend_openssl.cpp b/src/core/hle/service/ssl/ssl_backend_openssl.cpp index 435ada845d..f0e05266ba 100644 --- a/src/core/hle/service/ssl/ssl_backend_openssl.cpp +++ b/src/core/hle/service/ssl/ssl_backend_openssl.cpp @@ -157,30 +157,18 @@ public: socket = std::move(socket_in); } - Result SetHostName(const char* hostname) override { + Result SetHostName(const std::string& hostname) override { if (!skip_cert_verification) { - if (!SSL_set1_host(ssl, hostname)) { + if (!SSL_set1_host(ssl, hostname.c_str())) { LOG_ERROR(Service_SSL, "SSL_set1_host({}) failed", hostname); return CheckOpenSSLErrors(); } } - if (!SSL_set_tlsext_host_name(ssl, hostname)) { // hostname for SNI + if (!SSL_set_tlsext_host_name(ssl, hostname.c_str())) { // hostname for SNI LOG_ERROR(Service_SSL, "SSL_set_tlsext_host_name({}) failed", hostname); return CheckOpenSSLErrors(); } - R_SUCCEED(); - } - - Result GetHostName(std::span data, u32* out_size) override { - auto const peer_name = SSL_get0_peername(ssl); - if (peer_name == nullptr) { - LOG_ERROR(Service_SSL, "SSL_get0_peername()"); - return CheckOpenSSLErrors(); - } - auto const s = std::string{peer_name}; - *out_size = u32(s.size()); - std::memcpy(data.data(), s.data(), (std::min)(s.size(), data.size())); - R_SUCCEED(); + return ResultSuccess; } void SetVerifyOption(u32 option) override { @@ -225,13 +213,6 @@ public: return HandleReturn("SSL_read_ex", out_size, ret); } - Result Peek(size_t* out_size, std::span data) override { - auto const n = (std::min)(data.size(), *out_size); - const int ret = SSL_peek(ssl, data.data(), int(n)); - *out_size = n; - return HandleReturn("SSL_write_ex", out_size, ret); - } - Result Write(size_t* out_size, std::span data) override { const int ret = SSL_write_ex(ssl, data.data(), data.size(), out_size); return HandleReturn("SSL_write_ex", out_size, ret); @@ -282,25 +263,7 @@ public: out_certs->emplace_back(buf, buf + len); OPENSSL_free(buf); } - R_SUCCEED(); - } - - int Pending() override { - return SSL_pending(ssl); - } - - Result SetRenegotiationMode(u32 mode) override { - if (mode == 0) { - SSL_CTX_set_options(ssl_ctx, SSL_OP_NO_RENEGOTIATION); - } else { - SSL_CTX_set_options(ssl_ctx, SSL_OP_ALLOW_CLIENT_RENEGOTIATION); - } - R_SUCCEED(); - } - - Result GetRenegotiationMode(u32* mode) override { - *mode = SSL_get_secure_renegotiation_support(ssl) ? 1 : 0; - R_SUCCEED(); + return ResultSuccess; } ~SSLConnectionBackendOpenSSL() { diff --git a/src/core/hle/service/ssl/ssl_backend_schannel.cpp b/src/core/hle/service/ssl/ssl_backend_schannel.cpp new file mode 100644 index 0000000000..2b68f29eaf --- /dev/null +++ b/src/core/hle/service/ssl/ssl_backend_schannel.cpp @@ -0,0 +1,563 @@ +// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project +// SPDX-License-Identifier: GPL-3.0-or-later + +// SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project +// SPDX-License-Identifier: GPL-2.0-or-later + +#include + +#include "common/error.h" +#include "common/fs/file.h" +#include "common/hex_util.h" +#include "common/string_util.h" + +#include "core/hle/service/ssl/ssl_backend.h" +#include "core/internal_network/network.h" +#include "core/internal_network/sockets.h" + +namespace { + +// These includes are inside the namespace to avoid a conflict on MinGW where +// the headers define an enum containing Network and Service as enumerators +// (which clash with the correspondingly named namespaces). +#define SECURITY_WIN32 +#include +#include +#include + +std::once_flag one_time_init_flag; +bool one_time_init_success = false; + +SCHANNEL_CRED schannel_cred{}; +CredHandle cred_handle; + +static void OneTimeInit() { + schannel_cred.dwVersion = SCHANNEL_CRED_VERSION; + schannel_cred.dwFlags = + SCH_USE_STRONG_CRYPTO | // don't allow insecure protocols + SCH_CRED_NO_SERVERNAME_CHECK | // don't validate server names + SCH_CRED_NO_DEFAULT_CREDS; // don't automatically present a client certificate + // ^ I'm assuming that nobody would want to connect Yuzu to a + // service that requires some OS-provided corporate client + // certificate, and presenting one to some arbitrary server + // might be a privacy concern? Who knows, though. + + const SECURITY_STATUS ret = + AcquireCredentialsHandle(nullptr, const_cast(UNISP_NAME), SECPKG_CRED_OUTBOUND, + nullptr, &schannel_cred, nullptr, nullptr, &cred_handle, nullptr); + if (ret != SEC_E_OK) { + // SECURITY_STATUS codes are a type of HRESULT and can be used with NativeErrorToString. + LOG_ERROR(Service_SSL, "AcquireCredentialsHandle failed: {}", + Common::NativeErrorToString(ret)); + return; + } + + if (getenv("SSLKEYLOGFILE")) { + LOG_CRITICAL(Service_SSL, "SSLKEYLOGFILE was set but Schannel does not support exporting " + "keys; not logging keys!"); + // Not fatal. + } + + one_time_init_success = true; +} + +} // namespace + +namespace Service::SSL { + +class SSLConnectionBackendSchannel final : public SSLConnectionBackend { +public: + Result Init() { + std::call_once(one_time_init_flag, OneTimeInit); + + if (!one_time_init_success) { + LOG_ERROR( + Service_SSL, + "Can't create SSL connection because Schannel one-time initialization failed"); + return ResultInternalError; + } + + return ResultSuccess; + } + + void SetSocket(std::shared_ptr socket_in) override { + socket = std::move(socket_in); + } + + Result SetHostName(const std::string& hostname_in) override { + hostname = hostname_in; + return ResultSuccess; + } + + void SetVerifyOption(u32 option) override { + skip_cert_verification = (option == 0); + LOG_WARNING(Service_SSL, "option={} skip_verification={}", option, + skip_cert_verification); + } + + Result DoHandshake() override { + while (1) { + Result r; + switch (handshake_state) { + case HandshakeState::Initial: + if ((r = FlushCiphertextWriteBuf()) != ResultSuccess || + (r = CallInitializeSecurityContext()) != ResultSuccess) { + return r; + } + // CallInitializeSecurityContext updated `handshake_state`. + continue; + case HandshakeState::ContinueNeeded: + case HandshakeState::IncompleteMessage: + if ((r = FlushCiphertextWriteBuf()) != ResultSuccess || + (r = FillCiphertextReadBuf()) != ResultSuccess) { + return r; + } + if (ciphertext_read_buf.empty()) { + LOG_ERROR(Service_SSL, "SSL handshake failed because server hung up"); + return ResultInternalError; + } + if ((r = CallInitializeSecurityContext()) != ResultSuccess) { + return r; + } + // CallInitializeSecurityContext updated `handshake_state`. + continue; + case HandshakeState::DoneAfterFlush: + if ((r = FlushCiphertextWriteBuf()) != ResultSuccess) { + return r; + } + handshake_state = HandshakeState::Connected; + return ResultSuccess; + case HandshakeState::Connected: + LOG_ERROR(Service_SSL, "Called DoHandshake but we already handshook"); + return ResultInternalError; + case HandshakeState::Error: + return ResultInternalError; + } + } + } + + Result FillCiphertextReadBuf() { + const size_t fill_size = read_buf_fill_size ? read_buf_fill_size : 4096; + read_buf_fill_size = 0; + // This unnecessarily zeroes the buffer; oh well. + const size_t offset = ciphertext_read_buf.size(); + ASSERT_OR_EXECUTE(offset + fill_size >= offset, { return ResultInternalError; }); + ciphertext_read_buf.resize(offset + fill_size, 0); + const auto read_span = std::span(ciphertext_read_buf).subspan(offset, fill_size); + const auto [actual, err] = socket->Recv(0, read_span); + switch (err) { + case Network::Errno::SUCCESS: + ASSERT(static_cast(actual) <= fill_size); + ciphertext_read_buf.resize(offset + actual); + return ResultSuccess; + case Network::Errno::AGAIN: + ciphertext_read_buf.resize(offset); + return ResultWouldBlock; + default: + ciphertext_read_buf.resize(offset); + LOG_ERROR(Service_SSL, "Socket recv returned Network::Errno {}", err); + return ResultInternalError; + } + } + + // Returns success if the write buffer has been completely emptied. + Result FlushCiphertextWriteBuf() { + while (!ciphertext_write_buf.empty()) { + const auto [actual, err] = socket->Send(ciphertext_write_buf, 0); + switch (err) { + case Network::Errno::SUCCESS: + ASSERT(static_cast(actual) <= ciphertext_write_buf.size()); + ciphertext_write_buf.erase(ciphertext_write_buf.begin(), + ciphertext_write_buf.begin() + actual); + break; + case Network::Errno::AGAIN: + return ResultWouldBlock; + default: + LOG_ERROR(Service_SSL, "Socket send returned Network::Errno {}", err); + return ResultInternalError; + } + } + return ResultSuccess; + } + + Result CallInitializeSecurityContext() { + unsigned long req = ISC_REQ_ALLOCATE_MEMORY | ISC_REQ_CONFIDENTIALITY | + ISC_REQ_INTEGRITY | ISC_REQ_REPLAY_DETECT | + ISC_REQ_SEQUENCE_DETECT | ISC_REQ_STREAM | + ISC_REQ_USE_SUPPLIED_CREDS; + + if (skip_cert_verification) { + req |= ISC_REQ_MANUAL_CRED_VALIDATION; + } + + unsigned long attr; + // https://learn.microsoft.com/en-us/windows/win32/secauthn/initializesecuritycontext--schannel + std::array input_buffers{{ + // only used if `initial_call_done` + { + // [0] + .cbBuffer = static_cast(ciphertext_read_buf.size()), + .BufferType = SECBUFFER_TOKEN, + .pvBuffer = ciphertext_read_buf.data(), + }, + { + // [1] (will be replaced by SECBUFFER_MISSING when SEC_E_INCOMPLETE_MESSAGE is + // returned, or SECBUFFER_EXTRA when SEC_E_CONTINUE_NEEDED is returned if the + // whole buffer wasn't used) + .cbBuffer = 0, + .BufferType = SECBUFFER_EMPTY, + .pvBuffer = nullptr, + }, + }}; + std::array output_buffers{{ + { + .cbBuffer = 0, + .BufferType = SECBUFFER_TOKEN, + .pvBuffer = nullptr, + }, // [0] + { + .cbBuffer = 0, + .BufferType = SECBUFFER_ALERT, + .pvBuffer = nullptr, + }, // [1] + }}; + SecBufferDesc input_desc{ + .ulVersion = SECBUFFER_VERSION, + .cBuffers = static_cast(input_buffers.size()), + .pBuffers = input_buffers.data(), + }; + SecBufferDesc output_desc{ + .ulVersion = SECBUFFER_VERSION, + .cBuffers = static_cast(output_buffers.size()), + .pBuffers = output_buffers.data(), + }; + ASSERT_OR_EXECUTE_MSG( + input_buffers[0].cbBuffer == ciphertext_read_buf.size(), + { return ResultInternalError; }, "read buffer too large"); + + bool initial_call_done = handshake_state != HandshakeState::Initial; + if (initial_call_done) { + LOG_DEBUG(Service_SSL, "Passing {} bytes into InitializeSecurityContext", + ciphertext_read_buf.size()); + } + + char* hostname_ptr = hostname ? const_cast(hostname->c_str()) : nullptr; + const SECURITY_STATUS ret = InitializeSecurityContextA( + &cred_handle, initial_call_done ? &ctxt : nullptr, hostname_ptr, req, + 0, // Reserved1 + 0, // TargetDataRep not used with Schannel + initial_call_done ? &input_desc : nullptr, + 0, // Reserved2 + initial_call_done ? nullptr : &ctxt, &output_desc, &attr, + nullptr); // ptsExpiry + + if (output_buffers[0].pvBuffer) { + const std::span span(static_cast(output_buffers[0].pvBuffer), + output_buffers[0].cbBuffer); + ciphertext_write_buf.insert(ciphertext_write_buf.end(), span.begin(), span.end()); + FreeContextBuffer(output_buffers[0].pvBuffer); + } + + if (output_buffers[1].pvBuffer) { + const std::span span(static_cast(output_buffers[1].pvBuffer), + output_buffers[1].cbBuffer); + // The documentation doesn't explain what format this data is in. + LOG_DEBUG(Service_SSL, "Got a {}-byte alert buffer: {}", span.size(), + Common::HexToString(span)); + } + + switch (ret) { + case SEC_I_CONTINUE_NEEDED: + LOG_DEBUG(Service_SSL, "InitializeSecurityContext => SEC_I_CONTINUE_NEEDED"); + if (input_buffers[1].BufferType == SECBUFFER_EXTRA) { + LOG_DEBUG(Service_SSL, "EXTRA of size {}", input_buffers[1].cbBuffer); + ASSERT(input_buffers[1].cbBuffer <= ciphertext_read_buf.size()); + ciphertext_read_buf.erase(ciphertext_read_buf.begin(), + ciphertext_read_buf.end() - input_buffers[1].cbBuffer); + } else { + ASSERT(input_buffers[1].BufferType == SECBUFFER_EMPTY); + ciphertext_read_buf.clear(); + } + handshake_state = HandshakeState::ContinueNeeded; + return ResultSuccess; + case SEC_E_INCOMPLETE_MESSAGE: + LOG_DEBUG(Service_SSL, "InitializeSecurityContext => SEC_E_INCOMPLETE_MESSAGE"); + ASSERT(input_buffers[1].BufferType == SECBUFFER_MISSING); + read_buf_fill_size = input_buffers[1].cbBuffer; + handshake_state = HandshakeState::IncompleteMessage; + return ResultSuccess; + case SEC_E_OK: + LOG_DEBUG(Service_SSL, "InitializeSecurityContext => SEC_E_OK"); + ciphertext_read_buf.clear(); + handshake_state = HandshakeState::DoneAfterFlush; + return GrabStreamSizes(); + default: + LOG_ERROR(Service_SSL, + "InitializeSecurityContext failed (probably certificate/protocol issue): {}", + Common::NativeErrorToString(ret)); + handshake_state = HandshakeState::Error; + return ResultInternalError; + } + } + + Result GrabStreamSizes() { + const SECURITY_STATUS ret = + QueryContextAttributes(&ctxt, SECPKG_ATTR_STREAM_SIZES, &stream_sizes); + if (ret != SEC_E_OK) { + LOG_ERROR(Service_SSL, "QueryContextAttributes(SECPKG_ATTR_STREAM_SIZES) failed: {}", + Common::NativeErrorToString(ret)); + handshake_state = HandshakeState::Error; + return ResultInternalError; + } + return ResultSuccess; + } + + Result Read(size_t* out_size, std::span data) override { + *out_size = 0; + if (handshake_state != HandshakeState::Connected) { + LOG_ERROR(Service_SSL, "Called Read but we did not successfully handshake"); + return ResultInternalError; + } + if (data.size() == 0 || got_read_eof) { + return ResultSuccess; + } + while (1) { + if (!cleartext_read_buf.empty()) { + *out_size = (std::min)(cleartext_read_buf.size(), data.size()); + std::memcpy(data.data(), cleartext_read_buf.data(), *out_size); + cleartext_read_buf.erase(cleartext_read_buf.begin(), + cleartext_read_buf.begin() + *out_size); + return ResultSuccess; + } + if (!ciphertext_read_buf.empty()) { + SecBuffer empty{ + .cbBuffer = 0, + .BufferType = SECBUFFER_EMPTY, + .pvBuffer = nullptr, + }; + std::array buffers{{ + { + .cbBuffer = static_cast(ciphertext_read_buf.size()), + .BufferType = SECBUFFER_DATA, + .pvBuffer = ciphertext_read_buf.data(), + }, + empty, + empty, + empty, + }}; + ASSERT_OR_EXECUTE_MSG( + buffers[0].cbBuffer == ciphertext_read_buf.size(), + { return ResultInternalError; }, "read buffer too large"); + SecBufferDesc desc{ + .ulVersion = SECBUFFER_VERSION, + .cBuffers = static_cast(buffers.size()), + .pBuffers = buffers.data(), + }; + SECURITY_STATUS ret = + DecryptMessage(&ctxt, &desc, /*MessageSeqNo*/ 0, /*pfQOP*/ nullptr); + switch (ret) { + case SEC_E_OK: + ASSERT_OR_EXECUTE(buffers[0].BufferType == SECBUFFER_STREAM_HEADER, + { return ResultInternalError; }); + ASSERT_OR_EXECUTE(buffers[1].BufferType == SECBUFFER_DATA, + { return ResultInternalError; }); + ASSERT_OR_EXECUTE(buffers[2].BufferType == SECBUFFER_STREAM_TRAILER, + { return ResultInternalError; }); + cleartext_read_buf.assign(static_cast(buffers[1].pvBuffer), + static_cast(buffers[1].pvBuffer) + + buffers[1].cbBuffer); + if (buffers[3].BufferType == SECBUFFER_EXTRA) { + ASSERT(buffers[3].cbBuffer <= ciphertext_read_buf.size()); + ciphertext_read_buf.erase(ciphertext_read_buf.begin(), + ciphertext_read_buf.end() - buffers[3].cbBuffer); + } else { + ASSERT(buffers[3].BufferType == SECBUFFER_EMPTY); + ciphertext_read_buf.clear(); + } + continue; + case SEC_E_INCOMPLETE_MESSAGE: + break; + case SEC_I_CONTEXT_EXPIRED: + // Server hung up by sending close_notify. + got_read_eof = true; + *out_size = 0; + return ResultSuccess; + default: + LOG_ERROR(Service_SSL, "DecryptMessage failed: {}", + Common::NativeErrorToString(ret)); + return ResultInternalError; + } + } + const Result r = FillCiphertextReadBuf(); + if (r != ResultSuccess) { + return r; + } + if (ciphertext_read_buf.empty()) { + got_read_eof = true; + *out_size = 0; + return ResultSuccess; + } + } + } + + Result Write(size_t* out_size, std::span data) override { + *out_size = 0; + + if (handshake_state != HandshakeState::Connected) { + LOG_ERROR(Service_SSL, "Called Write but we did not successfully handshake"); + return ResultInternalError; + } + if (data.size() == 0) { + return ResultSuccess; + } + data = data.subspan(0, std::min(data.size(), stream_sizes.cbMaximumMessage)); + if (!cleartext_write_buf.empty()) { + // Already in the middle of a write. It wouldn't make sense to not + // finish sending the entire buffer since TLS has + // header/MAC/padding/etc. + if (data.size() != cleartext_write_buf.size() || + std::memcmp(data.data(), cleartext_write_buf.data(), data.size())) { + LOG_ERROR(Service_SSL, "Called Write but buffer does not match previous buffer"); + return ResultInternalError; + } + return WriteAlreadyEncryptedData(out_size); + } else { + cleartext_write_buf.assign(data.begin(), data.end()); + } + + std::vector header_buf(stream_sizes.cbHeader, 0); + std::vector tmp_data_buf = cleartext_write_buf; + std::vector trailer_buf(stream_sizes.cbTrailer, 0); + + std::array buffers{{ + { + .cbBuffer = stream_sizes.cbHeader, + .BufferType = SECBUFFER_STREAM_HEADER, + .pvBuffer = header_buf.data(), + }, + { + .cbBuffer = static_cast(tmp_data_buf.size()), + .BufferType = SECBUFFER_DATA, + .pvBuffer = tmp_data_buf.data(), + }, + { + .cbBuffer = stream_sizes.cbTrailer, + .BufferType = SECBUFFER_STREAM_TRAILER, + .pvBuffer = trailer_buf.data(), + }, + }}; + ASSERT_OR_EXECUTE_MSG( + buffers[1].cbBuffer == tmp_data_buf.size(), { return ResultInternalError; }, + "temp buffer too large"); + SecBufferDesc desc{ + .ulVersion = SECBUFFER_VERSION, + .cBuffers = static_cast(buffers.size()), + .pBuffers = buffers.data(), + }; + + const SECURITY_STATUS ret = EncryptMessage(&ctxt, /*fQOP*/ 0, &desc, /*MessageSeqNo*/ 0); + if (ret != SEC_E_OK) { + LOG_ERROR(Service_SSL, "EncryptMessage failed: {}", Common::NativeErrorToString(ret)); + return ResultInternalError; + } + ciphertext_write_buf.insert(ciphertext_write_buf.end(), header_buf.begin(), + header_buf.end()); + ciphertext_write_buf.insert(ciphertext_write_buf.end(), tmp_data_buf.begin(), + tmp_data_buf.end()); + ciphertext_write_buf.insert(ciphertext_write_buf.end(), trailer_buf.begin(), + trailer_buf.end()); + return WriteAlreadyEncryptedData(out_size); + } + + Result WriteAlreadyEncryptedData(size_t* out_size) { + const Result r = FlushCiphertextWriteBuf(); + if (r != ResultSuccess) { + return r; + } + // write buf is empty + *out_size = cleartext_write_buf.size(); + cleartext_write_buf.clear(); + return ResultSuccess; + } + + Result GetServerCerts(std::vector>* out_certs) override { + PCCERT_CONTEXT returned_cert = nullptr; + const SECURITY_STATUS ret = + QueryContextAttributes(&ctxt, SECPKG_ATTR_REMOTE_CERT_CONTEXT, &returned_cert); + if (ret != SEC_E_OK) { + LOG_ERROR(Service_SSL, + "QueryContextAttributes(SECPKG_ATTR_REMOTE_CERT_CONTEXT) failed: {}", + Common::NativeErrorToString(ret)); + return ResultInternalError; + } + PCCERT_CONTEXT some_cert = nullptr; + while ((some_cert = CertEnumCertificatesInStore(returned_cert->hCertStore, some_cert)) != + nullptr) { + out_certs->emplace_back(static_cast(some_cert->pbCertEncoded), + static_cast(some_cert->pbCertEncoded) + + some_cert->cbCertEncoded); + } + std::reverse(out_certs->begin(), + out_certs->end()); // Windows returns certs in reverse order from what we want + CertFreeCertificateContext(returned_cert); + return ResultSuccess; + } + + ~SSLConnectionBackendSchannel() { + if (handshake_state != HandshakeState::Initial) { + DeleteSecurityContext(&ctxt); + } + } + + enum class HandshakeState { + // Haven't called anything yet. + Initial, + // `SEC_I_CONTINUE_NEEDED` was returned by + // `InitializeSecurityContext`; must finish sending data (if any) in + // the write buffer, then read at least one byte before calling + // `InitializeSecurityContext` again. + ContinueNeeded, + // `SEC_E_INCOMPLETE_MESSAGE` was returned by + // `InitializeSecurityContext`; hopefully the write buffer is empty; + // must read at least one byte before calling + // `InitializeSecurityContext` again. + IncompleteMessage, + // `SEC_E_OK` was returned by `InitializeSecurityContext`; must + // finish sending data in the write buffer before having `DoHandshake` + // report success. + DoneAfterFlush, + // We finished the above and are now connected. At this point, writing + // and reading are separate 'state machines' represented by the + // nonemptiness of the ciphertext and cleartext read and write buffers. + Connected, + // Another error was returned and we shouldn't allow initialization + // to continue. + Error, + } handshake_state = HandshakeState::Initial; + + CtxtHandle ctxt; + SecPkgContext_StreamSizes stream_sizes; + + std::shared_ptr socket; + std::optional hostname; + + std::vector ciphertext_read_buf; + std::vector ciphertext_write_buf; + std::vector cleartext_read_buf; + std::vector cleartext_write_buf; + + bool got_read_eof = false; + bool skip_cert_verification = false; + size_t read_buf_fill_size = 0; +}; + +Result CreateSSLConnectionBackend(std::unique_ptr* out_backend) { + auto conn = std::make_unique(); + + R_TRY(conn->Init()); + + *out_backend = std::move(conn); + return ResultSuccess; +} + +} // namespace Service::SSL diff --git a/src/core/hle/service/ssl/ssl_backend_securetransport.cpp b/src/core/hle/service/ssl/ssl_backend_securetransport.cpp new file mode 100644 index 0000000000..65f81be631 --- /dev/null +++ b/src/core/hle/service/ssl/ssl_backend_securetransport.cpp @@ -0,0 +1,236 @@ +// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project +// SPDX-License-Identifier: GPL-3.0-or-later + +// SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project +// SPDX-License-Identifier: GPL-2.0-or-later + +#include + +// SecureTransport has been deprecated in its entirety in favor of +// Network.framework, but that does not allow layering TLS on top of an +// arbitrary socket. +#if defined(__GNUC__) || defined(__clang__) +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wdeprecated-declarations" +#include +#pragma GCC diagnostic pop +#endif + +#include "core/hle/service/ssl/ssl_backend.h" +#include "core/internal_network/network.h" +#include "core/internal_network/sockets.h" + +namespace { + +template +struct CFReleaser { + T ptr; + + YUZU_NON_COPYABLE(CFReleaser); + constexpr CFReleaser() : ptr(nullptr) {} + constexpr CFReleaser(T ptr) : ptr(ptr) {} + constexpr operator T() { + return ptr; + } + ~CFReleaser() { + if (ptr) { + CFRelease(ptr); + } + } +}; + +std::string CFStringToString(CFStringRef cfstr) { + CFReleaser cfdata( + CFStringCreateExternalRepresentation(nullptr, cfstr, kCFStringEncodingUTF8, 0)); + ASSERT_OR_EXECUTE(cfdata, { return "???"; }); + return std::string(reinterpret_cast(CFDataGetBytePtr(cfdata)), + CFDataGetLength(cfdata)); +} + +std::string OSStatusToString(OSStatus status) { + CFReleaser cfstr(SecCopyErrorMessageString(status, nullptr)); + if (!cfstr) { + return "[unknown error]"; + } + return CFStringToString(cfstr); +} + +} // namespace + +namespace Service::SSL { + +class SSLConnectionBackendSecureTransport final : public SSLConnectionBackend { +public: + Result Init() { + static std::once_flag once_flag; + std::call_once(once_flag, []() { + if (getenv("SSLKEYLOGFILE")) { + LOG_CRITICAL(Service_SSL, "SSLKEYLOGFILE was set but SecureTransport does not " + "support exporting keys; not logging keys!"); + // Not fatal. + } + }); + + context.ptr = SSLCreateContext(nullptr, kSSLClientSide, kSSLStreamType); + if (!context) { + LOG_ERROR(Service_SSL, "SSLCreateContext failed"); + return ResultInternalError; + } + + OSStatus status; + if ((status = SSLSetIOFuncs(context, ReadCallback, WriteCallback)) || + (status = SSLSetConnection(context, this))) { + LOG_ERROR(Service_SSL, "SSLContext initialization failed: {}", + OSStatusToString(status)); + return ResultInternalError; + } + + return ResultSuccess; + } + + void SetSocket(std::shared_ptr in_socket) override { + socket = std::move(in_socket); + } + + Result SetHostName(const std::string& hostname) override { + OSStatus status = SSLSetPeerDomainName(context, hostname.c_str(), hostname.size()); + if (status) { + LOG_ERROR(Service_SSL, "SSLSetPeerDomainName failed: {}", OSStatusToString(status)); + return ResultInternalError; + } + return ResultSuccess; + } + + void SetVerifyOption(u32 option) override { + skip_cert_verification = (option == 0); + LOG_WARNING(Service_SSL, "option={} skip_verification={}", option, + skip_cert_verification); + if (skip_cert_verification) { + SSLSetSessionOption(context, kSSLSessionOptionBreakOnServerAuth, true); + } + } + + Result DoHandshake() override { + OSStatus status = SSLHandshake(context); + + if (skip_cert_verification && status == errSSLServerAuthCompleted) { + LOG_DEBUG(Service_SSL, "Skipping certificate verification as requested"); + status = SSLHandshake(context); + } + + return HandleReturn("SSLHandshake", 0, status); + } + + Result Read(size_t* out_size, std::span data) override { + OSStatus status = SSLRead(context, data.data(), data.size(), out_size); + return HandleReturn("SSLRead", out_size, status); + } + + Result Write(size_t* out_size, std::span data) override { + OSStatus status = SSLWrite(context, data.data(), data.size(), out_size); + return HandleReturn("SSLWrite", out_size, status); + } + + Result HandleReturn(const char* what, size_t* actual, OSStatus status) { + switch (status) { + case 0: + return ResultSuccess; + case errSSLWouldBlock: + return ResultWouldBlock; + default: { + std::string reason; + if (got_read_eof) { + reason = "server hung up"; + } else { + reason = OSStatusToString(status); + } + LOG_ERROR(Service_SSL, "{} failed: {}", what, reason); + return ResultInternalError; + } + } + } + + Result GetServerCerts(std::vector>* out_certs) override { + CFReleaser trust; + OSStatus status = SSLCopyPeerTrust(context, &trust.ptr); + if (status) { + LOG_ERROR(Service_SSL, "SSLCopyPeerTrust failed: {}", OSStatusToString(status)); + return ResultInternalError; + } + for (CFIndex i = 0, count = SecTrustGetCertificateCount(trust); i < count; i++) { + SecCertificateRef cert = SecTrustGetCertificateAtIndex(trust, i); + CFReleaser data(SecCertificateCopyData(cert)); + ASSERT_OR_EXECUTE(data, { return ResultInternalError; }); + const u8* ptr = CFDataGetBytePtr(data); + out_certs->emplace_back(ptr, ptr + CFDataGetLength(data)); + } + return ResultSuccess; + } + + static OSStatus ReadCallback(SSLConnectionRef connection, void* data, size_t* dataLength) { + return ReadOrWriteCallback(connection, data, dataLength, true); + } + + static OSStatus WriteCallback(SSLConnectionRef connection, const void* data, + size_t* dataLength) { + return ReadOrWriteCallback(connection, const_cast(data), dataLength, false); + } + + static OSStatus ReadOrWriteCallback(SSLConnectionRef connection, void* data, size_t* dataLength, + bool is_read) { + auto self = + static_cast(const_cast(connection)); + ASSERT_OR_EXECUTE_MSG( + self->socket, { return 0; }, "SecureTransport asked to {} but we have no socket", + is_read ? "read" : "write"); + + // SecureTransport callbacks (unlike OpenSSL BIO callbacks) are + // expected to read/write the full requested dataLength or return an + // error, so we have to add a loop ourselves. + size_t requested_len = *dataLength; + size_t offset = 0; + while (offset < requested_len) { + std::span cur(reinterpret_cast(data) + offset, requested_len - offset); + auto [actual, err] = is_read ? self->socket->Recv(0, cur) : self->socket->Send(cur, 0); + LOG_CRITICAL(Service_SSL, "op={}, offset={} actual={}/{} err={}", is_read, offset, + actual, cur.size(), static_cast(err)); + switch (err) { + case Network::Errno::SUCCESS: + offset += actual; + if (actual == 0) { + ASSERT(is_read); + self->got_read_eof = true; + return errSecEndOfData; + } + break; + case Network::Errno::AGAIN: + *dataLength = offset; + return errSSLWouldBlock; + default: + LOG_ERROR(Service_SSL, "Socket {} returned Network::Errno {}", + is_read ? "recv" : "send", err); + return errSecIO; + } + } + ASSERT(offset == requested_len); + return 0; + } + +private: + CFReleaser context = nullptr; + bool got_read_eof = false; + bool skip_cert_verification = false; + + std::shared_ptr socket; +}; + +Result CreateSSLConnectionBackend(std::unique_ptr* out_backend) { + auto conn = std::make_unique(); + + R_TRY(conn->Init()); + + *out_backend = std::move(conn); + return ResultSuccess; +} + +} // namespace Service::SSL diff --git a/src/core/hle/service/ssl/ssl_types.h b/src/core/hle/service/ssl/ssl_types.h index cbd84ad1f9..16623c0fc5 100644 --- a/src/core/hle/service/ssl/ssl_types.h +++ b/src/core/hle/service/ssl/ssl_types.h @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2024 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/usb/usb.cpp b/src/core/hle/service/usb/usb.cpp index ff2a377172..179d1f7097 100644 --- a/src/core/hle/service/usb/usb.cpp +++ b/src/core/hle/service/usb/usb.cpp @@ -265,17 +265,17 @@ void LoopProcess(Core::System& system) { server_manager->RegisterNamedService("usb:ds", std::make_shared(system)); server_manager->RegisterNamedService("usb:hs", std::make_shared(system)); - server_manager->RegisterNamedService("usb:pd", std::make_shared(system), 6); - server_manager->RegisterNamedService("usb:pd:c", std::make_shared(system), 4); + server_manager->RegisterNamedService("usb:pd", std::make_shared(system)); + server_manager->RegisterNamedService("usb:pd:c", std::make_shared(system)); server_manager->RegisterNamedService("usb:pd:m", std::make_shared(system)); - server_manager->RegisterNamedService("usb:pm", std::make_shared(system), 5); + server_manager->RegisterNamedService("usb:pm", std::make_shared(system)); // +7.0.0 if (FirmwareManager::GetFirmwareVersion(system).first.major >= 7) { server_manager->RegisterNamedService("usb:qdb", std::make_shared(system)); } // +8.0.0 if (FirmwareManager::GetFirmwareVersion(system).first.major >= 8) { - server_manager->RegisterNamedService("usb:obsv", std::make_shared(system), 2); + server_manager->RegisterNamedService("usb:obsv", std::make_shared(system)); } ServerManager::RunServer(std::move(server_manager)); } diff --git a/src/core/hle/service/usb/usb.h b/src/core/hle/service/usb/usb.h index cc25a3b29e..98376ebc0c 100644 --- a/src/core/hle/service/usb/usb.h +++ b/src/core/hle/service/usb/usb.h @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/vi/application_root_service.cpp b/src/core/hle/service/vi/application_root_service.cpp index 2204f77ed4..7f35a048da 100644 --- a/src/core/hle/service/vi/application_root_service.cpp +++ b/src/core/hle/service/vi/application_root_service.cpp @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/vi/application_root_service.h b/src/core/hle/service/vi/application_root_service.h index b66293b73f..15aa4483d6 100644 --- a/src/core/hle/service/vi/application_root_service.h +++ b/src/core/hle/service/vi/application_root_service.h @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/vi/display.h b/src/core/hle/service/vi/display.h index 543c6ee68d..fceda75e39 100644 --- a/src/core/hle/service/vi/display.h +++ b/src/core/hle/service/vi/display.h @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2024 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/vi/display_list.h b/src/core/hle/service/vi/display_list.h index bf9cf78a27..f710ac472c 100644 --- a/src/core/hle/service/vi/display_list.h +++ b/src/core/hle/service/vi/display_list.h @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2024 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/vi/layer.h b/src/core/hle/service/vi/layer.h index 9bd6d033ac..e4c9c98646 100644 --- a/src/core/hle/service/vi/layer.h +++ b/src/core/hle/service/vi/layer.h @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2024 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/vi/layer_list.h b/src/core/hle/service/vi/layer_list.h index 8fc7cd3ade..4afca6f403 100644 --- a/src/core/hle/service/vi/layer_list.h +++ b/src/core/hle/service/vi/layer_list.h @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2024 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/vi/manager_display_service.cpp b/src/core/hle/service/vi/manager_display_service.cpp index 34a0175b49..e4d22ca11c 100644 --- a/src/core/hle/service/vi/manager_display_service.cpp +++ b/src/core/hle/service/vi/manager_display_service.cpp @@ -1,4 +1,4 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project +// SPDX-FileCopyrightText: Copyright 2025 Eden Emulator Project // SPDX-License-Identifier: GPL-3.0-or-later // SPDX-FileCopyrightText: Copyright 2024 yuzu Emulator Project diff --git a/src/core/hle/service/vi/manager_display_service.h b/src/core/hle/service/vi/manager_display_service.h index 2e05e730c7..14a107cb43 100644 --- a/src/core/hle/service/vi/manager_display_service.h +++ b/src/core/hle/service/vi/manager_display_service.h @@ -1,4 +1,4 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project +// SPDX-FileCopyrightText: Copyright 2025 Eden Emulator Project // SPDX-License-Identifier: GPL-3.0-or-later // SPDX-FileCopyrightText: Copyright 2024 yuzu Emulator Project diff --git a/src/core/hle/service/vi/manager_root_service.cpp b/src/core/hle/service/vi/manager_root_service.cpp index 094261e060..0f16a15b4a 100644 --- a/src/core/hle/service/vi/manager_root_service.cpp +++ b/src/core/hle/service/vi/manager_root_service.cpp @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/vi/manager_root_service.h b/src/core/hle/service/vi/manager_root_service.h index 114dc36c07..77cd328699 100644 --- a/src/core/hle/service/vi/manager_root_service.h +++ b/src/core/hle/service/vi/manager_root_service.h @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/vi/service_creator.cpp b/src/core/hle/service/vi/service_creator.cpp index 34dbf7baae..2b8e5f9577 100644 --- a/src/core/hle/service/vi/service_creator.cpp +++ b/src/core/hle/service/vi/service_creator.cpp @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2024 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/vi/service_creator.h b/src/core/hle/service/vi/service_creator.h index 8b50e94af5..c6ba1797dc 100644 --- a/src/core/hle/service/vi/service_creator.h +++ b/src/core/hle/service/vi/service_creator.h @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2024 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/vi/system_display_service.cpp b/src/core/hle/service/vi/system_display_service.cpp index aa225f69df..0956053dcf 100644 --- a/src/core/hle/service/vi/system_display_service.cpp +++ b/src/core/hle/service/vi/system_display_service.cpp @@ -1,4 +1,4 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project +// SPDX-FileCopyrightText: Copyright 2025 Eden Emulator Project // SPDX-License-Identifier: GPL-3.0-or-later // SPDX-FileCopyrightText: Copyright 2024 yuzu Emulator Project diff --git a/src/core/hle/service/vi/system_root_service.cpp b/src/core/hle/service/vi/system_root_service.cpp index c761f136e2..3489727d81 100644 --- a/src/core/hle/service/vi/system_root_service.cpp +++ b/src/core/hle/service/vi/system_root_service.cpp @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/vi/system_root_service.h b/src/core/hle/service/vi/system_root_service.h index 1587e0e30f..9d5aa53d38 100644 --- a/src/core/hle/service/vi/system_root_service.h +++ b/src/core/hle/service/vi/system_root_service.h @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/vi/vi.cpp b/src/core/hle/service/vi/vi.cpp index 2ea64f5d32..b388efaf6f 100644 --- a/src/core/hle/service/vi/vi.cpp +++ b/src/core/hle/service/vi/vi.cpp @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/vi/vi.h b/src/core/hle/service/vi/vi.h index bcc55228aa..7c1f350d84 100644 --- a/src/core/hle/service/vi/vi.h +++ b/src/core/hle/service/vi/vi.h @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/vi/vi_results.h b/src/core/hle/service/vi/vi_results.h index 89b7317792..22bac799f0 100644 --- a/src/core/hle/service/vi/vi_results.h +++ b/src/core/hle/service/vi/vi_results.h @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2022 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/vi/vi_types.h b/src/core/hle/service/vi/vi_types.h index 2d4287169a..95ff663582 100644 --- a/src/core/hle/service/vi/vi_types.h +++ b/src/core/hle/service/vi/vi_types.h @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2024 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/core/hle/service/wlan/wlan.cpp b/src/core/hle/service/wlan/wlan.cpp index bcd357d57a..7f118c62ba 100644 --- a/src/core/hle/service/wlan/wlan.cpp +++ b/src/core/hle/service/wlan/wlan.cpp @@ -246,14 +246,14 @@ public: void LoopProcess(Core::System& system) { auto server_manager = std::make_unique(system); - server_manager->RegisterNamedService("wlan:lcl", std::make_shared(system), 10); - server_manager->RegisterNamedService("wlan:lg", std::make_shared(system), 10); - server_manager->RegisterNamedService("wlan:lga", std::make_shared(system), 10); - server_manager->RegisterNamedService("wlan:sg", std::make_shared(system), 10); - server_manager->RegisterNamedService("wlan:soc", std::make_shared(system), 10); - server_manager->RegisterNamedService("wlan:dtc", std::make_shared(system), 4); - server_manager->RegisterNamedService("wlan:p", std::make_shared(system), 30); - server_manager->RegisterNamedService("wlan:nd", std::make_shared(system), 5); + server_manager->RegisterNamedService("wlan:lcl", std::make_shared(system)); + server_manager->RegisterNamedService("wlan:lg", std::make_shared(system)); + server_manager->RegisterNamedService("wlan:lga", std::make_shared(system)); + server_manager->RegisterNamedService("wlan:sg", std::make_shared(system)); + server_manager->RegisterNamedService("wlan:soc", std::make_shared(system)); + server_manager->RegisterNamedService("wlan:dtc", std::make_shared(system)); + server_manager->RegisterNamedService("wlan:p", std::make_shared(system)); + server_manager->RegisterNamedService("wlan:nd", std::make_shared(system)); ServerManager::RunServer(std::move(server_manager)); } diff --git a/src/core/launch_params.cpp b/src/core/launch_params.cpp deleted file mode 100644 index a0483226ec..0000000000 --- a/src/core/launch_params.cpp +++ /dev/null @@ -1,205 +0,0 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - -#include -#include - -#include "common/assert.h" -#include "common/logging.h" -#include "common/settings.h" -#include "common/string_util.h" -#include "common/scm_rev.h" -#include "core/core.h" -#include "core/hle/service/acc/profile_manager.h" -#include "core/launch_params.h" - -#undef _UNICODE -#include -#ifndef _MSC_VER -#include -#endif - -namespace Core { -LaunchParams ParseLaunchParams(Core::System& system, int argc, char *argv[], wchar_t *argv_w[]) noexcept { - LaunchParams p{}; - - int option_index = 0; - static struct option long_options[] = { - // clang-format off - {"debug", no_argument, 0, 'd'}, - {"config", required_argument, 0, 'c'}, - {"fullscreen", no_argument, 0, 'f'}, - {"help", no_argument, 0, 'h'}, - {"game", required_argument, 0, 'g'}, - {"multiplayer", required_argument, 0, 'm'}, - {"program", optional_argument, 0, 'p'}, - {"user", required_argument, 0, 'u'}, - {"version", no_argument, 0, 'v'}, - {"input-profile", no_argument, 0, 'i'}, - {"null-render", no_argument, 0, 'n'}, - {"singlecore", no_argument, 0, 's'}, - {"filter", no_argument, 0, 'x'}, - {0, 0, 0, 0}, - // clang-format on - }; - - while (optind < argc) { - if (int arg = getopt_long(argc, argv, "dc:fhg:m:p:u:vinsx", long_options, &option_index); arg != -1) { - switch (char(arg)) { - case 'd': - p.override_gdb_port = uint16_t(atoi(optarg)); - break; - case 'c': - p.config_path = optarg; - break; - case 'f': - p.fullscreen = true; - LOG_INFO(Frontend, "Starting in fullscreen mode..."); - break; - case 'h': - p.print_help = true; - break; - case 'g': - p.filepath = std::string(optarg); - break; - case 'i': { - p.input_profile = std::string(optarg); - break; - } - case 'm': { - p.use_multiplayer = true; - const std::string str_arg(optarg); - // regex to check if the format is nickname:password@ip:port - // with optional :password - const std::regex re("^([^:]+)(?::(.+))?@([^:]+)(?::([0-9]+))?$"); - if (std::regex_match(str_arg, re)) { - std::smatch match; - std::regex_search(str_arg, match, re); - ASSERT(match.size() == 5); - p.nickname = match[1]; - p.password = match[2]; - p.address = match[3]; - if (!match[4].str().empty()) { - p.port = u16(std::strtoul(match[4].str().c_str(), nullptr, 0)); - } - std::regex nickname_re("^[a-zA-Z0-9._\\- ]+$"); - ASSERT(std::regex_match(p.nickname, nickname_re) && "Nickname is not valid. Must be 4 to 20 alphanumeric characters"); - ASSERT(!p.address.empty() && "Address is empty"); - } - break; - } - case 'p': - p.program_args = argv[optind]; - ++optind; - break; - case 'u': { - // Launch game with a specific user - bool argument_ok = isdigit(optarg[0]); - p.selected_user = atoi(optarg); - if (!argument_ok) { - // try to look it up by username, only finds the first username that matches. - auto const user_idx = system.GetProfileManager().GetUserIndex(optarg); - if (user_idx != std::nullopt) { - p.selected_user = user_idx.value(); - } else { - LOG_ERROR(Frontend, "Invalid user argument '{}'", optarg); - break; - } - } - if (system.GetProfileManager().UserExistsIndex(*p.selected_user)) { - Settings::values.current_user = s32(*p.selected_user); - } else { - LOG_ERROR(Frontend, "Selected user {} doesn't exist", *p.selected_user); - } - break; - } - case 'v': - p.print_version = true; - break; - case 'n': - p.force_null_render = true; - break; - case 's': - p.force_single_core = true; - break; - case 'x': - p.log_filter = argv[optind]; - ++optind; - break; - } - } else { - // only kept due to shortcuts made by Qt frontend which use "-qlaunch" - if (strcmp(argv[optind], "-hlaunch") == 0) { - p.launch_hlaunch = true; - } else if (strcmp(argv[optind], "-qlaunch") == 0) { - p.launch_qlaunch = true; - } else if (strcmp(argv[optind], "-setup") == 0) { - p.launch_setup = true; - } else { - // qt feeds utf8 data, sdl frontend feeds raw utf16 data -#ifdef _WIN32 - p.filepath = argv_w != nullptr - ? Common::UTF16ToUTF8(argv_w[optind]) - : argv[optind]; -#else - p.filepath = argv[optind]; -#endif - } - optind++; - } - } - p.argv0 = argv[0]; - return p; -} - -void ApplyLaunchParams(LaunchParams const& lp) noexcept { - // apply the log_filter setting - // the logger was initialized before and doesn't pick up the filter on its own - Common::Log::Filter filter{}; - filter.ParseFilterString(lp.log_filter.value_or(Settings::values.log_filter.GetValue())); - Common::Log::SetGlobalFilter(filter); - - if (!lp.program_args.empty()) { - Settings::values.program_args = lp.program_args; - } - if (!lp.input_profile.empty()) { - auto& players = Settings::values.players.GetValue(); - players[0].profile_name = lp.input_profile; - } - if (lp.selected_user.has_value()) { - Settings::values.current_user = std::clamp(*lp.selected_user, 0, 7); - } - if (lp.override_gdb_port.has_value()) { - Settings::values.use_gdbstub = true; - Settings::values.gdbstub_port = *lp.override_gdb_port; - } - if (lp.force_single_core) { - Settings::values.use_multi_core = false; - } - if (lp.force_null_render) { - Settings::values.renderer_backend = Settings::RendererBackend::Null; - } - - if (lp.print_version) { - LOG_INFO(Frontend, "Eden {} {}", Common::g_scm_branch, Common::g_scm_desc); - } - if (lp.print_help) { - LOG_INFO(Frontend, - "Usage: {}" - " [options] \n" - "-c, --config Load the specified configuration file\n" - "-f, --fullscreen Start in fullscreen mode\n" - "-g, --game File path of the game to load\n" - "-h, --help Display this help and exit\n" - "-m, --multiplayer=nick:password@address:port" - " Nickname, password, address and port for multiplayer\n" - "-p, --program Pass following string as arguments to executable\n" - "-u, --user Select a specific user profile from 0 to 7\n" - "-d, --debug Run the GDB stub on a port from 1 to 65535\n" - "-v, --version Output version information and exit\n", - lp.argv0 - ); - } -} - -} diff --git a/src/core/launch_params.h b/src/core/launch_params.h deleted file mode 100644 index 4da30fc1c2..0000000000 --- a/src/core/launch_params.h +++ /dev/null @@ -1,43 +0,0 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - -#pragma once - -#include -#include -#include "common/common_types.h" -#include "network/room.h" - -namespace Core { - -class System; -struct LaunchParams { - std::string argv0{}; - std::string filepath{}; - std::string nickname{}; - std::string password{}; - std::string address{}; - std::string input_profile{}; - std::string program_args{}; - std::optional config_path{}; - std::optional selected_user{}; - std::optional override_gdb_port{}; - std::optional log_filter{}; - u16 port = Network::DefaultRoomPort; - bool use_multiplayer = false; - bool fullscreen = false; - bool force_null_render = false; - bool force_single_core = false; - // print - bool print_version = false; - bool print_help = false; - // qt - bool launch_hlaunch = false; - bool launch_qlaunch = false; - bool launch_setup = false; -}; - -LaunchParams ParseLaunchParams(Core::System& system, int argc, char *argv[], wchar_t *argv_w[]) noexcept; -void ApplyLaunchParams(LaunchParams const& lp) noexcept; - -} diff --git a/src/core/loader/loader.cpp b/src/core/loader/loader.cpp index 92e2e2f602..90e23ccc11 100644 --- a/src/core/loader/loader.cpp +++ b/src/core/loader/loader.cpp @@ -82,27 +82,23 @@ std::shared_ptr OpenContainerAsNsp(FileSys::VirtualFile file, File return nullptr; } - if (type == FileType::NSP || type == FileType::NSZ) { + if (type == FileType::NSP) { auto nsp = std::make_shared(file, program_id, program_index); return nsp->GetStatus() == ResultStatus::Success ? nsp : nullptr; } - if (type == FileType::XCI || type == FileType::XCZ) { + if (type == FileType::XCI) { FileSys::XCI xci{file, program_id, program_index}; - if (xci.GetStatus() == ResultStatus::Success) { - auto secure_nsp = xci.GetSecurePartitionNSP(); - if (secure_nsp != nullptr && secure_nsp->GetStatus() == ResultStatus::Success) { - return secure_nsp; - } + if (xci.GetStatus() != ResultStatus::Success) { + return nullptr; } - // PFS0-shaped .xcz (NSZ-style container) does not parse as XCI; fall back to NSP. - if (type == FileType::XCZ) { - auto nsp = std::make_shared(file, program_id, program_index); - return nsp->GetStatus() == ResultStatus::Success ? nsp : nullptr; + auto secure_nsp = xci.GetSecurePartitionNSP(); + if (secure_nsp == nullptr || secure_nsp->GetStatus() != ResultStatus::Success) { + return nullptr; } - return nullptr; + return secure_nsp; } return nullptr; @@ -148,8 +144,7 @@ FileType IdentifyFile(FileSys::VirtualFile file) { } bool IsContainerType(FileType type) { - return type == FileType::NSP || type == FileType::NSZ || type == FileType::XCI || - type == FileType::XCZ; + return type == FileType::NSP || type == FileType::XCI; } bool IsBootableGameContainer(FileSys::VirtualFile file, FileType type, u64 program_id, @@ -185,12 +180,8 @@ FileType GuessFromFilename(const std::string& name) { return FileType::NCA; else if (extension == "xci") return FileType::XCI; - else if (extension == "xcz") - return FileType::XCZ; else if (extension == "nsp") return FileType::NSP; - else if (extension == "nsz") - return FileType::NSZ; else if (extension == "kip") return FileType::KIP; return FileType::Unknown; @@ -206,14 +197,10 @@ std::string GetFileTypeString(FileType type) { return "NCA"; case FileType::XCI: return "XCI"; - case FileType::XCZ: - return "XCZ"; case FileType::NAX: return "NAX"; case FileType::NSP: return "NSP"; - case FileType::NSZ: - return "NSZ"; case FileType::KIP: return "KIP"; case FileType::DeconstructedRomDirectory: @@ -339,29 +326,12 @@ static std::unique_ptr GetFileLoader(Core::System& system, FileSys::V system.GetContentProvider(), program_id, program_index); - // NCZ-compressed XCI container. XCI-shaped .xcz goes to the XCI loader, while - // PFS0-shaped (NSZ-style) .xcz containers fall back to the NSP loader. - case FileType::XCZ: { - FileSys::XCI probe{file, program_id, program_index}; - if (probe.GetStatus() == ResultStatus::Success && - probe.GetSecurePartitionNSP() != nullptr) { - return std::make_unique(std::move(file), - system.GetFileSystemController(), - system.GetContentProvider(), program_id, - program_index); - } - return std::make_unique(std::move(file), system.GetFileSystemController(), - system.GetContentProvider(), program_id, - program_index); - } - // NX NAX (NintendoAesXts) file format. case FileType::NAX: return std::make_unique(std::move(file)); // NX NSP (Nintendo Submission Package) file format case FileType::NSP: - case FileType::NSZ: return std::make_unique(std::move(file), system.GetFileSystemController(), system.GetContentProvider(), program_id, program_index); diff --git a/src/core/loader/loader.h b/src/core/loader/loader.h index d3c0230cb0..95ce638da0 100644 --- a/src/core/loader/loader.h +++ b/src/core/loader/loader.h @@ -42,9 +42,7 @@ enum class FileType { NRO, NCA, NSP, - NSZ, XCI, - XCZ, NAX, KIP, DeconstructedRomDirectory, diff --git a/src/core/loader/nso.cpp b/src/core/loader/nso.cpp index ea1d1c9ecd..0a3dc5885b 100644 --- a/src/core/loader/nso.cpp +++ b/src/core/loader/nso.cpp @@ -7,14 +7,12 @@ #include #include #include -#include #include #include "common/common_funcs.h" #include "common/hex_util.h" #include "common/logging.h" #include "common/lz4_compression.h" -#include "common/zbic_compression.h" #include "common/settings.h" #include "common/swap.h" #include "core/core.h" @@ -106,36 +104,11 @@ std::optional AppLoader_NSO::LoadModule(Kernel::KProcess& process, Core:: for (std::size_t i = 0; i < nso_header.segments.size(); ++i) { nso_file.Read(compressed_data.data(), nso_header.segments_compressed_size[i], nso_header.segments[i].offset); if (nso_header.IsSegmentCompressed(i)) { - if (nso_header.IsZBICCompressed()) { - // ZBIC compression - const int r = Common::Compression::DecompressDataZBIC( - std::span{decompressed_size}.first(nso_header.segments[i].size), - std::span{compressed_data}.first(nso_header.segments_compressed_size[i]) - ); - ASSERT(r > 0); - } else { - // LZ4 compression - int r = Common::Compression::DecompressDataLZ4( - decompressed_size.data(), - nso_header.segments[i].size, - compressed_data.data(), - nso_header.segments_compressed_size[i] - ); - ASSERT(r == int(nso_header.segments[i].size)); - } - - std::memcpy( - codeset.memory.data() + module_start + nso_header.segments[i].location, - decompressed_size.data(), - nso_header.segments[i].size - ); + int r = Common::Compression::DecompressDataLZ4(decompressed_size.data(), nso_header.segments[i].size, compressed_data.data(), nso_header.segments_compressed_size[i]); + ASSERT(r == int(nso_header.segments[i].size)); + std::memcpy(codeset.memory.data() + module_start + nso_header.segments[i].location, decompressed_size.data(), nso_header.segments[i].size); } else { - // Not compressed - std::memcpy( - codeset.memory.data() + module_start + nso_header.segments[i].location, - compressed_data.data(), - nso_header.segments[i].size - ); + std::memcpy(codeset.memory.data() + module_start + nso_header.segments[i].location, compressed_data.data(), nso_header.segments[i].size); } codeset.segments[i].addr = module_start + nso_header.segments[i].location; codeset.segments[i].offset = module_start + nso_header.segments[i].location; diff --git a/src/core/loader/nso.h b/src/core/loader/nso.h index 4a373edd07..6356697e33 100644 --- a/src/core/loader/nso.h +++ b/src/core/loader/nso.h @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later @@ -61,9 +58,6 @@ struct NSOHeader { std::array segment_hashes; bool IsSegmentCompressed(size_t segment_num) const; - bool IsZBICCompressed() const { - return ((flags >> 7) & 1) != 0; - } }; static_assert(sizeof(NSOHeader) == 0x100, "NSOHeader has incorrect size."); static_assert(std::is_trivially_copyable_v, "NSOHeader must be trivially copyable."); diff --git a/src/core/loader/nsp.cpp b/src/core/loader/nsp.cpp index 8b2c79394d..cfc908b4ef 100644 --- a/src/core/loader/nsp.cpp +++ b/src/core/loader/nsp.cpp @@ -56,17 +56,6 @@ AppLoader_NSP::AppLoader_NSP(FileSys::VirtualFile file_, AppLoader_NSP::~AppLoader_NSP() = default; FileType AppLoader_NSP::IdentifyType(const FileSys::VirtualFile& nsp_file) { - // .nsz is NSP-compatible; return NSZ so the game list shows the right type. - if (nsp_file->GetName().ends_with(".nsz")) { - return FileType::NSZ; - } - - // PFS0-shaped .xcz containers are handled by this loader too; report XCZ so the game - // list does not show them as NSP. XCI-shaped .xcz is identified by AppLoader_XCI. - if (nsp_file->GetName().ends_with(".xcz")) { - return FileType::XCZ; - } - const FileSys::NSP nsp(nsp_file); if (nsp.GetStatus() != ResultStatus::Success) { diff --git a/src/core/memory.cpp b/src/core/memory.cpp index eabc6dfccb..837016de1d 100644 --- a/src/core/memory.cpp +++ b/src/core/memory.cpp @@ -757,7 +757,7 @@ struct Memory::Impl { }; auto& gpu = system.GPU(); gpu_device_memory->ApplyOpOnPointer( - p, scratch_buffers[core], [&](DAddr address) { gpu.InvalidateRegion(address, size, true); }); + p, scratch_buffers[core], [&](DAddr address) { gpu.InvalidateRegion(address, size); }); } Core::System& system; diff --git a/src/core/tools/freezer.cpp b/src/core/tools/freezer.cpp index 606ac2da42..73a86b3c8c 100644 --- a/src/core/tools/freezer.cpp +++ b/src/core/tools/freezer.cpp @@ -33,10 +33,18 @@ u64 MemoryReadWidth(Core::Memory::Memory& memory, u32 width, VAddr addr) { void MemoryWriteWidth(Core::Memory::Memory& memory, u32 width, VAddr addr, u64 value) { switch (width) { - case sizeof(u64): return memory.Write64(addr, value); - case sizeof(u32): return memory.Write32(addr, u32(value)); - case sizeof(u16): return memory.Write16(addr, u16(value)); - case sizeof(u8): return memory.Write8(addr, u8(value)); + case 1: + memory.Write8(addr, static_cast(value)); + break; + case 2: + memory.Write16(addr, static_cast(value)); + break; + case 4: + memory.Write32(addr, static_cast(value)); + break; + case 8: + memory.Write64(addr, value); + break; default: UNREACHABLE(); } diff --git a/src/dynarmic/src/dynarmic/CMakeLists.txt b/src/dynarmic/src/dynarmic/CMakeLists.txt index cc1cbcbe39..66d5507a6d 100644 --- a/src/dynarmic/src/dynarmic/CMakeLists.txt +++ b/src/dynarmic/src/dynarmic/CMakeLists.txt @@ -74,6 +74,7 @@ add_library(dynarmic STATIC interface/halt_reason.h interface/exclusive_monitor.h interface/optimization_flags.h + interface/halt_reason.h ir/acc_type.h ir/basic_block.cpp ir/basic_block.h @@ -139,10 +140,8 @@ if ("x86_64" IN_LIST ARCHITECTURE) # Newer versions of xbyak (>= 7.25.0) have stricter checks that currently # fail in dynarmic target_compile_definitions(dynarmic PRIVATE XBYAK_STRICT_CHECK_MEM_REG_SIZE=0) - target_compile_definitions(dynarmic PRIVATE XBYAK_OLD_DISP_CHECK=1) target_link_libraries(dynarmic PRIVATE xbyak::xbyak) - target_architecture_specific_sources(dynarmic "x86_64" backend/x64/abi.cpp backend/x64/abi.h @@ -294,6 +293,35 @@ if ("riscv64" IN_LIST ARCHITECTURE) ) message(WARNING "TODO: Incomplete frontend for this host architecture") endif() +if ("powerpc64" IN_LIST ARCHITECTURE) + target_link_libraries(dynarmic PRIVATE powah) + target_sources(dynarmic PRIVATE + backend/ppc64/abi.h + backend/ppc64/emit_context.h + backend/ppc64/emit_ppc64_a32.cpp + backend/ppc64/emit_ppc64_a64.cpp + backend/ppc64/emit_ppc64_misc.cpp + backend/ppc64/emit_ppc64_data_processing.cpp + backend/ppc64/emit_ppc64_floating_point.cpp + backend/ppc64/emit_ppc64_vector.cpp + backend/ppc64/emit_ppc64.cpp + backend/ppc64/emit_ppc64.h + backend/ppc64/exclusive_monitor.cpp + backend/ppc64/reg_alloc.cpp + backend/ppc64/reg_alloc.h + backend/ppc64/stack_layout.h + backend/ppc64/hostloc.h + common/spin_lock_ppc64.cpp + common/spin_lock_ppc64.h + # A32 + backend/ppc64/a32_core.h + backend/ppc64/a32_interface.cpp + # A64 + backend/ppc64/a64_core.h + backend/ppc64/a64_interface.cpp + backend/ppc64/code_block.h + ) +endif() if ("loongarch64" IN_LIST ARCHITECTURE) target_link_libraries(dynarmic PRIVATE lagoon::lagoon) diff --git a/src/dynarmic/src/dynarmic/backend/arm64/a32_address_space.cpp b/src/dynarmic/src/dynarmic/backend/arm64/a32_address_space.cpp index 0cf9bb9fae..8b6ec2506e 100644 --- a/src/dynarmic/src/dynarmic/backend/arm64/a32_address_space.cpp +++ b/src/dynarmic/src/dynarmic/backend/arm64/a32_address_space.cpp @@ -23,66 +23,30 @@ namespace Dynarmic::Backend::Arm64 { -template -static void* EmitCallReadTrampoline(oaknut::CodeGenerator& code, T* this_, size_t bitsize) { - using namespace oaknut::util; - const auto info = Devirtualize(this_); - oaknut::Label l_addr, l_this; - void* target = code.xptr(); - // params = { this, vaddr, bitsize } - code.LDR(X0, l_this); - // X1 = vaddr - code.MOV(X2, bitsize); - code.LDR(Xscratch0, l_addr); - code.BR(Xscratch0); - code.align(8); - code.l(l_this); - code.dx(info.this_ptr); - code.l(l_addr); - code.dx(info.fn_ptr); - return target; -} - -template -static void* EmitCallWriteTrampoline(oaknut::CodeGenerator& code, T* this_, size_t bitsize) { - using namespace oaknut::util; - const auto info = Devirtualize(this_); - oaknut::Label l_addr, l_this; - void* target = code.xptr(); - // params = { this, vaddr, value, bitsize } - code.LDR(X0, l_this); - // X1 = vaddr - // X2 = value - code.MOV(X3, bitsize); - code.LDR(Xscratch0, l_addr); - code.BR(Xscratch0); - code.align(8); - code.l(l_this); - code.dx(info.this_ptr); - code.l(l_addr); - code.dx(info.fn_ptr); - return target; -} - template static void* EmitCallTrampoline(oaknut::CodeGenerator& code, T* this_) { using namespace oaknut::util; + const auto info = Devirtualize(this_); + oaknut::Label l_addr, l_this; + void* target = code.xptr(); code.LDR(X0, l_this); code.LDR(Xscratch0, l_addr); code.BR(Xscratch0); + code.align(8); code.l(l_this); code.dx(info.this_ptr); code.l(l_addr); code.dx(info.fn_ptr); + return target; } template -static void* EmitWrappedReadCallTrampoline(oaknut::CodeGenerator& code, T* this_, size_t bitsize) { +static void* EmitWrappedReadCallTrampoline(oaknut::CodeGenerator& code, T* this_) { using namespace oaknut::util; const auto info = Devirtualize(this_); @@ -95,7 +59,6 @@ static void* EmitWrappedReadCallTrampoline(oaknut::CodeGenerator& code, T* this_ ABI_PushRegisters(code, save_regs, 0); code.LDR(X0, l_this); code.MOV(X1, Xscratch0); - code.MOV(X2, bitsize); code.LDR(Xscratch0, l_addr); code.BLR(Xscratch0); code.MOV(Xscratch0, X0); @@ -119,7 +82,7 @@ static void* EmitExclusiveReadCallTrampoline(oaknut::CodeGenerator& code, const auto fn = [](const A32::UserConfig& conf, A32::VAddr vaddr) -> T { return conf.global_monitor->ReadAndMark(conf.processor_id, vaddr, [&]() -> T { - return (conf.callbacks->*callback)(vaddr, sizeof(T)); + return (conf.callbacks->*callback)(vaddr); }); }; @@ -138,7 +101,7 @@ static void* EmitExclusiveReadCallTrampoline(oaknut::CodeGenerator& code, const } template -static void* EmitWrappedWriteCallTrampoline(oaknut::CodeGenerator& code, T* this_, size_t bitsize) { +static void* EmitWrappedWriteCallTrampoline(oaknut::CodeGenerator& code, T* this_) { using namespace oaknut::util; const auto info = Devirtualize(this_); @@ -152,7 +115,6 @@ static void* EmitWrappedWriteCallTrampoline(oaknut::CodeGenerator& code, T* this code.LDR(X0, l_this); code.MOV(X1, Xscratch0); code.MOV(X2, Xscratch1); - code.MOV(X3, bitsize); code.LDR(Xscratch0, l_addr); code.BLR(Xscratch0); ABI_PopRegisters(code, save_regs, 0); @@ -174,9 +136,12 @@ static void* EmitExclusiveWriteCallTrampoline(oaknut::CodeGenerator& code, const oaknut::Label l_addr, l_this; auto fn = [](const A32::UserConfig& conf, A32::VAddr vaddr, T value) -> u32 { - return conf.global_monitor->DoExclusiveOperation(conf.processor_id, vaddr, [&](T expected) -> bool { - return (conf.callbacks->*callback)(vaddr, value, expected); - }) ? 0 : 1; + return conf.global_monitor->DoExclusiveOperation(conf.processor_id, vaddr, + [&](T expected) -> bool { + return (conf.callbacks->*callback)(vaddr, value, expected); + }) + ? 0 + : 1; }; void* target = code.xptr(); @@ -214,27 +179,26 @@ void A32AddressSpace::EmitPrelude() { UnprotectCodeMemory(); - - prelude_info.read_memory_8 = EmitCallReadTrampoline<&A32::UserCallbacks::MemoryRead>(code, conf.callbacks, sizeof(u8)); - prelude_info.read_memory_16 = EmitCallReadTrampoline<&A32::UserCallbacks::MemoryRead>(code, conf.callbacks, sizeof(u16)); - prelude_info.read_memory_32 = EmitCallReadTrampoline<&A32::UserCallbacks::MemoryRead>(code, conf.callbacks, sizeof(u32)); - prelude_info.read_memory_64 = EmitCallReadTrampoline<&A32::UserCallbacks::MemoryRead>(code, conf.callbacks, sizeof(u64)); - prelude_info.wrapped_read_memory_8 = EmitWrappedReadCallTrampoline<&A32::UserCallbacks::MemoryRead>(code, conf.callbacks, sizeof(u8)); - prelude_info.wrapped_read_memory_16 = EmitWrappedReadCallTrampoline<&A32::UserCallbacks::MemoryRead>(code, conf.callbacks, sizeof(u16)); - prelude_info.wrapped_read_memory_32 = EmitWrappedReadCallTrampoline<&A32::UserCallbacks::MemoryRead>(code, conf.callbacks, sizeof(u32)); - prelude_info.wrapped_read_memory_64 = EmitWrappedReadCallTrampoline<&A32::UserCallbacks::MemoryRead>(code, conf.callbacks, sizeof(u64)); - prelude_info.exclusive_read_memory_8 = EmitExclusiveReadCallTrampoline<&A32::UserCallbacks::MemoryRead, u8>(code, conf); - prelude_info.exclusive_read_memory_16 = EmitExclusiveReadCallTrampoline<&A32::UserCallbacks::MemoryRead, u16>(code, conf); - prelude_info.exclusive_read_memory_32 = EmitExclusiveReadCallTrampoline<&A32::UserCallbacks::MemoryRead, u32>(code, conf); - prelude_info.exclusive_read_memory_64 = EmitExclusiveReadCallTrampoline<&A32::UserCallbacks::MemoryRead, u64>(code, conf); - prelude_info.write_memory_8 = EmitCallWriteTrampoline<&A32::UserCallbacks::MemoryWrite>(code, conf.callbacks, sizeof(u8)); - prelude_info.write_memory_16 = EmitCallWriteTrampoline<&A32::UserCallbacks::MemoryWrite>(code, conf.callbacks, sizeof(u16)); - prelude_info.write_memory_32 = EmitCallWriteTrampoline<&A32::UserCallbacks::MemoryWrite>(code, conf.callbacks, sizeof(u32)); - prelude_info.write_memory_64 = EmitCallWriteTrampoline<&A32::UserCallbacks::MemoryWrite>(code, conf.callbacks, sizeof(u64)); - prelude_info.wrapped_write_memory_8 = EmitWrappedWriteCallTrampoline<&A32::UserCallbacks::MemoryWrite>(code, conf.callbacks, sizeof(u8)); - prelude_info.wrapped_write_memory_16 = EmitWrappedWriteCallTrampoline<&A32::UserCallbacks::MemoryWrite>(code, conf.callbacks, sizeof(u16)); - prelude_info.wrapped_write_memory_32 = EmitWrappedWriteCallTrampoline<&A32::UserCallbacks::MemoryWrite>(code, conf.callbacks, sizeof(u32)); - prelude_info.wrapped_write_memory_64 = EmitWrappedWriteCallTrampoline<&A32::UserCallbacks::MemoryWrite>(code, conf.callbacks, sizeof(u64)); + prelude_info.read_memory_8 = EmitCallTrampoline<&A32::UserCallbacks::MemoryRead8>(code, conf.callbacks); + prelude_info.read_memory_16 = EmitCallTrampoline<&A32::UserCallbacks::MemoryRead16>(code, conf.callbacks); + prelude_info.read_memory_32 = EmitCallTrampoline<&A32::UserCallbacks::MemoryRead32>(code, conf.callbacks); + prelude_info.read_memory_64 = EmitCallTrampoline<&A32::UserCallbacks::MemoryRead64>(code, conf.callbacks); + prelude_info.wrapped_read_memory_8 = EmitWrappedReadCallTrampoline<&A32::UserCallbacks::MemoryRead8>(code, conf.callbacks); + prelude_info.wrapped_read_memory_16 = EmitWrappedReadCallTrampoline<&A32::UserCallbacks::MemoryRead16>(code, conf.callbacks); + prelude_info.wrapped_read_memory_32 = EmitWrappedReadCallTrampoline<&A32::UserCallbacks::MemoryRead32>(code, conf.callbacks); + prelude_info.wrapped_read_memory_64 = EmitWrappedReadCallTrampoline<&A32::UserCallbacks::MemoryRead64>(code, conf.callbacks); + prelude_info.exclusive_read_memory_8 = EmitExclusiveReadCallTrampoline<&A32::UserCallbacks::MemoryRead8, u8>(code, conf); + prelude_info.exclusive_read_memory_16 = EmitExclusiveReadCallTrampoline<&A32::UserCallbacks::MemoryRead16, u16>(code, conf); + prelude_info.exclusive_read_memory_32 = EmitExclusiveReadCallTrampoline<&A32::UserCallbacks::MemoryRead32, u32>(code, conf); + prelude_info.exclusive_read_memory_64 = EmitExclusiveReadCallTrampoline<&A32::UserCallbacks::MemoryRead64, u64>(code, conf); + prelude_info.write_memory_8 = EmitCallTrampoline<&A32::UserCallbacks::MemoryWrite8>(code, conf.callbacks); + prelude_info.write_memory_16 = EmitCallTrampoline<&A32::UserCallbacks::MemoryWrite16>(code, conf.callbacks); + prelude_info.write_memory_32 = EmitCallTrampoline<&A32::UserCallbacks::MemoryWrite32>(code, conf.callbacks); + prelude_info.write_memory_64 = EmitCallTrampoline<&A32::UserCallbacks::MemoryWrite64>(code, conf.callbacks); + prelude_info.wrapped_write_memory_8 = EmitWrappedWriteCallTrampoline<&A32::UserCallbacks::MemoryWrite8>(code, conf.callbacks); + prelude_info.wrapped_write_memory_16 = EmitWrappedWriteCallTrampoline<&A32::UserCallbacks::MemoryWrite16>(code, conf.callbacks); + prelude_info.wrapped_write_memory_32 = EmitWrappedWriteCallTrampoline<&A32::UserCallbacks::MemoryWrite32>(code, conf.callbacks); + prelude_info.wrapped_write_memory_64 = EmitWrappedWriteCallTrampoline<&A32::UserCallbacks::MemoryWrite64>(code, conf.callbacks); prelude_info.exclusive_write_memory_8 = EmitExclusiveWriteCallTrampoline<&A32::UserCallbacks::MemoryWriteExclusive8, u8>(code, conf); prelude_info.exclusive_write_memory_16 = EmitExclusiveWriteCallTrampoline<&A32::UserCallbacks::MemoryWriteExclusive16, u16>(code, conf); prelude_info.exclusive_write_memory_32 = EmitExclusiveWriteCallTrampoline<&A32::UserCallbacks::MemoryWriteExclusive32, u32>(code, conf); diff --git a/src/dynarmic/src/dynarmic/backend/arm64/a64_address_space.cpp b/src/dynarmic/src/dynarmic/backend/arm64/a64_address_space.cpp index 492242fa73..2dbb7d2e1d 100644 --- a/src/dynarmic/src/dynarmic/backend/arm64/a64_address_space.cpp +++ b/src/dynarmic/src/dynarmic/backend/arm64/a64_address_space.cpp @@ -22,66 +22,30 @@ namespace Dynarmic::Backend::Arm64 { -template -static void* EmitCallReadTrampoline(oaknut::CodeGenerator& code, T* this_, size_t bitsize) { - using namespace oaknut::util; - const auto info = Devirtualize(this_); - oaknut::Label l_addr, l_this; - void* target = code.xptr(); - // params = { this, vaddr, bitsize } - code.LDR(X0, l_this); - // X1 = vaddr - code.MOV(X2, bitsize); - code.LDR(Xscratch0, l_addr); - code.BR(Xscratch0); - code.align(8); - code.l(l_this); - code.dx(info.this_ptr); - code.l(l_addr); - code.dx(info.fn_ptr); - return target; -} - -template -static void* EmitCallWriteTrampoline(oaknut::CodeGenerator& code, T* this_, size_t bitsize) { - using namespace oaknut::util; - const auto info = Devirtualize(this_); - oaknut::Label l_addr, l_this; - void* target = code.xptr(); - // params = { this, vaddr, value, bitsize } - code.LDR(X0, l_this); - // X1 = vaddr - // X2 = value - code.MOV(X3, bitsize); - code.LDR(Xscratch0, l_addr); - code.BR(Xscratch0); - code.align(8); - code.l(l_this); - code.dx(info.this_ptr); - code.l(l_addr); - code.dx(info.fn_ptr); - return target; -} - template static void* EmitCallTrampoline(oaknut::CodeGenerator& code, T* this_) { using namespace oaknut::util; + const auto info = Devirtualize(this_); + oaknut::Label l_addr, l_this; + void* target = code.xptr(); code.LDR(X0, l_this); code.LDR(Xscratch0, l_addr); code.BR(Xscratch0); + code.align(8); code.l(l_this); code.dx(info.this_ptr); code.l(l_addr); code.dx(info.fn_ptr); + return target; } template -static void* EmitWrappedReadCallTrampoline(oaknut::CodeGenerator& code, T* this_, size_t bitsize) { +static void* EmitWrappedReadCallTrampoline(oaknut::CodeGenerator& code, T* this_) { using namespace oaknut::util; const auto info = Devirtualize(this_); @@ -94,7 +58,6 @@ static void* EmitWrappedReadCallTrampoline(oaknut::CodeGenerator& code, T* this_ ABI_PushRegisters(code, save_regs, 0); code.LDR(X0, l_this); code.MOV(X1, Xscratch0); - code.MOV(X2, bitsize); code.LDR(Xscratch0, l_addr); code.BLR(Xscratch0); code.MOV(Xscratch0, X0); @@ -118,7 +81,7 @@ static void* EmitExclusiveReadCallTrampoline(oaknut::CodeGenerator& code, const auto fn = [](const A64::UserConfig& conf, A64::VAddr vaddr) -> T { return conf.global_monitor->ReadAndMark(conf.processor_id, vaddr, [&]() -> T { - return (conf.callbacks->*callback)(vaddr, sizeof(T)); + return (conf.callbacks->*callback)(vaddr); }); }; @@ -137,7 +100,7 @@ static void* EmitExclusiveReadCallTrampoline(oaknut::CodeGenerator& code, const } template -static void* EmitWrappedWriteCallTrampoline(oaknut::CodeGenerator& code, T* this_, size_t bitsize) { +static void* EmitWrappedWriteCallTrampoline(oaknut::CodeGenerator& code, T* this_) { using namespace oaknut::util; const auto info = Devirtualize(this_); @@ -151,7 +114,6 @@ static void* EmitWrappedWriteCallTrampoline(oaknut::CodeGenerator& code, T* this code.LDR(X0, l_this); code.MOV(X1, Xscratch0); code.MOV(X2, Xscratch1); - code.MOV(X3, bitsize); code.LDR(Xscratch0, l_addr); code.BLR(Xscratch0); ABI_PopRegisters(code, save_regs, 0); @@ -171,10 +133,14 @@ static void* EmitExclusiveWriteCallTrampoline(oaknut::CodeGenerator& code, const using namespace oaknut::util; oaknut::Label l_addr, l_this; + auto fn = [](const A64::UserConfig& conf, A64::VAddr vaddr, T value) -> u32 { - return conf.global_monitor->DoExclusiveOperation(conf.processor_id, vaddr, [&](T expected) -> bool { - return (conf.callbacks->*callback)(vaddr, value, expected); - }) ? 0 : 1; + return conf.global_monitor->DoExclusiveOperation(conf.processor_id, vaddr, + [&](T expected) -> bool { + return (conf.callbacks->*callback)(vaddr, value, expected); + }) + ? 0 + : 1; }; void* target = code.xptr(); @@ -380,30 +346,30 @@ void A64AddressSpace::EmitPrelude() { UnprotectCodeMemory(); - prelude_info.read_memory_8 = EmitCallReadTrampoline<&A64::UserCallbacks::MemoryRead>(code, conf.callbacks, sizeof(u8)); - prelude_info.read_memory_16 = EmitCallReadTrampoline<&A64::UserCallbacks::MemoryRead>(code, conf.callbacks, sizeof(u16)); - prelude_info.read_memory_32 = EmitCallReadTrampoline<&A64::UserCallbacks::MemoryRead>(code, conf.callbacks, sizeof(u32)); - prelude_info.read_memory_64 = EmitCallReadTrampoline<&A64::UserCallbacks::MemoryRead>(code, conf.callbacks, sizeof(u64)); + prelude_info.read_memory_8 = EmitCallTrampoline<&A64::UserCallbacks::MemoryRead8>(code, conf.callbacks); + prelude_info.read_memory_16 = EmitCallTrampoline<&A64::UserCallbacks::MemoryRead16>(code, conf.callbacks); + prelude_info.read_memory_32 = EmitCallTrampoline<&A64::UserCallbacks::MemoryRead32>(code, conf.callbacks); + prelude_info.read_memory_64 = EmitCallTrampoline<&A64::UserCallbacks::MemoryRead64>(code, conf.callbacks); prelude_info.read_memory_128 = EmitRead128CallTrampoline(code, conf.callbacks); - prelude_info.wrapped_read_memory_8 = EmitWrappedReadCallTrampoline<&A64::UserCallbacks::MemoryRead>(code, conf.callbacks, sizeof(u8)); - prelude_info.wrapped_read_memory_16 = EmitWrappedReadCallTrampoline<&A64::UserCallbacks::MemoryRead>(code, conf.callbacks, sizeof(u16)); - prelude_info.wrapped_read_memory_32 = EmitWrappedReadCallTrampoline<&A64::UserCallbacks::MemoryRead>(code, conf.callbacks, sizeof(u32)); - prelude_info.wrapped_read_memory_64 = EmitWrappedReadCallTrampoline<&A64::UserCallbacks::MemoryRead>(code, conf.callbacks, sizeof(u64)); + prelude_info.wrapped_read_memory_8 = EmitWrappedReadCallTrampoline<&A64::UserCallbacks::MemoryRead8>(code, conf.callbacks); + prelude_info.wrapped_read_memory_16 = EmitWrappedReadCallTrampoline<&A64::UserCallbacks::MemoryRead16>(code, conf.callbacks); + prelude_info.wrapped_read_memory_32 = EmitWrappedReadCallTrampoline<&A64::UserCallbacks::MemoryRead32>(code, conf.callbacks); + prelude_info.wrapped_read_memory_64 = EmitWrappedReadCallTrampoline<&A64::UserCallbacks::MemoryRead64>(code, conf.callbacks); prelude_info.wrapped_read_memory_128 = EmitWrappedRead128CallTrampoline(code, conf.callbacks); - prelude_info.exclusive_read_memory_8 = EmitExclusiveReadCallTrampoline<&A64::UserCallbacks::MemoryRead, u8>(code, conf); - prelude_info.exclusive_read_memory_16 = EmitExclusiveReadCallTrampoline<&A64::UserCallbacks::MemoryRead, u16>(code, conf); - prelude_info.exclusive_read_memory_32 = EmitExclusiveReadCallTrampoline<&A64::UserCallbacks::MemoryRead, u32>(code, conf); - prelude_info.exclusive_read_memory_64 = EmitExclusiveReadCallTrampoline<&A64::UserCallbacks::MemoryRead, u64>(code, conf); + prelude_info.exclusive_read_memory_8 = EmitExclusiveReadCallTrampoline<&A64::UserCallbacks::MemoryRead8, u8>(code, conf); + prelude_info.exclusive_read_memory_16 = EmitExclusiveReadCallTrampoline<&A64::UserCallbacks::MemoryRead16, u16>(code, conf); + prelude_info.exclusive_read_memory_32 = EmitExclusiveReadCallTrampoline<&A64::UserCallbacks::MemoryRead32, u32>(code, conf); + prelude_info.exclusive_read_memory_64 = EmitExclusiveReadCallTrampoline<&A64::UserCallbacks::MemoryRead64, u64>(code, conf); prelude_info.exclusive_read_memory_128 = EmitExclusiveRead128CallTrampoline(code, conf); - prelude_info.write_memory_8 = EmitCallWriteTrampoline<&A64::UserCallbacks::MemoryWrite>(code, conf.callbacks, sizeof(u8)); - prelude_info.write_memory_16 = EmitCallWriteTrampoline<&A64::UserCallbacks::MemoryWrite>(code, conf.callbacks, sizeof(u16)); - prelude_info.write_memory_32 = EmitCallWriteTrampoline<&A64::UserCallbacks::MemoryWrite>(code, conf.callbacks, sizeof(u32)); - prelude_info.write_memory_64 = EmitCallWriteTrampoline<&A64::UserCallbacks::MemoryWrite>(code, conf.callbacks, sizeof(u64)); + prelude_info.write_memory_8 = EmitCallTrampoline<&A64::UserCallbacks::MemoryWrite8>(code, conf.callbacks); + prelude_info.write_memory_16 = EmitCallTrampoline<&A64::UserCallbacks::MemoryWrite16>(code, conf.callbacks); + prelude_info.write_memory_32 = EmitCallTrampoline<&A64::UserCallbacks::MemoryWrite32>(code, conf.callbacks); + prelude_info.write_memory_64 = EmitCallTrampoline<&A64::UserCallbacks::MemoryWrite64>(code, conf.callbacks); prelude_info.write_memory_128 = EmitWrite128CallTrampoline(code, conf.callbacks); - prelude_info.wrapped_write_memory_8 = EmitWrappedWriteCallTrampoline<&A64::UserCallbacks::MemoryWrite>(code, conf.callbacks, sizeof(u8)); - prelude_info.wrapped_write_memory_16 = EmitWrappedWriteCallTrampoline<&A64::UserCallbacks::MemoryWrite>(code, conf.callbacks, sizeof(u16)); - prelude_info.wrapped_write_memory_32 = EmitWrappedWriteCallTrampoline<&A64::UserCallbacks::MemoryWrite>(code, conf.callbacks, sizeof(u32)); - prelude_info.wrapped_write_memory_64 = EmitWrappedWriteCallTrampoline<&A64::UserCallbacks::MemoryWrite>(code, conf.callbacks, sizeof(u64)); + prelude_info.wrapped_write_memory_8 = EmitWrappedWriteCallTrampoline<&A64::UserCallbacks::MemoryWrite8>(code, conf.callbacks); + prelude_info.wrapped_write_memory_16 = EmitWrappedWriteCallTrampoline<&A64::UserCallbacks::MemoryWrite16>(code, conf.callbacks); + prelude_info.wrapped_write_memory_32 = EmitWrappedWriteCallTrampoline<&A64::UserCallbacks::MemoryWrite32>(code, conf.callbacks); + prelude_info.wrapped_write_memory_64 = EmitWrappedWriteCallTrampoline<&A64::UserCallbacks::MemoryWrite64>(code, conf.callbacks); prelude_info.wrapped_write_memory_128 = EmitWrappedWrite128CallTrampoline(code, conf.callbacks); prelude_info.exclusive_write_memory_8 = EmitExclusiveWriteCallTrampoline<&A64::UserCallbacks::MemoryWriteExclusive8, u8>(code, conf); prelude_info.exclusive_write_memory_16 = EmitExclusiveWriteCallTrampoline<&A64::UserCallbacks::MemoryWriteExclusive16, u16>(code, conf); diff --git a/src/dynarmic/src/dynarmic/backend/arm64/address_space.cpp b/src/dynarmic/src/dynarmic/backend/arm64/address_space.cpp index 4ef3296c4a..947c50f4c3 100644 --- a/src/dynarmic/src/dynarmic/backend/arm64/address_space.cpp +++ b/src/dynarmic/src/dynarmic/backend/arm64/address_space.cpp @@ -145,7 +145,6 @@ void AddressSpace::Link(EmittedBlockInfo& block_info) { case LinkTarget::ReturnFromRunCode: c.B(prelude_info.return_from_run_code); break; - // { this, vaddr, size } case LinkTarget::ReadMemory8: c.BL(prelude_info.read_memory_8); break; @@ -161,7 +160,6 @@ void AddressSpace::Link(EmittedBlockInfo& block_info) { case LinkTarget::ReadMemory128: c.BL(prelude_info.read_memory_128); break; - // { this, vaddr, size } case LinkTarget::WrappedReadMemory8: c.BL(prelude_info.wrapped_read_memory_8); break; @@ -177,7 +175,6 @@ void AddressSpace::Link(EmittedBlockInfo& block_info) { case LinkTarget::WrappedReadMemory128: c.BL(prelude_info.wrapped_read_memory_128); break; - // case LinkTarget::ExclusiveReadMemory8: c.BL(prelude_info.exclusive_read_memory_8); break; @@ -193,7 +190,6 @@ void AddressSpace::Link(EmittedBlockInfo& block_info) { case LinkTarget::ExclusiveReadMemory128: c.BL(prelude_info.exclusive_read_memory_128); break; - // { this, vaddr, value, size } case LinkTarget::WriteMemory8: c.BL(prelude_info.write_memory_8); break; @@ -209,7 +205,6 @@ void AddressSpace::Link(EmittedBlockInfo& block_info) { case LinkTarget::WriteMemory128: c.BL(prelude_info.write_memory_128); break; - // case LinkTarget::WrappedWriteMemory8: c.BL(prelude_info.wrapped_write_memory_8); break; @@ -225,7 +220,6 @@ void AddressSpace::Link(EmittedBlockInfo& block_info) { case LinkTarget::WrappedWriteMemory128: c.BL(prelude_info.wrapped_write_memory_128); break; - // case LinkTarget::ExclusiveWriteMemory8: c.BL(prelude_info.exclusive_write_memory_8); break; diff --git a/src/dynarmic/src/dynarmic/backend/arm64/emit_arm64_memory.cpp b/src/dynarmic/src/dynarmic/backend/arm64/emit_arm64_memory.cpp index 170fcf9613..1f758a190a 100644 --- a/src/dynarmic/src/dynarmic/backend/arm64/emit_arm64_memory.cpp +++ b/src/dynarmic/src/dynarmic/backend/arm64/emit_arm64_memory.cpp @@ -274,8 +274,8 @@ std::pair InlinePageTableEmitVAddrLookup(oaknut::Cod code.LDR(Xscratch0, Xpagetable, Xscratch0); if (ctx.conf.page_table_marked_bit) { - code.TST(Xscratch0, 1ULL << *ctx.conf.page_table_marked_bit); - code.B(NE, *fallback); + // check for marked bit + code.TBNZ(Xscratch0, *ctx.conf.page_table_marked_bit, *fallback); } if (ctx.conf.page_table_pointer_mask != 0) { diff --git a/src/dynarmic/src/dynarmic/backend/exception_handler.h b/src/dynarmic/src/dynarmic/backend/exception_handler.h index ce6abef5ce..772e2c138e 100644 --- a/src/dynarmic/src/dynarmic/backend/exception_handler.h +++ b/src/dynarmic/src/dynarmic/backend/exception_handler.h @@ -17,7 +17,7 @@ #if defined(ARCHITECTURE_x86_64) namespace Dynarmic::Backend::X64 { class BlockOfCode; -} // namespace Dynarmic::Backend::X64 +} #elif defined(ARCHITECTURE_arm64) namespace oaknut { class CodeBlock; @@ -30,6 +30,10 @@ class CodeBlock; namespace Dynarmic::Backend::LoongArch64 { class CodeBlock; } // namespace Dynarmic::Backend::LoongArch64 +#elif defined(ARCHITECTURE_powerpc64) +namespace Dynarmic::Backend::PPC64 { +class CodeBlock; +} #else # error "Invalid architecture" #endif @@ -53,6 +57,9 @@ struct FakeCall { struct FakeCall { u64 call_pc; }; +#elif defined(ARCHITECTURE_powerpc64) +struct FakeCall { +}; #else # error "Invalid architecture" #endif @@ -70,6 +77,8 @@ public: void Register(RV64::CodeBlock& mem, std::size_t mem_size); #elif defined(ARCHITECTURE_loongarch64) void Register(LoongArch64::CodeBlock& mem, std::size_t mem_size); +#elif defined(ARCHITECTURE_powerpc64) + void Register(PPC64::CodeBlock& mem, std::size_t mem_size); #else # error "Invalid architecture" #endif diff --git a/src/dynarmic/src/dynarmic/backend/exception_handler_generic.cpp b/src/dynarmic/src/dynarmic/backend/exception_handler_generic.cpp index f19fe98a6d..9e92ff1ffa 100644 --- a/src/dynarmic/src/dynarmic/backend/exception_handler_generic.cpp +++ b/src/dynarmic/src/dynarmic/backend/exception_handler_generic.cpp @@ -17,24 +17,21 @@ ExceptionHandler::ExceptionHandler() = default; ExceptionHandler::~ExceptionHandler() = default; #if defined(ARCHITECTURE_x86_64) -void ExceptionHandler::Register(X64::BlockOfCode&) { - // Do nothing -} +void ExceptionHandler::Register(X64::BlockOfCode&) #elif defined(ARCHITECTURE_arm64) -void ExceptionHandler::Register(oaknut::CodeBlock&, std::size_t) { - // Do nothing -} +void ExceptionHandler::Register(oaknut::CodeBlock&, std::size_t) #elif defined(ARCHITECTURE_riscv64) -void ExceptionHandler::Register(RV64::CodeBlock&, std::size_t) { - // Do nothing -} +void ExceptionHandler::Register(RV64::CodeBlock&, std::size_t) #elif defined(ARCHITECTURE_loongarch64) -void ExceptionHandler::Register(LoongArch64::CodeBlock&, std::size_t) { - // Do nothing -} +void ExceptionHandler::Register(LoongArch64::CodeBlock&, std::size_t) +#elif defined(ARCHITECTURE_powerpc64) +void ExceptionHandler::Register(PPC64::CodeBlock&, std::size_t) #else # error "Invalid architecture" #endif +{ + // Do nothing +} bool ExceptionHandler::SupportsFastmem() const noexcept { return false; diff --git a/src/dynarmic/src/dynarmic/backend/exception_handler_posix.cpp b/src/dynarmic/src/dynarmic/backend/exception_handler_posix.cpp index 24a059aee2..c7d766afb7 100644 --- a/src/dynarmic/src/dynarmic/backend/exception_handler_posix.cpp +++ b/src/dynarmic/src/dynarmic/backend/exception_handler_posix.cpp @@ -11,6 +11,7 @@ #include #include #include +#include #include #include #include @@ -35,6 +36,8 @@ # include "dynarmic/backend/riscv64/code_block.h" #elif defined(ARCHITECTURE_loongarch64) # include "dynarmic/backend/loongarch64/code_block.h" +#elif defined(ARCHITECTURE_powerpc64) +# include "dynarmic/backend/ppc64/code_block.h" #else # error "Invalid architecture" #endif @@ -205,6 +208,10 @@ void ExceptionHandler::Register(RV64::CodeBlock& mem, std::size_t size) { void ExceptionHandler::Register(LoongArch64::CodeBlock& mem, std::size_t size) { impl = std::make_unique(std::bit_cast(mem.ptr()), size); } +#elif defined(ARCHITECTURE_powerpc64) +void ExceptionHandler::Register(PPC64::CodeBlock& mem, std::size_t size) { + impl = std::make_unique(std::bit_cast(mem.ptr()), size); +} #else # error "Invalid architecture" #endif diff --git a/src/dynarmic/src/dynarmic/backend/ppc64/a32_core.h b/src/dynarmic/src/dynarmic/backend/ppc64/a32_core.h new file mode 100644 index 0000000000..1a3bb9296a --- /dev/null +++ b/src/dynarmic/src/dynarmic/backend/ppc64/a32_core.h @@ -0,0 +1,32 @@ +// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project +// SPDX-License-Identifier: GPL-3.0-or-later + +#pragma once + +#include +#include +#include "dynarmic/backend/ppc64/code_block.h" +#include "dynarmic/backend/ppc64/emit_ppc64.h" +#include "dynarmic/frontend/A32/a32_location_descriptor.h" +#include "dynarmic/interface/A32/a32.h" +#include "dynarmic/interface/A32/config.h" +#include "dynarmic/ir/terminal.h" +#include "dynarmic/ir/basic_block.h" + +namespace Dynarmic::Backend::PPC64 { + +struct A32JitState { + std::array regs{}; + alignas(16) std::array ext_regs{}; + u32 upper_location_descriptor; + u32 exclusive_state = 0; + u32 cpsr_nzcv = 0; + u32 fpscr = 0; + u32 check_bit = 0; + + IR::LocationDescriptor GetLocationDescriptor() const { + return IR::LocationDescriptor{regs[15] | (u64(upper_location_descriptor) << 32)}; + } +}; + +} // namespace Dynarmic::Backend::RV64 diff --git a/src/dynarmic/src/dynarmic/backend/ppc64/a32_interface.cpp b/src/dynarmic/src/dynarmic/backend/ppc64/a32_interface.cpp new file mode 100644 index 0000000000..b974750720 --- /dev/null +++ b/src/dynarmic/src/dynarmic/backend/ppc64/a32_interface.cpp @@ -0,0 +1,250 @@ +// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project +// SPDX-License-Identifier: GPL-3.0-or-later + +#include +#include + +#include + +#include "common/assert.h" +#include "common/common_types.h" +#include "dynarmic/frontend/A32/a32_location_descriptor.h" +#include "dynarmic/frontend/A32/translate/a32_translate.h" +#include "dynarmic/frontend/A32/FPSCR.h" +#include "dynarmic/interface/A32/config.h" +#include "dynarmic/backend/ppc64/a32_core.h" +#include "dynarmic/common/atomic.h" +#include "dynarmic/ir/opt_passes.h" +#include "dynarmic/interface/A32/a32.h" + +namespace Dynarmic::A32 { + +using namespace Dynarmic::Backend::PPC64; +using CodePtr = std::uint32_t*; + +struct A32AddressSpace final { + explicit A32AddressSpace(const A32::UserConfig& conf) + : conf(conf) + , cb(conf.code_cache_size) + , as(cb.ptr(), conf.code_cache_size) { + + } + + CodePtr GetOrEmit(IR::LocationDescriptor desc) { + if (auto const it = block_entries.find(desc.Value()); it != block_entries.end()) + return it->second; + + ir_block.Reset(A32::LocationDescriptor{desc}); + A32::Translate(ir_block, A32::LocationDescriptor{desc}, conf.callbacks, {conf.arch_version, conf.define_unpredictable_behaviour, conf.hook_hint_instructions}); + Optimization::Optimize(ir_block, conf, {}); + const EmittedBlockInfo block_info = Emit(std::move(ir_block)); + + block_infos.insert_or_assign(desc.Value(), block_info); + block_entries.insert_or_assign(desc.Value(), block_info.entry_point); + return block_info.entry_point; + } + + void ClearCache() { + block_entries.clear(); + block_infos.clear(); + } + + EmittedBlockInfo Emit(IR::Block block) { + EmittedBlockInfo block_info = EmitPPC64(as, std::move(block), { + .enable_cycle_counting = conf.enable_cycle_counting, + .always_little_endian = conf.always_little_endian, + .a64_variant = false + }); + Link(block_info); + return block_info; + } + + void Link(EmittedBlockInfo& block_info) { + //UNREACHABLE(); + } + + IR::Block ir_block = {LocationDescriptor(0, PSR(0), FPSCR(0), false)}; + const A32::UserConfig conf; + CodeBlock cb; + powah::Context as; + ankerl::unordered_dense::map block_entries; + ankerl::unordered_dense::map block_infos; +}; + +struct A32Core final { + static HaltReason Run(A32AddressSpace& process, A32JitState& thread_ctx, volatile u32* halt_reason) { + auto const loc = thread_ctx.GetLocationDescriptor(); + auto const entry = process.GetOrEmit(loc); + using CodeFn = HaltReason (*)(A32AddressSpace*, A32JitState*, volatile u32*, void*); + return (CodeFn(entry))(&process, &thread_ctx, halt_reason, reinterpret_cast(&A32Core::Run)); + } +}; + +struct Jit::Impl final { + Impl(Jit* jit_interface, A32::UserConfig conf) + : conf(conf) + , current_address_space(conf) + , jit_interface(jit_interface) {} + + HaltReason Run() { + ASSERT(!is_executing); + is_executing = false; + HaltReason hr = A32Core::Run(current_address_space, jit_state, &halt_reason); + is_executing = true; + RequestCacheInvalidation(); + return hr; + } + + HaltReason Step() { + // HaltReason hr = A32Core::Step(current_address_space, jit_state, &halt_reason); + // RequestCacheInvalidation(); + return HaltReason{}; + } + + void ClearCache() { + std::unique_lock lock{invalidation_mutex}; + invalidate_entire_cache = true; + HaltExecution(HaltReason::CacheInvalidation); + } + + void InvalidateCacheRange(u32 start_address, size_t length) { + std::unique_lock lock{invalidation_mutex}; + invalid_cache_ranges.add(boost::icl::discrete_interval::closed(start_address, u32(start_address + length - 1))); + HaltExecution(HaltReason::CacheInvalidation); + } + + void Reset() { + jit_state = {}; + } + + void HaltExecution(HaltReason hr) { + Atomic::Or(&halt_reason, ~u32(hr)); + } + + void ClearHalt(HaltReason hr) { + Atomic::And(&halt_reason, ~u32(hr)); + } + + std::array& Regs() { + return jit_state.regs; + } + + const std::array& Regs() const { + return jit_state.regs; + } + + std::array& ExtRegs() { + return jit_state.ext_regs; + } + + const std::array& ExtRegs() const { + return jit_state.ext_regs; + } + + u32 Cpsr() const { + return jit_state.cpsr_nzcv; + } + + void SetCpsr(u32 value) { + jit_state.cpsr_nzcv = value; + } + + u32 Fpscr() const { + return jit_state.fpscr; + } + + void SetFpscr(u32 value) { + jit_state.fpscr = value; + } + + void ClearExclusiveState() { + jit_state.exclusive_state = false; + } + +private: + void RequestCacheInvalidation() { + // UNREACHABLE(); + invalidate_entire_cache = false; + invalid_cache_ranges.clear(); + } + + A32::UserConfig conf; + A32JitState jit_state{}; + A32AddressSpace current_address_space; + Jit* jit_interface; + volatile u32 halt_reason = 0; + bool is_executing = false; + + boost::icl::interval_set invalid_cache_ranges; + bool invalidate_entire_cache = false; + std::mutex invalidation_mutex; +}; + +Jit::Jit(UserConfig conf) : impl(std::make_unique(this, conf)) {} +Jit::~Jit() = default; + +HaltReason Jit::Run() { + return impl->Run(); +} + +HaltReason Jit::Step() { + return impl->Step(); +} + +void Jit::ClearCache() { + impl->ClearCache(); +} + +void Jit::InvalidateCacheRange(u32 start_address, std::size_t length) { + impl->InvalidateCacheRange(start_address, length); +} + +void Jit::Reset() { + impl->Reset(); +} + +void Jit::HaltExecution(HaltReason hr) { + impl->HaltExecution(hr); +} + +void Jit::ClearHalt(HaltReason hr) { + impl->ClearHalt(hr); +} + +std::array& Jit::Regs() { + return impl->Regs(); +} + +const std::array& Jit::Regs() const { + return impl->Regs(); +} + +std::array& Jit::ExtRegs() { + return impl->ExtRegs(); +} + +const std::array& Jit::ExtRegs() const { + return impl->ExtRegs(); +} + +u32 Jit::Cpsr() const { + return impl->Cpsr(); +} + +void Jit::SetCpsr(u32 value) { + impl->SetCpsr(value); +} + +u32 Jit::Fpscr() const { + return impl->Fpscr(); +} + +void Jit::SetFpscr(u32 value) { + impl->SetFpscr(value); +} + +void Jit::ClearExclusiveState() { + impl->ClearExclusiveState(); +} + +} // namespace Dynarmic::A32 diff --git a/src/dynarmic/src/dynarmic/backend/ppc64/a64_core.h b/src/dynarmic/src/dynarmic/backend/ppc64/a64_core.h new file mode 100644 index 0000000000..d727e0d3ed --- /dev/null +++ b/src/dynarmic/src/dynarmic/backend/ppc64/a64_core.h @@ -0,0 +1,40 @@ +// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project +// SPDX-License-Identifier: GPL-3.0-or-later + +#pragma once + + +#include +#include +#include "dynarmic/backend/ppc64/code_block.h" +#include "dynarmic/backend/ppc64/emit_ppc64.h" +#include "dynarmic/frontend/A64/a64_location_descriptor.h" +#include "dynarmic/interface/A64/a64.h" +#include "dynarmic/interface/A64/config.h" +#include "dynarmic/ir/terminal.h" +#include "dynarmic/ir/basic_block.h" + +namespace Dynarmic::Backend::PPC64 { + +struct A64JitState { + using ProgramCounterType = u32; + std::array regs{}; + u64 pc = 0; + alignas(16) std::array vec{}; + u64 sp = 0; + u32 upper_location_descriptor = 0; + u32 exclusive_state = 0; + u32 pstate = 0; + u32 fpcr = 0; + u32 fpsr = 0; + volatile u32 halt_reason = 0; + u32 check_bit = 0; + + IR::LocationDescriptor GetLocationDescriptor() const { + const u64 fpcr_u64 = u64(fpcr & A64::LocationDescriptor::fpcr_mask) << A64::LocationDescriptor::fpcr_shift; + const u64 pc_u64 = pc & A64::LocationDescriptor::pc_mask; + return IR::LocationDescriptor{pc_u64 | fpcr_u64}; + } +}; + +} // namespace Dynarmic::Backend::RV64 diff --git a/src/dynarmic/src/dynarmic/backend/ppc64/a64_interface.cpp b/src/dynarmic/src/dynarmic/backend/ppc64/a64_interface.cpp new file mode 100644 index 0000000000..53753673dc --- /dev/null +++ b/src/dynarmic/src/dynarmic/backend/ppc64/a64_interface.cpp @@ -0,0 +1,366 @@ +// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project +// SPDX-License-Identifier: GPL-3.0-or-later + +#include +#include +#include + +#include +#include "common/assert.h" +#include "common/common_types.h" + +#include "dynarmic/frontend/A64/a64_location_descriptor.h" +#include "dynarmic/frontend/A64/translate/a64_translate.h" +#include "dynarmic/interface/A64/config.h" +#include "dynarmic/backend/ppc64/a64_core.h" +#include "dynarmic/common/atomic.h" +#include "dynarmic/ir/opt_passes.h" +#include "dynarmic/interface/A64/a64.h" + +namespace Dynarmic::A64 { + +using namespace Dynarmic::Backend::PPC64; +using CodePtr = std::uint32_t*; + +struct A64AddressSpace final { + explicit A64AddressSpace(const A64::UserConfig& conf) + : conf(conf) + , cb(conf.code_cache_size) + , as(cb.ptr(), conf.code_cache_size) + { + + } + + CodePtr GetOrEmit(IR::LocationDescriptor desc) { + if (auto const it = block_entries.find(desc.Value()); it != block_entries.end()) + return it->second; + auto const get_code = [this](u64 vaddr) { + return conf.callbacks->MemoryReadCode(vaddr); + }; + ir_block.Reset(A64::LocationDescriptor{desc}); + A64::Translate(ir_block, A64::LocationDescriptor{desc}, get_code, {conf.define_unpredictable_behaviour, conf.wall_clock_cntpct}); + Optimization::Optimize(ir_block, conf, {}); + fmt::print("IR:\n{}\n", IR::DumpBlock(ir_block)); + const EmittedBlockInfo block_info = Emit(std::move(ir_block)); + block_infos.insert_or_assign(desc.Value(), block_info); + block_entries.insert_or_assign(desc.Value(), block_info.entry_point); + return block_info.entry_point; + } + + void ClearCache() { + block_entries.clear(); + block_infos.clear(); + } + + EmittedBlockInfo Emit(IR::Block block) { + EmittedBlockInfo block_info = EmitPPC64(as, std::move(block), { + .enable_cycle_counting = conf.enable_cycle_counting, + .always_little_endian = true, + .a64_variant = true + }); + Link(block_info); + return block_info; + } + + void Link(EmittedBlockInfo& block_info) { + // TODO(lizzie): Block linking + // UNREACHABLE(); + } + + IR::Block ir_block = {LocationDescriptor(0, FP::FPCR(0), false)}; + const A64::UserConfig conf; + CodeBlock cb; + powah::Context as; + ankerl::unordered_dense::map block_entries; + ankerl::unordered_dense::map block_infos; +}; + +struct A64Core final { + using CodeFn = HaltReason (*)(A64AddressSpace*, A64JitState*, volatile u32*, void *fn); + static HaltReason Run(A64AddressSpace& process, A64JitState& thread_ctx, volatile u32* halt_reason) { + HaltReason hr{}; + do { + const auto loc = thread_ctx.GetLocationDescriptor(); + const auto entry = process.GetOrEmit(loc); + hr = (CodeFn(entry))(&process, &thread_ctx, halt_reason, (void*)&A64Core::Run); + } while (hr == HaltReason(0)); + return hr; + } +}; + +struct Jit::Impl final { + Impl(Jit* jit_interface, A64::UserConfig conf) + : conf(conf) + , current_address_space(conf) + , jit_interface(jit_interface) {} + + HaltReason Run() { + ASSERT(!is_executing); + is_executing = true; + HaltReason hr = A64Core::Run(current_address_space, jit_state, &halt_reason); + is_executing = false; + RequestCacheInvalidation(); + return hr; + } + + HaltReason Step() { + // HaltReason hr = A64Core::Step(current_address_space, jit_state, &halt_reason); + // RequestCacheInvalidation(); + return HaltReason{}; + } + + void ClearCache() { + std::unique_lock lock{invalidation_mutex}; + invalidate_entire_cache = true; + HaltExecution(HaltReason::CacheInvalidation); + } + + void InvalidateCacheRange(u64 start_address, size_t length) { + std::unique_lock lock{invalidation_mutex}; + const auto end_address = u64(start_address + length - 1); + invalid_cache_ranges.add(boost::icl::discrete_interval::closed(start_address, end_address)); + HaltExecution(HaltReason::CacheInvalidation); + } + + void Reset() { + ASSERT(!is_executing); + jit_state = {}; + } + + void HaltExecution(HaltReason hr) { + Atomic::Or(&jit_state.halt_reason, u32(hr)); + } + + void ClearHalt(HaltReason hr) { + Atomic::And(&jit_state.halt_reason, ~u32(hr)); + } + + u64 GetSP() const { + return jit_state.sp; + } + + void SetSP(u64 value) { + jit_state.sp = value; + } + + u64 GetPC() const { + return jit_state.pc; + } + + void SetPC(u64 value) { + jit_state.pc = value; + } + + u64 GetRegister(size_t index) const { + return index == 31 ? GetSP() : jit_state.regs.at(index); + } + + void SetRegister(size_t index, u64 value) { + if (index == 31) + return SetSP(value); + jit_state.regs.at(index) = value; + } + + std::array GetRegisters() const { + return jit_state.regs; + } + + void SetRegisters(const std::array& value) { + jit_state.regs = value; + } + + Vector GetVector(size_t index) const { + return {jit_state.vec.at(index * 2), jit_state.vec.at(index * 2 + 1)}; + } + + void SetVector(size_t index, Vector value) { + jit_state.vec.at(index * 2) = value[0]; + jit_state.vec.at(index * 2 + 1) = value[1]; + } + + std::array GetVectors() const { + std::array ret; + static_assert(sizeof(ret) == sizeof(jit_state.vec)); + std::memcpy(ret.data(), jit_state.vec.data(), sizeof(jit_state.vec)); + return ret; + } + + void SetVectors(const std::array& value) { + static_assert(sizeof(value) == sizeof(jit_state.vec)); + std::memcpy(jit_state.vec.data(), value.data(), sizeof(jit_state.vec)); + } + + u32 GetFpcr() const { + return jit_state.fpcr; + } + + void SetFpcr(u32 value) { + jit_state.fpcr = value; + } + + u32 GetFpsr() const { + return jit_state.fpsr; + } + + void SetFpsr(u32 value) { + jit_state.fpsr = value; + } + + u32 GetPstate() const { + return jit_state.pstate; + } + + void SetPstate(u32 value) { + jit_state.pstate = value; + } + + void ClearExclusiveState() { + jit_state.exclusive_state = 0; + } + + bool IsExecuting() const { + return is_executing; + } + + std::string Disassemble() const { + // const size_t size = reinterpret_cast(block_of_code.getCurr()) - reinterpret_cast(block_of_code.GetCodeBegin()); + // auto const* p = reinterpret_cast(block_of_code.GetCodeBegin()); + // return Common::DisassemblePPC64(p, p + size); + return {}; + } + +private: + void RequestCacheInvalidation() { + // UNREACHABLE(); + invalidate_entire_cache = false; + invalid_cache_ranges.clear(); + } + + A64::UserConfig conf; + A64JitState jit_state{}; + A64AddressSpace current_address_space; + Jit* jit_interface; + volatile u32 halt_reason = 0; + bool is_executing = false; + + boost::icl::interval_set invalid_cache_ranges; + bool invalidate_entire_cache = false; + std::mutex invalidation_mutex; +}; + +Jit::Jit(UserConfig conf) : impl(std::make_unique(this, conf)) {} +Jit::~Jit() = default; + +HaltReason Jit::Run() { + return impl->Run(); +} + +HaltReason Jit::Step() { + return impl->Step(); +} + +void Jit::ClearCache() { + impl->ClearCache(); +} + +void Jit::InvalidateCacheRange(u64 start_address, size_t length) { + impl->InvalidateCacheRange(start_address, length); +} + +void Jit::Reset() { + impl->Reset(); +} + +void Jit::HaltExecution(HaltReason hr) { + impl->HaltExecution(hr); +} + +void Jit::ClearHalt(HaltReason hr) { + impl->ClearHalt(hr); +} + +u64 Jit::GetSP() const { + return impl->GetSP(); +} + +void Jit::SetSP(u64 value) { + impl->SetSP(value); +} + +u64 Jit::GetPC() const { + return impl->GetPC(); +} + +void Jit::SetPC(u64 value) { + impl->SetPC(value); +} + +u64 Jit::GetRegister(size_t index) const { + return impl->GetRegister(index); +} + +void Jit::SetRegister(size_t index, u64 value) { + impl->SetRegister(index, value); +} + +std::array Jit::GetRegisters() const { + return impl->GetRegisters(); +} + +void Jit::SetRegisters(const std::array& value) { + impl->SetRegisters(value); +} + +Vector Jit::GetVector(size_t index) const { + return impl->GetVector(index); +} + +void Jit::SetVector(size_t index, Vector value) { + impl->SetVector(index, value); +} + +std::array Jit::GetVectors() const { + return impl->GetVectors(); +} + +void Jit::SetVectors(const std::array& value) { + impl->SetVectors(value); +} + +u32 Jit::GetFpcr() const { + return impl->GetFpcr(); +} + +void Jit::SetFpcr(u32 value) { + impl->SetFpcr(value); +} + +u32 Jit::GetFpsr() const { + return impl->GetFpsr(); +} + +void Jit::SetFpsr(u32 value) { + impl->SetFpsr(value); +} + +u32 Jit::GetPstate() const { + return impl->GetPstate(); +} + +void Jit::SetPstate(u32 value) { + impl->SetPstate(value); +} + +void Jit::ClearExclusiveState() { + impl->ClearExclusiveState(); +} + +bool Jit::IsExecuting() const { + return impl->IsExecuting(); +} + +std::string Jit::Disassemble() const { + return impl->Disassemble(); +} + +} // namespace Dynarmic::A64 diff --git a/src/dynarmic/src/dynarmic/backend/ppc64/abi.h b/src/dynarmic/src/dynarmic/backend/ppc64/abi.h new file mode 100644 index 0000000000..937fbcd4a1 --- /dev/null +++ b/src/dynarmic/src/dynarmic/backend/ppc64/abi.h @@ -0,0 +1,77 @@ +// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project +// SPDX-License-Identifier: GPL-3.0-or-later + +#pragma once + +#include +#include "common/common_types.h" + +namespace Dynarmic::Backend::PPC64 { + +/* +https://refspecs.linuxfoundation.org/ELF/ppc64/PPC-elf64abi.html#REG + +r0 Volatile register used in function prologs +r1 Stack frame pointer +r2 TOC pointer +r3 Volatile parameter and return value register +r4-r10 Volatile registers used for function parameters +r11 Volatile register used in calls by pointer and as an environment pointer for languages which require one +r12 Volatile register used for exception handling and glink code +r13 Reserved for use as system thread ID +r14-r31 Nonvolatile registers used for local variables + +f0 Volatile scratch register +f1-f4 Volatile floating point parameter and return value registers +f5-f13 Volatile floating point parameter registers +f14-f31 Nonvolatile registers + +LR Link register (volatile) +CTR Loop counter register (volatile) +XER Fixed point exception register (volatile) +FPSCR Floating point status and control register (volatile) + +CR0-CR1 Volatile condition code register fields +CR2-CR4 Nonvolatile condition code register fields +CR5-CR7 Volatile condition code register fields + +v0-v1 Volatile scratch registers +v2-v13 Volatile vector parameters registers +v14-v19 Volatile scratch registers +v20-v31 Non-volatile registers +vrsave Non-volatile 32-bit register +*/ + +// Jit fn signature => (AXXAddressSpace& process, AXXJitState& thread_ctx, volatile u32* halt_reason) +constexpr powah::GPR RPROCESS = powah::R3; +constexpr powah::GPR RJIT = powah::R4; +constexpr powah::GPR RHALTREASON = powah::R5; +constexpr powah::GPR RTOCPTR = powah::R6; +// temporals +constexpr powah::GPR RNZCV = powah::R7; + +constexpr powah::GPR ABI_PARAM1 = powah::R3; +constexpr powah::GPR ABI_PARAM2 = powah::R4; +constexpr powah::GPR ABI_PARAM3 = powah::R5; +constexpr powah::GPR ABI_PARAM4 = powah::R6; + +// See https://refspecs.linuxfoundation.org/ELF/ppc64/PPC-elf64abi.html#REG +constexpr std::initializer_list GPR_ORDER{ + // r13 is thread-id + 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31 //non-volatile +}; + +constexpr std::initializer_list ABI_CALLEER_SAVED{ + powah::R3, powah::R4, powah::R5, powah::R6, + powah::R7, powah::R8, powah::R9, powah::R10, + powah::R11, powah::R12 +}; +constexpr std::initializer_list ABI_CALLEE_SAVED{ + powah::R14, powah::R15, powah::R16, powah::R17, + powah::R18, powah::R19, powah::R20, powah::R21, + powah::R22, powah::R23, powah::R24, powah::R25, + powah::R26, powah::R27, powah::R28, powah::R29, + powah::R30, powah::R31 +}; + +} // namespace Dynarmic::Backend::RV64 diff --git a/src/dynarmic/src/dynarmic/backend/ppc64/code_block.h b/src/dynarmic/src/dynarmic/backend/ppc64/code_block.h new file mode 100644 index 0000000000..b5e42f3706 --- /dev/null +++ b/src/dynarmic/src/dynarmic/backend/ppc64/code_block.h @@ -0,0 +1,37 @@ +// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project +// SPDX-License-Identifier: GPL-3.0-or-later + +#pragma once + +#include +#include +#include +#include + +#include "common/common_types.h" +#include "common/assert.h" + +namespace Dynarmic::Backend::PPC64 { + +class CodeBlock { +public: + explicit CodeBlock(size_t size_) noexcept : size{size_} { + block = (u8*)mmap(nullptr, size, PROT_WRITE | PROT_READ | PROT_EXEC, MAP_ANONYMOUS | MAP_PRIVATE, -1, 0); + //printf("block = %p, size= %zx\n", block, size); + ASSERT(block != nullptr); + } + ~CodeBlock() noexcept { + if (block != nullptr) + munmap(block, size); + } + template + T ptr() const noexcept { + static_assert(std::is_pointer_v || std::is_same_v || std::is_same_v); + return reinterpret_cast(block); + } +protected: + void* block = nullptr; + size_t size = 0; +}; + +} // namespace Dynarmic::Backend::RV64 diff --git a/src/dynarmic/src/dynarmic/backend/ppc64/emit_context.h b/src/dynarmic/src/dynarmic/backend/ppc64/emit_context.h new file mode 100644 index 0000000000..147ccdf0ec --- /dev/null +++ b/src/dynarmic/src/dynarmic/backend/ppc64/emit_context.h @@ -0,0 +1,27 @@ +// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project +// SPDX-License-Identifier: GPL-3.0-or-later + +#pragma once + +#include +#include "dynarmic/backend/ppc64/emit_ppc64.h" +#include "dynarmic/backend/ppc64/reg_alloc.h" + +namespace Dynarmic::IR { +class Block; +} // namespace Dynarmic::IR + +namespace Dynarmic::Backend::PPC64 { + +struct EmitConfig; + +struct EmitContext { + IR::Block& block; + RegAlloc& reg_alloc; + const EmitConfig& emit_conf; + EmittedBlockInfo& ebi; + // label used when returning :) + powah::Label l_return; +}; + +} // namespace Dynarmic::Backend::RV64 diff --git a/src/dynarmic/src/dynarmic/backend/ppc64/emit_ppc64.cpp b/src/dynarmic/src/dynarmic/backend/ppc64/emit_ppc64.cpp new file mode 100644 index 0000000000..3b5e3cc4e3 --- /dev/null +++ b/src/dynarmic/src/dynarmic/backend/ppc64/emit_ppc64.cpp @@ -0,0 +1,305 @@ +// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project +// SPDX-License-Identifier: GPL-3.0-or-later + +#include +#include + +#include +#include + +#include "dynarmic/backend/ppc64/emit_ppc64.h" +#include "dynarmic/backend/ppc64/a32_core.h" +#include "dynarmic/backend/ppc64/a64_core.h" +#include "dynarmic/backend/ppc64/abi.h" +#include "dynarmic/backend/ppc64/a32_core.h" +#include "dynarmic/backend/ppc64/a64_core.h" +#include "dynarmic/backend/ppc64/abi.h" +#include "dynarmic/backend/ppc64/emit_context.h" +#include "dynarmic/backend/ppc64/reg_alloc.h" +#include "dynarmic/backend/ppc64/stack_layout.h" +#include "dynarmic/ir/basic_block.h" +#include "dynarmic/ir/microinstruction.h" +#include "dynarmic/ir/opcodes.h" +#include "stack_layout.h" + +namespace Dynarmic::Backend::PPC64 { + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) {} + +template<> +void EmitIR(powah::Context& code, EmitContext& ctx, IR::Inst* inst) { + auto const result = ctx.reg_alloc.ScratchGpr(); + auto const source = ctx.reg_alloc.UseGpr(inst->GetArg(0)); + code.MR(result, source); + ctx.reg_alloc.DefineValue(inst, result); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext& ctx, IR::Inst* inst) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context& code, EmitContext& ctx, IR::Inst* inst) { + if (ctx.reg_alloc.IsValueLive(inst)) { + ASSERT(false && "unimp value live"); + return; + } + + // All logical operations whom set (RC) are going to compute as the following: + // 1. Rt <- logical_op (Ra, Rb) + // 2. Compare as Signed(Rt) against 0 + // Basically, it's equivalent to say: + // + // add r0, r1, r2 -> add. r0, r1, r2 + // cmpli r0, 0 + // + // CR0: + // 0 - 0x08 - N/LT, result is negative + // 1 - 0x04 - P/GT, result is positive + // 2 - 0x02 - Z/EQ, result is zero + // 3 - 0x01 - S/SO, summary overflow (carry?) + // XER: + // 32 - SO + // 33 - Overflow + // 34 - Carry + // NZCV -> (CR0.0, CR0.2, XER.34, XER.33) + if (false) { + //code.MFSPR(powah::GPR{1}, tmp4, powah::R0); // From XER + /*uint64_t nzcv(uint64_t cr0, uint64_t xer) { + return ((xer >> 33) & 1) + | (((xer >> 34) & 1) << 1) + | (((cr0 >> (32 + 2)) & 1) << 2) + | (((cr0 >> (32 + 0)) & 1) << 3); + }*/ + // auto const tmp9 = ctx.reg_alloc.ScratchGpr(); + // auto const tmp10 = ctx.reg_alloc.ScratchGpr(); + // code.SRDI(tmp9, tmp3, 34); + // code.RLDICL(tmp10, tmp4, 31, 63); + // code.SRDI(tmp3, tmp3, 32); + // code.RLDIC(tmp9, tmp9, 2, 61); + // code.OR(tmp9, tmp9, tmp10); + // code.RLDIC(tmp3, tmp3, 3, 60); + // code.SRDI(tmp4, tmp4, 34); + // code.OR(tmp3, tmp9, tmp3); + // code.RLDIC(tmp4, tmp4, 1, 62); + // code.OR(tmp3, tmp3, tmp4); + } else { + // MFCR Fills RT 32:63, RT 0:31 left blank + auto const tmp3 = ctx.reg_alloc.ScratchGpr(); + code.MR(tmp3, PPC64::RNZCV); + ctx.reg_alloc.DefineValue(inst, tmp3); + } +} + +template<> +void EmitIR(powah::Context& code, EmitContext& ctx, IR::Inst* inst) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context& code, EmitContext& ctx, IR::Inst* inst) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +namespace { + +void EmitLeafTerminal(powah::Context& code, EmitContext& ctx, IR::Term::LeafTerminal const& terminal, IR::LocationDescriptor initial_location, bool is_single_step); +void EmitTerminal(powah::Context& code, EmitContext& ctx, IR::Term::Terminal const& terminal, IR::LocationDescriptor initial_location, bool is_single_step); + +void EmitTerminal(powah::Context& code, EmitContext& ctx, IR::Term::ReturnToDispatch, IR::LocationDescriptor, bool) { + ASSERT(false && "unimp"); +} + +// r3 -> process +// r4 -> thread_ctx +// r5 -> halt_reason +// r6 -> test_thunk +void EmitTerminal(powah::Context& code, EmitContext& ctx, IR::Term::LinkBlock terminal, IR::LocationDescriptor initial_location, bool) { + if (ctx.emit_conf.a64_variant) { + auto const tmp = ctx.reg_alloc.ScratchGpr(); + code.LI(tmp, terminal.next.Value()); + code.STD(tmp, PPC64::RJIT, offsetof(A64JitState, pc)); + code.B(ctx.l_return); + } else { + auto const tmp = ctx.reg_alloc.ScratchGpr(); + code.LI(tmp, terminal.next.Value()); + code.STW(tmp, PPC64::RJIT, offsetof(A32JitState, regs) + sizeof(u32) * 15); + ASSERT(false && "unimp"); + } +} + +void EmitTerminal(powah::Context& code, EmitContext& ctx, IR::Term::LinkBlockFast terminal, IR::LocationDescriptor initial_location, bool is_single_step) { + EmitTerminal(code, ctx, IR::Term::LinkBlock{terminal.next}, initial_location, is_single_step); +} + +void EmitTerminal(powah::Context& code, EmitContext& ctx, IR::Term::PopRSBHint, IR::LocationDescriptor, bool) { + ASSERT(false && "unimp"); +} + +void EmitTerminal(powah::Context& code, EmitContext& ctx, IR::Term::FastDispatchHint, IR::LocationDescriptor, bool) { + ASSERT(false && "unimp"); +} + +void EmitTerminal(powah::Context& code, EmitContext& ctx, IR::Term::If terminal, IR::LocationDescriptor initial_location, bool is_single_step) { + ASSERT(false && "unimp"); +} + +void EmitTerminal(powah::Context& code, EmitContext& ctx, IR::Term::CheckBit terminal, IR::LocationDescriptor initial_location, bool is_single_step) { + powah::Label const l_else = code.DefineLabel(); + powah::Label const l_end = code.DefineLabel(); + auto const tmp = ctx.reg_alloc.ScratchGpr(); + code.LWZ(tmp, PPC64::RJIT, offsetof(A64JitState, check_bit)); + code.CMPLDI(tmp, 0); + code.BEQ(powah::CR0, l_else); + // CheckBit == 1 + EmitLeafTerminal(code, ctx, terminal.then_, initial_location, is_single_step); + code.B(l_end); + // CheckBit == 0 + code.LABEL(l_else); + EmitLeafTerminal(code, ctx, terminal.else_, initial_location, is_single_step); + code.LABEL(l_end); +} + +void EmitTerminal(powah::Context& code, EmitContext& ctx, IR::Term::CheckHalt terminal, IR::LocationDescriptor initial_location, bool is_single_step) { + ASSERT(false && "unimp"); +} + +void EmitLeafTerminal(powah::Context& code, EmitContext& ctx, IR::Term::LeafTerminal const& terminal, IR::LocationDescriptor initial_location, bool is_single_step) { + if (auto const x = std::get_if(&terminal)) + return EmitTerminal(code, ctx, *x, initial_location, is_single_step); + if (auto const x = std::get_if(&terminal)) + return EmitTerminal(code, ctx, *x, initial_location, is_single_step); + if (auto const x = std::get_if(&terminal)) + return EmitTerminal(code, ctx, *x, initial_location, is_single_step); + if (auto const x = std::get_if(&terminal)) + return EmitTerminal(code, ctx, *x, initial_location, is_single_step); + if (auto const x = std::get_if(&terminal)) + return EmitTerminal(code, ctx, *x, initial_location, is_single_step); + UNREACHABLE(); +} + +void EmitTerminal(powah::Context& code, EmitContext& ctx, IR::Term::Terminal const& terminal, IR::LocationDescriptor initial_location, bool is_single_step) { + if (auto const x = std::get_if(&terminal)) + return EmitLeafTerminal(code, ctx, *x, initial_location, is_single_step); + if (auto const x = std::get_if(&terminal)) + return EmitTerminal(code, ctx, *x, initial_location, is_single_step); + if (auto const x = std::get_if(&terminal)) + return EmitTerminal(code, ctx, *x, initial_location, is_single_step); + if (auto const x = std::get_if(&terminal)) + return EmitTerminal(code, ctx, *x, initial_location, is_single_step); + UNREACHABLE(); +} +} + +EmittedBlockInfo EmitPPC64(powah::Context& code, IR::Block block, const EmitConfig& emit_conf) { + EmittedBlockInfo ebi; + RegAlloc reg_alloc{code}; + EmitContext ctx{block, reg_alloc, emit_conf, ebi, code.DefineLabel()}; + size_t const stack_size = 112 + ABI_CALLEE_SAVED.size() * 8; + auto const start_offset = code.offset; + ebi.entry_point = &code.base[start_offset]; + if (!block.instructions.empty()) { + code.MFLR(powah::R0); + code.STD(powah::R0, powah::R1, 16); + // Non-volatile saves + std::vector gp_regs{ABI_CALLEE_SAVED}; + for (size_t i = 0; i < gp_regs.size(); ++i) + code.STD(gp_regs[i], powah::R1, -int32_t(gp_regs.size() - i) * 8); + code.STDU(powah::R1, powah::R1, uint32_t(-stack_size)); + code.STD(powah::R2, powah::R1, 40); + + for (auto iter = block.instructions.begin(); iter != block.instructions.end(); ++iter) { + IR::Inst* inst = &*iter; + switch (inst->GetOpcode()) { +#define OPCODE(name, type, ...) \ + case IR::Opcode::name: \ + EmitIR(code, ctx, inst); \ + break; +#define A32OPC(name, type, ...) \ + case IR::Opcode::A32##name: \ + EmitIR(code, ctx, inst); \ + break; +#define A64OPC(name, type, ...) \ + case IR::Opcode::A64##name: \ + EmitIR(code, ctx, inst); \ + break; +#include "dynarmic/ir/opcodes.inc" +#undef OPCODE +#undef A32OPC +#undef A64OPC + default: + UNREACHABLE(); + } + } + + // auto const cycles_to_add = block.CycleCount(); + EmitTerminal(code, ctx, ctx.block.GetTerminal(), ctx.block.Location(), false); + code.LABEL(ctx.l_return); + code.ADDI(powah::R1, powah::R1, stack_size); + for (size_t i = 0; i < gp_regs.size(); ++i) + code.LD(gp_regs[i], powah::R1, -int32_t(gp_regs.size() - i) * 8); + code.LD(powah::R0, powah::R1, 16); + code.MTLR(powah::R0); + code.LI(powah::R3, 0); + } else { + EmitTerminal(code, ctx, ctx.block.GetTerminal(), ctx.block.Location(), false); + code.LABEL(ctx.l_return); + code.LI(powah::R3, 67); //non-zero ret + } + code.BLR(); + code.ApplyRelocs(); + + /* + llvm-objcopy -I binary -O elf64-powerpc --rename-section=.data=.text,code test.bin test.elf && llvm-objdump -d test.elf + */ + static FILE* fp = fopen("test.bin", "wb"); + fwrite(code.base, code.offset - start_offset, sizeof(uint32_t), fp); + fflush(fp); + + ebi.size = code.offset - start_offset; + return ebi; +} + +} // namespace Dynarmic::Backend::RV64 diff --git a/src/dynarmic/src/dynarmic/backend/ppc64/emit_ppc64.h b/src/dynarmic/src/dynarmic/backend/ppc64/emit_ppc64.h new file mode 100644 index 0000000000..2138ee158a --- /dev/null +++ b/src/dynarmic/src/dynarmic/backend/ppc64/emit_ppc64.h @@ -0,0 +1,41 @@ +// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project +// SPDX-License-Identifier: GPL-3.0-or-later + +#pragma once + +#include + +#include +#include "common/common_types.h" + +namespace biscuit { +class Assembler; +} // namespace biscuit + +namespace Dynarmic::IR { +class Block; +class Inst; +enum class Cond; +enum class Opcode; +} // namespace Dynarmic::IR + +namespace Dynarmic::Backend::PPC64 { + +struct EmittedBlockInfo { + std::uint32_t* entry_point; + size_t size; +}; + +struct EmitConfig { + bool enable_cycle_counting; + bool always_little_endian; + bool a64_variant; +}; + +struct EmitContext; + +EmittedBlockInfo EmitPPC64(powah::Context& code, IR::Block block, const EmitConfig& emit_conf); +template +void EmitIR(powah::Context& code, EmitContext& ctx, IR::Inst* inst); + +} // namespace Dynarmic::Backend::RV64 diff --git a/src/dynarmic/src/dynarmic/backend/ppc64/emit_ppc64_a32.cpp b/src/dynarmic/src/dynarmic/backend/ppc64/emit_ppc64_a32.cpp new file mode 100644 index 0000000000..cd1d4d1f06 --- /dev/null +++ b/src/dynarmic/src/dynarmic/backend/ppc64/emit_ppc64_a32.cpp @@ -0,0 +1,318 @@ +// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project +// SPDX-License-Identifier: GPL-3.0-or-later + +#include +#include + +#include "dynarmic/frontend/A32/a32_types.h" +#include "dynarmic/backend/ppc64/a32_core.h" +#include "dynarmic/backend/ppc64/abi.h" +#include "dynarmic/backend/ppc64/emit_context.h" +#include "dynarmic/backend/ppc64/emit_ppc64.h" +#include "dynarmic/backend/ppc64/reg_alloc.h" +#include "dynarmic/ir/basic_block.h" +#include "dynarmic/ir/microinstruction.h" +#include "dynarmic/ir/opcodes.h" + +namespace Dynarmic::Backend::PPC64 { + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context& code, EmitContext& ctx, IR::Inst* inst) { + if (inst->GetArg(0).GetType() == IR::Type::A32Reg) { + auto const result = ctx.reg_alloc.ScratchGpr(); + code.ADDI(result, PPC64::RJIT, A32::RegNumber(inst->GetArg(0).GetA32RegRef()) * sizeof(u32)); + code.LWZ(result, result, offsetof(A32JitState, regs)); + ctx.reg_alloc.DefineValue(inst, result); + } else { + ASSERT(false && "unimp"); + } +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context& code, EmitContext& ctx, IR::Inst* inst) { + auto const value = ctx.reg_alloc.UseGpr(inst->GetArg(1)); + if (inst->GetArg(0).GetType() == IR::Type::A32Reg) { + auto const addr = ctx.reg_alloc.ScratchGpr(); + code.ADDI(addr, PPC64::RJIT, A32::RegNumber(inst->GetArg(0).GetA32RegRef()) * sizeof(u32)); + code.STW(value, addr, offsetof(A32JitState, regs)); + } else { + ASSERT(false && "unimp"); + } +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context& code, EmitContext& ctx, IR::Inst* inst) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context& code, EmitContext& ctx, IR::Inst* inst) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context& code, EmitContext& ctx, IR::Inst* inst) { + auto const result = ctx.reg_alloc.ScratchGpr(); + code.LD(result, PPC64::RJIT, offsetof(A32JitState, cpsr_nzcv)); + code.RLWINM(result, result, 31, 31, 31); + ctx.reg_alloc.DefineValue(inst, result); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +// Memory +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +// Coprocesor +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +} // namespace Dynarmic::Backend::RV64 diff --git a/src/dynarmic/src/dynarmic/backend/ppc64/emit_ppc64_a64.cpp b/src/dynarmic/src/dynarmic/backend/ppc64/emit_ppc64_a64.cpp new file mode 100644 index 0000000000..7e7734009d --- /dev/null +++ b/src/dynarmic/src/dynarmic/backend/ppc64/emit_ppc64_a64.cpp @@ -0,0 +1,341 @@ +// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project +// SPDX-License-Identifier: GPL-3.0-or-later + +#include +#include + +#include "dynarmic/frontend/A64/a64_types.h" +#include "dynarmic/backend/ppc64/a64_core.h" +#include "dynarmic/backend/ppc64/abi.h" +#include "dynarmic/backend/ppc64/emit_context.h" +#include "dynarmic/backend/ppc64/emit_ppc64.h" +#include "dynarmic/backend/ppc64/reg_alloc.h" +#include "dynarmic/ir/basic_block.h" +#include "dynarmic/ir/microinstruction.h" +#include "dynarmic/ir/opcodes.h" + +namespace Dynarmic::Backend::PPC64 { + +template<> +void EmitIR(powah::Context& code, EmitContext& ctx, IR::Inst* inst) { + auto const value = ctx.reg_alloc.UseGpr(inst->GetArg(0)); + code.STW(value, PPC64::RJIT, offsetof(A64JitState, check_bit)); +} + +template<> +void EmitIR(powah::Context& code, EmitContext& ctx, IR::Inst* inst) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context& code, EmitContext& ctx, IR::Inst* inst) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context& code, EmitContext& ctx, IR::Inst* inst) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context& code, EmitContext& ctx, IR::Inst* inst) { + auto const value = ctx.reg_alloc.UseGpr(inst->GetArg(0)); + code.STW(value, PPC64::RJIT, offsetof(A64JitState, pstate)); +} + +template<> +void EmitIR(powah::Context& code, EmitContext& ctx, IR::Inst* inst) { + if (inst->GetArg(0).GetType() == IR::Type::A64Reg) { + auto const result = ctx.reg_alloc.ScratchGpr(); + // Need to account for endianess here... + auto const offs = offsetof(A64JitState, regs) + + A64::RegNumber(inst->GetArg(0).GetA64RegRef()) * sizeof(u64); + code.LWZ(result, PPC64::RJIT, offs); + ctx.reg_alloc.DefineValue(inst, result); + } else { + ASSERT(false && "unimp"); + } +} + +template<> +void EmitIR(powah::Context& code, EmitContext& ctx, IR::Inst* inst) { + if (inst->GetArg(0).GetType() == IR::Type::A64Reg) { + auto const result = ctx.reg_alloc.ScratchGpr(); + auto const offs = offsetof(A64JitState, regs) + + A64::RegNumber(inst->GetArg(0).GetA64RegRef()) * sizeof(u64); + code.LD(result, PPC64::RJIT, offs); + ctx.reg_alloc.DefineValue(inst, result); + } else { + ASSERT(false && "unimp"); + } +} + +template<> +void EmitIR(powah::Context& code, EmitContext& ctx, IR::Inst* inst) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context& code, EmitContext& ctx, IR::Inst* inst) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context& code, EmitContext& ctx, IR::Inst* inst) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context& code, EmitContext& ctx, IR::Inst* inst) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context& code, EmitContext& ctx, IR::Inst* inst) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context& code, EmitContext& ctx, IR::Inst* inst) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context& code, EmitContext& ctx, IR::Inst* inst) { + auto const value = ctx.reg_alloc.UseGpr(inst->GetArg(1)); + if (inst->GetArg(0).GetType() == IR::Type::A64Reg) { + auto const tmp = ctx.reg_alloc.ScratchGpr(); + auto const offs = offsetof(A64JitState, regs) + + A64::RegNumber(inst->GetArg(0).GetA64RegRef()) * sizeof(u64); + code.RLDICL(tmp, value, 0, 32); + code.STD(tmp, PPC64::RJIT, offs); + } else { + ASSERT(false && "unimp"); + } +} + +template<> +void EmitIR(powah::Context& code, EmitContext& ctx, IR::Inst* inst) { + auto const value = ctx.reg_alloc.UseGpr(inst->GetArg(1)); + if (inst->GetArg(0).GetType() == IR::Type::A64Reg) { + auto const offs = offsetof(A64JitState, regs) + + A64::RegNumber(inst->GetArg(0).GetA64RegRef()) * sizeof(u64); + code.STD(value, PPC64::RJIT, offs); + } else { + ASSERT(false && "unimp"); + } +} + +template<> +void EmitIR(powah::Context& code, EmitContext& ctx, IR::Inst* inst) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context& code, EmitContext& ctx, IR::Inst* inst) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context& code, EmitContext& ctx, IR::Inst* inst) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context& code, EmitContext& ctx, IR::Inst* inst) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context& code, EmitContext& ctx, IR::Inst* inst) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context& code, EmitContext& ctx, IR::Inst* inst) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context& code, EmitContext& ctx, IR::Inst* inst) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context& code, EmitContext& ctx, IR::Inst* inst) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context& code, EmitContext& ctx, IR::Inst* inst) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context& code, EmitContext& ctx, IR::Inst* inst) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context& code, EmitContext& ctx, IR::Inst* inst) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context& code, EmitContext& ctx, IR::Inst* inst) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context& code, EmitContext& ctx, IR::Inst* inst) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context& code, EmitContext& ctx, IR::Inst* inst) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context& code, EmitContext& ctx, IR::Inst* inst) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context& code, EmitContext& ctx, IR::Inst* inst) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context& code, EmitContext& ctx, IR::Inst* inst) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context& code, EmitContext& ctx, IR::Inst* inst) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context& code, EmitContext& ctx, IR::Inst* inst) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context& code, EmitContext& ctx, IR::Inst* inst) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context& code, EmitContext& ctx, IR::Inst* inst) { + ASSERT(false && "unimp"); +} + +// Memory +template<> +void EmitIR(powah::Context& code, EmitContext& ctx, IR::Inst* inst) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context& code, EmitContext& ctx, IR::Inst* inst) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context& code, EmitContext& ctx, IR::Inst* inst) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context& code, EmitContext& ctx, IR::Inst* inst) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context& code, EmitContext& ctx, IR::Inst* inst) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context& code, EmitContext& ctx, IR::Inst* inst) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context& code, EmitContext& ctx, IR::Inst* inst) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context& code, EmitContext& ctx, IR::Inst* inst) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context& code, EmitContext& ctx, IR::Inst* inst) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context& code, EmitContext& ctx, IR::Inst* inst) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context& code, EmitContext& ctx, IR::Inst* inst) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context& code, EmitContext& ctx, IR::Inst* inst) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context& code, EmitContext& ctx, IR::Inst* inst) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context& code, EmitContext& ctx, IR::Inst* inst) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context& code, EmitContext& ctx, IR::Inst* inst) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context& code, EmitContext& ctx, IR::Inst* inst) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context& code, EmitContext& ctx, IR::Inst* inst) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context& code, EmitContext& ctx, IR::Inst* inst) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context& code, EmitContext& ctx, IR::Inst* inst) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context& code, EmitContext& ctx, IR::Inst* inst) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context& code, EmitContext& ctx, IR::Inst* inst) { + ASSERT(false && "unimp"); +} + + +} // namespace Dynarmic::Backend::RV64 diff --git a/src/dynarmic/src/dynarmic/backend/ppc64/emit_ppc64_data_processing.cpp b/src/dynarmic/src/dynarmic/backend/ppc64/emit_ppc64_data_processing.cpp new file mode 100644 index 0000000000..ce211bbc48 --- /dev/null +++ b/src/dynarmic/src/dynarmic/backend/ppc64/emit_ppc64_data_processing.cpp @@ -0,0 +1,933 @@ +// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project +// SPDX-License-Identifier: GPL-3.0-or-later + +#include +#include + +#include "common/assert.h" +#include "dynarmic/backend/ppc64/a32_core.h" +#include "dynarmic/backend/ppc64/abi.h" +#include "dynarmic/backend/ppc64/emit_context.h" +#include "dynarmic/backend/ppc64/emit_ppc64.h" +#include "dynarmic/backend/ppc64/reg_alloc.h" +#include "dynarmic/ir/basic_block.h" +#include "dynarmic/ir/microinstruction.h" +#include "dynarmic/ir/opcodes.h" + +namespace Dynarmic::Backend::PPC64 { + +// uint64_t pack2x1(uint32_t lo, uint32_t hi) { return (uint64_t)lo | ((uint64_t)hi << 32); } +template<> +void EmitIR(powah::Context& code, EmitContext& ctx, IR::Inst* inst) { + auto const lo = ctx.reg_alloc.UseGpr(inst->GetArg(0)); + auto const hi = ctx.reg_alloc.UseGpr(inst->GetArg(1)); + auto const result = ctx.reg_alloc.ScratchGpr(); + code.SLDI(result, hi, 32); + code.OR(result, result, lo); + ctx.reg_alloc.DefineValue(inst, result); +} + +template<> +void EmitIR(powah::Context& code, EmitContext& ctx, IR::Inst* inst) { + ASSERT(false && "unimp"); +} + +// uint64_t lsw(uint64_t a) { return (uint32_t)a; } +template<> +void EmitIR(powah::Context& code, EmitContext& ctx, IR::Inst* inst) { + auto const result = ctx.reg_alloc.ScratchGpr(); + auto const source = ctx.reg_alloc.UseGpr(inst->GetArg(0)); + code.RLDICL(result, source, 0, 32); + ctx.reg_alloc.DefineValue(inst, result); +} + +// uint64_t f(uint64_t a) { return (uint16_t)a; } +template<> +void EmitIR(powah::Context& code, EmitContext& ctx, IR::Inst* inst) { + auto const result = ctx.reg_alloc.ScratchGpr(); + auto const source = ctx.reg_alloc.UseGpr(inst->GetArg(0)); + code.RLWINM(result, source, 0, 0xffff); + ctx.reg_alloc.DefineValue(inst, result); +} + +// uint64_t f(uint64_t a) { return (uint8_t)a; } +template<> +void EmitIR(powah::Context& code, EmitContext& ctx, IR::Inst* inst) { + auto const result = ctx.reg_alloc.ScratchGpr(); + auto const source = ctx.reg_alloc.UseGpr(inst->GetArg(0)); + code.RLWINM(result, source, 0, 0xff); + ctx.reg_alloc.DefineValue(inst, result); +} + +// uint64_t msw(uint64_t a) { return a >> 32; } +template<> +void EmitIR(powah::Context& code, EmitContext& ctx, IR::Inst* inst) { + auto const result = ctx.reg_alloc.ScratchGpr(); + auto const source = ctx.reg_alloc.UseGpr(inst->GetArg(0)); + code.SRDI(result, source, 32); + ctx.reg_alloc.DefineValue(inst, result); +} + +/* +uint64_t f(uint64_t a) { return ((uint32_t)a) >> 31; } +*/ +template<> +void EmitIR(powah::Context& code, EmitContext& ctx, IR::Inst* inst) { + auto const result = ctx.reg_alloc.ScratchGpr(); + auto const source = ctx.reg_alloc.UseGpr(inst->GetArg(0)); + code.RLWINM(result, source, 1, 31, 31); + ctx.reg_alloc.DefineValue(inst, result); +} + +/* +uint64_t f(uint64_t a) { return (uint32_t)a == 0; } +*/ +template<> +void EmitIR(powah::Context& code, EmitContext& ctx, IR::Inst* inst) { + auto const result = ctx.reg_alloc.ScratchGpr(); + auto const source = ctx.reg_alloc.UseGpr(inst->GetArg(0)); + code.CNTLZW(result, source); + code.SRWI(result, result, 5); + ctx.reg_alloc.DefineValue(inst, result); +} + +/* +uint64_t f(uint64_t a) { return a == 0; } +*/ +template<> +void EmitIR(powah::Context& code, EmitContext& ctx, IR::Inst* inst) { + auto const result = ctx.reg_alloc.ScratchGpr(); + auto const source = ctx.reg_alloc.UseGpr(inst->GetArg(0)); + code.CNTLZD(result, source); + code.SRDI(result, result, 6); + ctx.reg_alloc.DefineValue(inst, result); +} + +/* +uint64_t f(uint64_t a) { return (a & 1) != 0; } +*/ +template<> +void EmitIR(powah::Context& code, EmitContext& ctx, IR::Inst* inst) { + auto const result = ctx.reg_alloc.ScratchGpr(); + auto const source = ctx.reg_alloc.UseGpr(inst->GetArg(0)); + if (inst->GetArg(1).IsImmediate()) { + auto const shift = inst->GetArg(1).GetImmediateAsU64(); + if (shift > 0) { + code.RLDICL(result, source, (64 - shift - 1) & 0x3f, 63); + } + } else { + ASSERT(false && "unimp"); + } + ctx.reg_alloc.DefineValue(inst, result); +} + +/* +struct jit { + uint64_t t; + uint64_t a; +}; +uint64_t f(jit *p, uint64_t a, uint64_t b) { + bool n = (p->a & 0b1000) != 0; + bool z = (p->a & 0b0100) != 0; + bool c = (p->a & 0b0010) != 0; + bool v = (p->a & 0b0001) != 0; + return (p->a & 0b0001) == 0 ? a : b; +} +*/ +static powah::GPR EmitConditionalSelectX(powah::Context& code, EmitContext& ctx, IR::Inst* inst) { + auto const nzcv = ctx.reg_alloc.ScratchGpr(); + auto const then_ = ctx.reg_alloc.UseGpr(inst->GetArg(1)); + auto const else_ = ctx.reg_alloc.UseGpr(inst->GetArg(2)); + switch (inst->GetArg(0).GetCond()) { + case IR::Cond::EQ: // Z == 1 + code.LD(nzcv, PPC64::RJIT, offsetof(A32JitState, cpsr_nzcv)); + code.ANDI_(nzcv, nzcv, 4); + code.ISELGT(nzcv, then_, else_); + break; + case IR::Cond::NE: // Z == 0 + code.LD(nzcv, PPC64::RJIT, offsetof(A32JitState, cpsr_nzcv)); + code.ANDI_(nzcv, nzcv, 4); + code.ISELGT(nzcv, then_, else_); + break; + case IR::Cond::CS: // C == 1 + code.LD(nzcv, PPC64::RJIT, offsetof(A32JitState, cpsr_nzcv)); + code.ANDI_(nzcv, nzcv, 2); + code.ISELGT(nzcv, then_, else_); + break; + case IR::Cond::CC: // C == 0 + code.LD(nzcv, PPC64::RJIT, offsetof(A32JitState, cpsr_nzcv)); + code.ANDI_(nzcv, nzcv, 2); + code.ISELGT(nzcv, then_, else_); + break; + case IR::Cond::MI: // N == 1 + code.LD(nzcv, PPC64::RJIT, offsetof(A32JitState, cpsr_nzcv)); + code.ANDI_(nzcv, nzcv, 8); + code.ISELGT(nzcv, then_, else_); + break; + case IR::Cond::PL: // N == 0 + code.LD(nzcv, PPC64::RJIT, offsetof(A32JitState, cpsr_nzcv)); + code.ANDI_(nzcv, nzcv, 8); + code.ISELGT(nzcv, then_, else_); + break; + case IR::Cond::VS: // V == 1 + code.LD(nzcv, PPC64::RJIT, offsetof(A32JitState, cpsr_nzcv)); + code.ANDI_(nzcv, nzcv, 1); + code.ISELGT(nzcv, then_, else_); + break; + case IR::Cond::VC: // V == 0 + code.LD(nzcv, PPC64::RJIT, offsetof(A32JitState, cpsr_nzcv)); + code.ANDI_(nzcv, nzcv, 1); + code.ISELGT(nzcv, else_, then_); + break; + case IR::Cond::HI: // Z == 0 && C == 1 + code.LD(nzcv, PPC64::RJIT, offsetof(A32JitState, cpsr_nzcv)); + code.RLWINM(nzcv, nzcv, 0, 29, 30); + code.CMPLDI(nzcv, 2); + code.ISELEQ(nzcv, then_, else_); + break; + case IR::Cond::LS: // Z == 1 || C == 0 + code.LD(nzcv, PPC64::RJIT, offsetof(A32JitState, cpsr_nzcv)); + code.RLWINM(nzcv, nzcv, 0, 29, 30); + code.CMPLDI(nzcv, 2); + code.ISELEQ(nzcv, else_, then_); + break; + case IR::Cond::GE: { // N == V + auto const tmp = ctx.reg_alloc.ScratchGpr(); + code.LWZ(nzcv, PPC64::RJIT, offsetof(A32JitState, cpsr_nzcv)); + code.SRWI(tmp, nzcv, 3); + code.XOR(nzcv, tmp, nzcv); + code.ANDI_(nzcv, nzcv, 1); + code.ISELGT(nzcv, else_, then_); + } break; + case IR::Cond::LT: { // N != V + auto const tmp = ctx.reg_alloc.ScratchGpr(); + code.LWZ(nzcv, PPC64::RJIT, offsetof(A32JitState, cpsr_nzcv)); + code.SRWI(tmp, nzcv, 3); + code.XOR(nzcv, tmp, nzcv); + code.ANDI_(nzcv, nzcv, 1); + code.ISELGT(nzcv, then_, else_); + } break; + case IR::Cond::GT: { // Z == 0 && N == V + auto const tmp = ctx.reg_alloc.ScratchGpr(); + powah::Label const l_ne = code.DefineLabel(); + powah::Label const l_cc = code.DefineLabel(); + powah::Label const l_fi = code.DefineLabel(); + code.LD(nzcv, PPC64::RJIT, offsetof(A32JitState, cpsr_nzcv)); + code.ANDI_(tmp, nzcv, 4); + code.BNE(powah::CR0, l_ne); + code.SRWI(tmp, nzcv, 3); + code.XOR(nzcv, tmp, nzcv); + code.ANDI_(nzcv, nzcv, 1); + code.CMPLDI(nzcv, 0); + code.BGT(powah::CR0, l_fi); + code.LABEL(l_ne); + code.MR(then_, else_); + code.LABEL(l_cc); + code.MR(nzcv, then_); + code.LABEL(l_fi); + } break; + case IR::Cond::LE: { // Z == 1 || N != V + auto const tmp = ctx.reg_alloc.ScratchGpr(); + auto const tmp2 = ctx.reg_alloc.ScratchGpr(); + powah::Label const l_ne = code.DefineLabel(); + code.MR(tmp2, then_); + code.LD(nzcv, PPC64::RJIT, offsetof(A32JitState, cpsr_nzcv)); + code.ANDI_(tmp, nzcv, 4); + code.BNE(powah::CR0, l_ne); + code.SRWI(tmp, nzcv, 3); + code.XOR(nzcv, tmp, nzcv); + code.ANDI_(nzcv, nzcv, 1); + code.ISELGT(tmp2, then_, else_); + code.LABEL(l_ne); + code.MR(nzcv, tmp2); + } break; + default: + ASSERT(false && "unimp"); + } + return nzcv; +} + +template<> +void EmitIR(powah::Context& code, EmitContext& ctx, IR::Inst* inst) { + auto const result = EmitConditionalSelectX(code, ctx, inst); + code.RLDICL(result, result, 0, 32); + ctx.reg_alloc.DefineValue(inst, result); +} + +template<> +void EmitIR(powah::Context& code, EmitContext& ctx, IR::Inst* inst) { + auto const result = EmitConditionalSelectX(code, ctx, inst); + ctx.reg_alloc.DefineValue(inst, result); +} + +template<> +void EmitIR(powah::Context& code, EmitContext& ctx, IR::Inst* inst) { + auto const result = EmitConditionalSelectX(code, ctx, inst); + code.RLDICL(result, result, 0, 32); + ctx.reg_alloc.DefineValue(inst, result); +} + +template<> +void EmitIR(powah::Context& code, EmitContext& ctx, IR::Inst* inst) { + auto const result = ctx.reg_alloc.ScratchGpr(); + auto const source = ctx.reg_alloc.UseGpr(inst->GetArg(0)); + auto const shift = ctx.reg_alloc.UseGpr(inst->GetArg(1)); + code.SLW(result, source, shift); + code.RLDICL(result, result, 0, 32); + ctx.reg_alloc.DefineValue(inst, result); +} + +template<> +void EmitIR(powah::Context& code, EmitContext& ctx, IR::Inst* inst) { + auto const result = ctx.reg_alloc.ScratchGpr(); + auto const source = ctx.reg_alloc.UseGpr(inst->GetArg(0)); + auto const shift = ctx.reg_alloc.UseGpr(inst->GetArg(1)); + code.SLD(result, source, shift); + ctx.reg_alloc.DefineValue(inst, result); +} + +template<> +void EmitIR(powah::Context& code, EmitContext& ctx, IR::Inst* inst) { + auto const result = ctx.reg_alloc.ScratchGpr(); + auto const source = ctx.reg_alloc.UseGpr(inst->GetArg(0)); + auto const shift = ctx.reg_alloc.UseGpr(inst->GetArg(1)); + code.SRW(result, source, shift); + code.RLDICL(result, result, 0, 32); + ctx.reg_alloc.DefineValue(inst, result); +} + +/* +uint64_t f(uint64_t a, uint64_t s) { return a >> s; } +*/ +template<> +void EmitIR(powah::Context& code, EmitContext& ctx, IR::Inst* inst) { + auto const result = ctx.reg_alloc.ScratchGpr(); + auto const source = ctx.reg_alloc.UseGpr(inst->GetArg(0)); + auto const shift = ctx.reg_alloc.UseGpr(inst->GetArg(1)); + code.SRD(result, source, shift); + ctx.reg_alloc.DefineValue(inst, result); +} + +template<> +void EmitIR(powah::Context& code, EmitContext& ctx, IR::Inst* inst) { + auto const result = ctx.reg_alloc.ScratchGpr(); + auto const source = ctx.reg_alloc.UseGpr(inst->GetArg(0)); + auto const shift = ctx.reg_alloc.UseGpr(inst->GetArg(1)); + code.SRAW(result, source, shift); + code.RLDICL(result, result, 0, 32); + ctx.reg_alloc.DefineValue(inst, result); +} + +template<> +void EmitIR(powah::Context& code, EmitContext& ctx, IR::Inst* inst) { + auto const result = ctx.reg_alloc.ScratchGpr(); + auto const source = ctx.reg_alloc.UseGpr(inst->GetArg(0)); + auto const shift = ctx.reg_alloc.UseGpr(inst->GetArg(1)); + code.SRAD(result, source, shift); + ctx.reg_alloc.DefineValue(inst, result); +} + +// __builtin_rotateright32 +template<> +void EmitIR(powah::Context& code, EmitContext& ctx, IR::Inst* inst) { + auto const result = ctx.reg_alloc.ScratchGpr(); + auto const src_a = ctx.reg_alloc.UseGpr(inst->GetArg(0)); + auto const src_b = ctx.reg_alloc.UseGpr(inst->GetArg(0)); + code.NEG(result, src_a, powah::R0); + code.ROTLW(result, result, src_b); + code.RLDICL(result, result, 0, 32); + ctx.reg_alloc.DefineValue(inst, result); +} + +template<> +void EmitIR(powah::Context& code, EmitContext& ctx, IR::Inst* inst) { + auto const result = ctx.reg_alloc.ScratchGpr(); + auto const src_a = ctx.reg_alloc.UseGpr(inst->GetArg(0)); + auto const src_b = ctx.reg_alloc.UseGpr(inst->GetArg(0)); + code.NEG(result, src_a, powah::R0); + code.ROTLD(result, result, src_b); + ctx.reg_alloc.DefineValue(inst, result); +} + +template<> +void EmitIR(powah::Context& code, EmitContext& ctx, IR::Inst* inst) { + auto const result = ctx.reg_alloc.ScratchGpr(); + auto const src_a = ctx.reg_alloc.UseGpr(inst->GetArg(0)); + auto const src_b = ctx.reg_alloc.UseGpr(inst->GetArg(0)); + code.NEG(result, src_a, powah::R0); + code.ROTLD(result, result, src_b); + ctx.reg_alloc.DefineValue(inst, result); +} + +template<> +void EmitIR(powah::Context& code, EmitContext& ctx, IR::Inst* inst) { + auto const result = ctx.reg_alloc.ScratchGpr(); + auto const source = ctx.reg_alloc.UseGpr(inst->GetArg(0)); + code.SLW(result, source, source); + code.RLDICL(result, result, 0, 32); + ctx.reg_alloc.DefineValue(inst, result); +} + +template<> +void EmitIR(powah::Context& code, EmitContext& ctx, IR::Inst* inst) { + auto const result = ctx.reg_alloc.ScratchGpr(); + auto const source = ctx.reg_alloc.UseGpr(inst->GetArg(0)); + code.SLD(result, source, source); + ctx.reg_alloc.DefineValue(inst, result); +} + +template<> +void EmitIR(powah::Context& code, EmitContext& ctx, IR::Inst* inst) { + auto const result = ctx.reg_alloc.ScratchGpr(); + auto const source = ctx.reg_alloc.UseGpr(inst->GetArg(0)); + code.SRW(result, source, source); + code.RLDICL(result, result, 0, 32); + ctx.reg_alloc.DefineValue(inst, result); +} + +template<> +void EmitIR(powah::Context& code, EmitContext& ctx, IR::Inst* inst) { + auto const result = ctx.reg_alloc.ScratchGpr(); + auto const source = ctx.reg_alloc.UseGpr(inst->GetArg(0)); + code.SRD(result, source, source); + ctx.reg_alloc.DefineValue(inst, result); +} + +template<> +void EmitIR(powah::Context& code, EmitContext& ctx, IR::Inst* inst) { + auto const result = ctx.reg_alloc.ScratchGpr(); + auto const source = ctx.reg_alloc.UseGpr(inst->GetArg(0)); + code.SRAW(result, source, source); + code.RLDICL(result, result, 0, 32); + ctx.reg_alloc.DefineValue(inst, result); +} + +template<> +void EmitIR(powah::Context& code, EmitContext& ctx, IR::Inst* inst) { + auto const result = ctx.reg_alloc.ScratchGpr(); + auto const source = ctx.reg_alloc.UseGpr(inst->GetArg(0)); + code.SRAD(result, source, source); + ctx.reg_alloc.DefineValue(inst, result); +} + +template<> +void EmitIR(powah::Context& code, EmitContext& ctx, IR::Inst* inst) { + auto const result = ctx.reg_alloc.ScratchGpr(); + auto const src_a = ctx.reg_alloc.UseGpr(inst->GetArg(0)); + auto const src_b = ctx.reg_alloc.UseGpr(inst->GetArg(0)); + code.NEG(result, src_a, powah::R0); + code.ROTLD(result, result, src_b); + code.RLDICL(result, result, 0, 32); + ctx.reg_alloc.DefineValue(inst, result); +} + +template<> +void EmitIR(powah::Context& code, EmitContext& ctx, IR::Inst* inst) { + auto const result = ctx.reg_alloc.ScratchGpr(); + auto const src_a = ctx.reg_alloc.UseGpr(inst->GetArg(0)); + auto const src_b = ctx.reg_alloc.UseGpr(inst->GetArg(0)); + code.NEG(result, src_a, powah::R0); + code.ROTLD(result, result, src_b); + ctx.reg_alloc.DefineValue(inst, result); +} + +template<> +void EmitIR(powah::Context& code, EmitContext& ctx, IR::Inst* inst) { + auto const result = ctx.reg_alloc.ScratchGpr(); + auto const src_a = ctx.reg_alloc.UseGpr(inst->GetArg(0)); + auto const src_b = ctx.reg_alloc.UseGpr(inst->GetArg(1)); + code.ADDC_(result, src_a, src_b); + code.RLDICL(result, result, 0, 32); + ctx.reg_alloc.DefineValue(inst, result); +} + +/* +struct jit { + uint32_t nzcv; +}; +uint64_t addc(jit *p, uint64_t a, uint64_t b) { + long long unsigned int e; + uint64_t r = __builtin_addcll(a, b, p->nzcv & 0b0010, &e); + p->nzcv = (p->nzcv & 0b1101) | e; + return r; +} +*/ +template<> +void EmitIR(powah::Context& code, EmitContext& ctx, IR::Inst* inst) { + auto const result = ctx.reg_alloc.ScratchGpr(); + auto const src_a = ctx.reg_alloc.UseGpr(inst->GetArg(0)); + auto const src_b = ctx.reg_alloc.UseGpr(inst->GetArg(1)); + code.ADDC_(result, src_a, src_b); + ctx.reg_alloc.DefineValue(inst, result); +} + +template<> +void EmitIR(powah::Context& code, EmitContext& ctx, IR::Inst* inst) { + auto const result = ctx.reg_alloc.ScratchGpr(); + auto const src_a = ctx.reg_alloc.UseGpr(inst->GetArg(0)); + auto const src_b = ctx.reg_alloc.UseGpr(inst->GetArg(1)); + code.SUBFC_(result, src_b, src_a); + code.RLDICL(result, result, 0, 32); + ctx.reg_alloc.DefineValue(inst, result); +} + +template<> +void EmitIR(powah::Context& code, EmitContext& ctx, IR::Inst* inst) { + auto const result = ctx.reg_alloc.ScratchGpr(); + auto const src_a = ctx.reg_alloc.UseGpr(inst->GetArg(0)); + auto const src_b = ctx.reg_alloc.UseGpr(inst->GetArg(1)); + code.SUBFC_(result, src_b, src_a); + ctx.reg_alloc.DefineValue(inst, result); +} + +template<> +void EmitIR(powah::Context& code, EmitContext& ctx, IR::Inst* inst) { + auto const result = ctx.reg_alloc.ScratchGpr(); + auto const src_a = ctx.reg_alloc.UseGpr(inst->GetArg(0)); + auto const src_b = ctx.reg_alloc.UseGpr(inst->GetArg(1)); + code.MULLWO_(result, src_a, src_b); + code.RLDICL(result, result, 0, 32); + ctx.reg_alloc.DefineValue(inst, result); +} + +template<> +void EmitIR(powah::Context& code, EmitContext& ctx, IR::Inst* inst) { + auto const result = ctx.reg_alloc.ScratchGpr(); + auto const src_a = ctx.reg_alloc.UseGpr(inst->GetArg(0)); + auto const src_b = ctx.reg_alloc.UseGpr(inst->GetArg(1)); + code.MULLDO_(result, src_a, src_b); + ctx.reg_alloc.DefineValue(inst, result); +} + +template<> +void EmitIR(powah::Context& code, EmitContext& ctx, IR::Inst* inst) { + auto const result = ctx.reg_alloc.ScratchGpr(); + auto const src_a = ctx.reg_alloc.UseGpr(inst->GetArg(0)); + auto const src_b = ctx.reg_alloc.UseGpr(inst->GetArg(1)); + code.MULLDO_(result, src_a, src_b); + ctx.reg_alloc.DefineValue(inst, result); +} + +template<> +void EmitIR(powah::Context& code, EmitContext& ctx, IR::Inst* inst) { + auto const result = ctx.reg_alloc.ScratchGpr(); + auto const src_a = ctx.reg_alloc.UseGpr(inst->GetArg(0)); + auto const src_b = ctx.reg_alloc.UseGpr(inst->GetArg(1)); + code.MULLDO_(result, src_a, src_b); + ctx.reg_alloc.DefineValue(inst, result); +} + +template<> +void EmitIR(powah::Context& code, EmitContext& ctx, IR::Inst* inst) { + auto const result = ctx.reg_alloc.ScratchGpr(); + auto const src_a = ctx.reg_alloc.UseGpr(inst->GetArg(0)); + auto const src_b = ctx.reg_alloc.UseGpr(inst->GetArg(1)); + code.DIVWU_(result, src_a, src_b); + code.RLDICL(result, result, 0, 32); + ctx.reg_alloc.DefineValue(inst, result); +} + +template<> +void EmitIR(powah::Context& code, EmitContext& ctx, IR::Inst* inst) { + auto const result = ctx.reg_alloc.ScratchGpr(); + auto const src_a = ctx.reg_alloc.UseGpr(inst->GetArg(0)); + auto const src_b = ctx.reg_alloc.UseGpr(inst->GetArg(1)); + code.DIVDU_(result, src_a, src_b); + ctx.reg_alloc.DefineValue(inst, result); +} + +template<> +void EmitIR(powah::Context& code, EmitContext& ctx, IR::Inst* inst) { + auto const result = ctx.reg_alloc.ScratchGpr(); + auto const src_a = ctx.reg_alloc.UseGpr(inst->GetArg(0)); + auto const src_b = ctx.reg_alloc.UseGpr(inst->GetArg(1)); + code.DIVW_(result, src_a, src_b); + code.EXTSW(result, result); + ctx.reg_alloc.DefineValue(inst, result); +} + +template<> +void EmitIR(powah::Context& code, EmitContext& ctx, IR::Inst* inst) { + auto const result = ctx.reg_alloc.ScratchGpr(); + auto const src_a = ctx.reg_alloc.UseGpr(inst->GetArg(0)); + auto const src_b = ctx.reg_alloc.UseGpr(inst->GetArg(1)); + code.DIVD_(result, src_a, src_b); + ctx.reg_alloc.DefineValue(inst, result); +} + +template<> +void EmitIR(powah::Context& code, EmitContext& ctx, IR::Inst* inst) { + auto const src_a = ctx.reg_alloc.UseGpr(inst->GetArg(0)); + auto const src_b = ctx.reg_alloc.UseGpr(inst->GetArg(1)); + auto const tmp3 = ctx.reg_alloc.ScratchGpr(); + auto const tmp8 = ctx.reg_alloc.ScratchGpr(); + auto const tmp9 = PPC64::RNZCV; + code.RLDICL(tmp3, src_a, 0, 32); // Truncate + code.AND(tmp3, tmp3, src_b); + code.CNTLZD(tmp9, tmp3); + code.RLWINM(tmp8, tmp3, 0, 0, 0); + code.SRDI(tmp9, tmp9, 6); + code.SLDI(tmp9, tmp9, 30); + code.OR(tmp9, tmp9, tmp8); + ctx.reg_alloc.DefineValue(inst, tmp3); +} + +template<> +void EmitIR(powah::Context& code, EmitContext& ctx, IR::Inst* inst) { + auto const src_a = ctx.reg_alloc.UseGpr(inst->GetArg(0)); + auto const src_b = ctx.reg_alloc.UseGpr(inst->GetArg(1)); + auto const tmp3 = ctx.reg_alloc.ScratchGpr(); + auto const tmp10 = ctx.reg_alloc.ScratchGpr(); + auto const tmp9 = PPC64::RNZCV; + code.AND(tmp3, src_a, src_b); + code.CNTLZD(tmp10, tmp3); + code.SRADI(tmp9, tmp3, 32); + code.SRDI(tmp10, tmp10, 6); + code.RLWINM(tmp9, tmp9, 0, 0, 0); + code.SLDI(tmp10, tmp10, 30); + code.OR(tmp9, tmp9, tmp10); + ctx.reg_alloc.DefineValue(inst, tmp3); +} + +template<> +void EmitIR(powah::Context& code, EmitContext& ctx, IR::Inst* inst) { + auto const result = ctx.reg_alloc.ScratchGpr(); + auto const src_a = ctx.reg_alloc.UseGpr(inst->GetArg(0)); + auto const src_b = ctx.reg_alloc.UseGpr(inst->GetArg(1)); + code.NAND_(result, src_a, src_b); + code.RLDICL(result, result, 0, 32); + ctx.reg_alloc.DefineValue(inst, result); +} + +template<> +void EmitIR(powah::Context& code, EmitContext& ctx, IR::Inst* inst) { + auto const result = ctx.reg_alloc.ScratchGpr(); + auto const src_a = ctx.reg_alloc.UseGpr(inst->GetArg(0)); + auto const src_b = ctx.reg_alloc.UseGpr(inst->GetArg(1)); + code.NAND_(result, src_a, src_b); + ctx.reg_alloc.DefineValue(inst, result); +} + +template<> +void EmitIR(powah::Context& code, EmitContext& ctx, IR::Inst* inst) { + auto const result = ctx.reg_alloc.ScratchGpr(); + auto const src_a = ctx.reg_alloc.UseGpr(inst->GetArg(0)); + auto const src_b = ctx.reg_alloc.UseGpr(inst->GetArg(1)); + code.XOR_(result, src_a, src_b); + code.RLDICL(result, result, 0, 32); + ctx.reg_alloc.DefineValue(inst, result); +} + +template<> +void EmitIR(powah::Context& code, EmitContext& ctx, IR::Inst* inst) { + auto const result = ctx.reg_alloc.ScratchGpr(); + auto const src_a = ctx.reg_alloc.UseGpr(inst->GetArg(0)); + auto const src_b = ctx.reg_alloc.UseGpr(inst->GetArg(1)); + code.XOR_(result, src_a, src_b); + ctx.reg_alloc.DefineValue(inst, result); +} + +template<> +void EmitIR(powah::Context& code, EmitContext& ctx, IR::Inst* inst) { + auto const result = ctx.reg_alloc.ScratchGpr(); + auto const src_a = ctx.reg_alloc.UseGpr(inst->GetArg(0)); + auto const src_b = ctx.reg_alloc.UseGpr(inst->GetArg(1)); + code.OR_(result, src_a, src_b); + code.RLDICL(result, result, 0, 32); + ctx.reg_alloc.DefineValue(inst, result); +} + +template<> +void EmitIR(powah::Context& code, EmitContext& ctx, IR::Inst* inst) { + auto const result = ctx.reg_alloc.ScratchGpr(); + auto const src_a = ctx.reg_alloc.UseGpr(inst->GetArg(0)); + auto const src_b = ctx.reg_alloc.UseGpr(inst->GetArg(1)); + code.OR_(result, src_a, src_b); + ctx.reg_alloc.DefineValue(inst, result); +} + +// TODO(lizzie): NZVC support for NOT +template<> +void EmitIR(powah::Context& code, EmitContext& ctx, IR::Inst* inst) { + auto const result = ctx.reg_alloc.ScratchGpr(); + auto const source = ctx.reg_alloc.UseGpr(inst->GetArg(0)); + code.NOT(result, source); + code.RLDICL(result, result, 0, 32); + ctx.reg_alloc.DefineValue(inst, result); +} + +template<> +void EmitIR(powah::Context& code, EmitContext& ctx, IR::Inst* inst) { + auto const result = ctx.reg_alloc.ScratchGpr(); + auto const source = ctx.reg_alloc.UseGpr(inst->GetArg(0)); + code.NOT(result, source); + ctx.reg_alloc.DefineValue(inst, result); +} + +template<> +void EmitIR(powah::Context& code, EmitContext& ctx, IR::Inst* inst) { + auto const result = ctx.reg_alloc.ScratchGpr(); + auto const source = ctx.reg_alloc.UseGpr(inst->GetArg(0)); + code.EXTSB(result, source); + code.RLDICL(result, result, 0, 32); + ctx.reg_alloc.DefineValue(inst, result); +} + +template<> +void EmitIR(powah::Context& code, EmitContext& ctx, IR::Inst* inst) { + auto const result = ctx.reg_alloc.ScratchGpr(); + auto const source = ctx.reg_alloc.UseGpr(inst->GetArg(0)); + code.EXTSH(result, source); + code.RLDICL(result, result, 0, 32); + ctx.reg_alloc.DefineValue(inst, result); +} + +template<> +void EmitIR(powah::Context& code, EmitContext& ctx, IR::Inst* inst) { + auto const result = ctx.reg_alloc.ScratchGpr(); + auto const source = ctx.reg_alloc.UseGpr(inst->GetArg(0)); + code.EXTSH(result, source); + ctx.reg_alloc.DefineValue(inst, result); +} + +template<> +void EmitIR(powah::Context& code, EmitContext& ctx, IR::Inst* inst) { + auto const result = ctx.reg_alloc.ScratchGpr(); + auto const source = ctx.reg_alloc.UseGpr(inst->GetArg(0)); + code.EXTSB(result, source); + ctx.reg_alloc.DefineValue(inst, result); +} + +template<> +void EmitIR(powah::Context& code, EmitContext& ctx, IR::Inst* inst) { + auto const result = ctx.reg_alloc.ScratchGpr(); + auto const source = ctx.reg_alloc.UseGpr(inst->GetArg(0)); + code.EXTSW(result, source); + ctx.reg_alloc.DefineValue(inst, result); +} + +template<> +void EmitIR(powah::Context& code, EmitContext& ctx, IR::Inst* inst) { + auto const result = ctx.reg_alloc.ScratchGpr(); + auto const source = ctx.reg_alloc.UseGpr(inst->GetArg(0)); + code.RLWINM(result, source, 0, 0xff); + code.RLDICL(result, result, 0, 32); + ctx.reg_alloc.DefineValue(inst, result); +} + +template<> +void EmitIR(powah::Context& code, EmitContext& ctx, IR::Inst* inst) { + auto const result = ctx.reg_alloc.ScratchGpr(); + auto const source = ctx.reg_alloc.UseGpr(inst->GetArg(0)); + code.RLWINM(result, source, 0, 0xffff); + code.RLDICL(result, result, 0, 32); + ctx.reg_alloc.DefineValue(inst, result); +} + +template<> +void EmitIR(powah::Context& code, EmitContext& ctx, IR::Inst* inst) { + auto const result = ctx.reg_alloc.ScratchGpr(); + auto const source = ctx.reg_alloc.UseGpr(inst->GetArg(0)); + code.RLWINM(result, source, 0, 0xff); + ctx.reg_alloc.DefineValue(inst, result); +} + +template<> +void EmitIR(powah::Context& code, EmitContext& ctx, IR::Inst* inst) { + auto const result = ctx.reg_alloc.ScratchGpr(); + auto const source = ctx.reg_alloc.UseGpr(inst->GetArg(0)); + code.RLWINM(result, source, 0, 0xffff); + ctx.reg_alloc.DefineValue(inst, result); +} + +template<> +void EmitIR(powah::Context& code, EmitContext& ctx, IR::Inst* inst) { + auto const result = ctx.reg_alloc.ScratchGpr(); + auto const source = ctx.reg_alloc.UseGpr(inst->GetArg(0)); + code.RLDICL(result, source, 0, 32); + ctx.reg_alloc.DefineValue(inst, result); +} + +template<> +void EmitIR(powah::Context& code, EmitContext& ctx, IR::Inst* inst) { + ASSERT(false && "unimp"); +} + +// __builtin_bswap32 +template<> +void EmitIR(powah::Context& code, EmitContext& ctx, IR::Inst* inst) { + auto const source = ctx.reg_alloc.UseGpr(inst->GetArg(0)); + if (false) { + //code.BRW(result, source); + //code.RLDICL(result, result, 0, 32); + } else { + auto const result = ctx.reg_alloc.ScratchGpr(); + code.ROTLWI(result, source, 24); + code.RLWIMI(result, source, 8, 8, 15); + code.RLWIMI(result, source, 8, 24, 31); + code.RLDICL(result, result, 0, 32); + ctx.reg_alloc.DefineValue(inst, result); + } +} + +// __builtin_bswap64 +template<> +void EmitIR(powah::Context& code, EmitContext& ctx, IR::Inst* inst) { + auto const result = ctx.reg_alloc.ScratchGpr(); + auto const source = ctx.reg_alloc.UseGpr(inst->GetArg(0)); + if (false) { + //code.BRH(result, source); + code.RLWINM(result, source, 0, 0xff); + } else { + code.ROTLWI(result, source, 24); + code.RLWIMI(result, source, 8, 0, 23); + code.CLRLDI(result, result, 48); + } + ctx.reg_alloc.DefineValue(inst, result); +} + +template<> +void EmitIR(powah::Context& code, EmitContext& ctx, IR::Inst* inst) { + auto const source = ctx.reg_alloc.UseGpr(inst->GetArg(0)); + if (false) { + //code.BRD(result, source); + } else { + auto const tmp10 = ctx.reg_alloc.ScratchGpr(); + auto const tmp9 = ctx.reg_alloc.ScratchGpr(); + auto const tmp3 = ctx.reg_alloc.ScratchGpr(); + code.MR(tmp3, source); + code.ROTLWI(tmp10, tmp3, 24); + code.SRDI(tmp9, tmp3, 32); + code.RLWIMI(tmp10, tmp3, 8, 8, 15); + code.RLWIMI(tmp10, tmp3, 8, 24, 31); + code.ROTLWI(tmp3, tmp9, 24); + code.RLWIMI(tmp3, tmp9, 8, 8, 15); + code.RLWIMI(tmp3, tmp9, 8, 24, 31); + code.RLDIMI(tmp3, tmp10, 32, 0); + ctx.reg_alloc.DefineValue(inst, tmp3); + } +} + +// __builtin_clz +template<> +void EmitIR(powah::Context& code, EmitContext& ctx, IR::Inst* inst) { + auto const result = ctx.reg_alloc.ScratchGpr(); + auto const source = ctx.reg_alloc.UseGpr(inst->GetArg(0)); + code.CNTLZW(result, source); + ctx.reg_alloc.DefineValue(inst, result); +} + +// __builtin_clz +template<> +void EmitIR(powah::Context& code, EmitContext& ctx, IR::Inst* inst) { + auto const result = ctx.reg_alloc.ScratchGpr(); + auto const source = ctx.reg_alloc.UseGpr(inst->GetArg(0)); + code.CNTLZD(result, source); + ctx.reg_alloc.DefineValue(inst, result); +} + +template<> +void EmitIR(powah::Context& code, EmitContext& ctx, IR::Inst* inst) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context& code, EmitContext& ctx, IR::Inst* inst) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context& code, EmitContext& ctx, IR::Inst* inst) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context& code, EmitContext& ctx, IR::Inst* inst) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context& code, EmitContext& ctx, IR::Inst* inst) { + auto const result = ctx.reg_alloc.ScratchGpr(); + auto const src_a = ctx.reg_alloc.UseGpr(inst->GetArg(0)); + auto const src_b = ctx.reg_alloc.UseGpr(inst->GetArg(0)); + code.CMPD(powah::CR0, result, src_a); + code.ISELGT(result, result, src_b); + code.RLDICL(result, result, 0, 32); + ctx.reg_alloc.DefineValue(inst, result); +} + +template<> +void EmitIR(powah::Context& code, EmitContext& ctx, IR::Inst* inst) { + auto const result = ctx.reg_alloc.ScratchGpr(); + auto const src_a = ctx.reg_alloc.UseGpr(inst->GetArg(0)); + auto const src_b = ctx.reg_alloc.UseGpr(inst->GetArg(0)); + code.CMPD(powah::CR0, result, src_a); + code.ISELGT(result, result, src_b); + ctx.reg_alloc.DefineValue(inst, result); +} + +template<> +void EmitIR(powah::Context& code, EmitContext& ctx, IR::Inst* inst) { + auto const result = ctx.reg_alloc.ScratchGpr(); + auto const src_a = ctx.reg_alloc.UseGpr(inst->GetArg(0)); + auto const src_b = ctx.reg_alloc.UseGpr(inst->GetArg(0)); + code.CMPLW(result, src_a); + code.ISELGT(result, result, src_b); + code.RLDICL(result, result, 0, 32); + ctx.reg_alloc.DefineValue(inst, result); +} + +template<> +void EmitIR(powah::Context& code, EmitContext& ctx, IR::Inst* inst) { + auto const result = ctx.reg_alloc.ScratchGpr(); + auto const src_a = ctx.reg_alloc.UseGpr(inst->GetArg(0)); + auto const src_b = ctx.reg_alloc.UseGpr(inst->GetArg(0)); + code.CMPLD(result, src_a); + code.ISELGT(result, result, src_b); + ctx.reg_alloc.DefineValue(inst, result); +} + +template<> +void EmitIR(powah::Context& code, EmitContext& ctx, IR::Inst* inst) { + auto const result = ctx.reg_alloc.ScratchGpr(); + auto const src_a = ctx.reg_alloc.UseGpr(inst->GetArg(0)); + auto const src_b = ctx.reg_alloc.UseGpr(inst->GetArg(0)); + code.CMPW(powah::CR0, result, src_a); + code.ISELGT(result, result, src_b); + code.RLDICL(result, result, 0, 32); + ctx.reg_alloc.DefineValue(inst, result); +} + +template<> +void EmitIR(powah::Context& code, EmitContext& ctx, IR::Inst* inst) { + auto const result = ctx.reg_alloc.ScratchGpr(); + auto const src_a = ctx.reg_alloc.UseGpr(inst->GetArg(0)); + auto const src_b = ctx.reg_alloc.UseGpr(inst->GetArg(0)); + code.CMPD(powah::CR0, result, src_a); + code.ISELGT(result, result, src_b); + ctx.reg_alloc.DefineValue(inst, result); +} + +template<> +void EmitIR(powah::Context& code, EmitContext& ctx, IR::Inst* inst) { + auto const result = ctx.reg_alloc.ScratchGpr(); + auto const src_a = ctx.reg_alloc.UseGpr(inst->GetArg(0)); + auto const src_b = ctx.reg_alloc.UseGpr(inst->GetArg(0)); + code.CMPLW(result, src_a); + code.ISELGT(result, result, src_b); + code.RLDICL(result, result, 0, 32); + ctx.reg_alloc.DefineValue(inst, result); +} + +template<> +void EmitIR(powah::Context& code, EmitContext& ctx, IR::Inst* inst) { + auto const result = ctx.reg_alloc.ScratchGpr(); + auto const src_a = ctx.reg_alloc.UseGpr(inst->GetArg(0)); + auto const src_b = ctx.reg_alloc.UseGpr(inst->GetArg(0)); + code.CMPLD(result, src_a); + code.ISELGT(result, result, src_b); + ctx.reg_alloc.DefineValue(inst, result); +} + +} // namespace Dynarmic::Backend::RV64 diff --git a/src/dynarmic/src/dynarmic/backend/ppc64/emit_ppc64_floating_point.cpp b/src/dynarmic/src/dynarmic/backend/ppc64/emit_ppc64_floating_point.cpp new file mode 100644 index 0000000000..b893a7cc88 --- /dev/null +++ b/src/dynarmic/src/dynarmic/backend/ppc64/emit_ppc64_floating_point.cpp @@ -0,0 +1,458 @@ +// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project +// SPDX-License-Identifier: GPL-3.0-or-later + +#include +#include + +#include "dynarmic/backend/ppc64/a32_core.h" +#include "dynarmic/backend/ppc64/abi.h" +#include "dynarmic/backend/ppc64/emit_context.h" +#include "dynarmic/backend/ppc64/emit_ppc64.h" +#include "dynarmic/backend/ppc64/reg_alloc.h" +#include "dynarmic/ir/basic_block.h" +#include "dynarmic/ir/microinstruction.h" +#include "dynarmic/ir/opcodes.h" + +namespace Dynarmic::Backend::PPC64 { + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +} // namespace Dynarmic::Backend::RV64 diff --git a/src/dynarmic/src/dynarmic/backend/ppc64/emit_ppc64_misc.cpp b/src/dynarmic/src/dynarmic/backend/ppc64/emit_ppc64_misc.cpp new file mode 100644 index 0000000000..ce1fbf09b4 --- /dev/null +++ b/src/dynarmic/src/dynarmic/backend/ppc64/emit_ppc64_misc.cpp @@ -0,0 +1,380 @@ +// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project +// SPDX-License-Identifier: GPL-3.0-or-later + +#include +#include + +#include "dynarmic/backend/ppc64/a32_core.h" +#include "dynarmic/backend/ppc64/abi.h" +#include "dynarmic/backend/ppc64/emit_context.h" +#include "dynarmic/backend/ppc64/emit_ppc64.h" +#include "dynarmic/backend/ppc64/reg_alloc.h" +#include "dynarmic/ir/basic_block.h" +#include "dynarmic/ir/microinstruction.h" +#include "dynarmic/ir/opcodes.h" + +namespace Dynarmic::Backend::PPC64 { + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +// Packed +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +// Crypto +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +} // namespace Dynarmic::Backend::RV64 diff --git a/src/dynarmic/src/dynarmic/backend/ppc64/emit_ppc64_vector.cpp b/src/dynarmic/src/dynarmic/backend/ppc64/emit_ppc64_vector.cpp new file mode 100644 index 0000000000..b6c376345c --- /dev/null +++ b/src/dynarmic/src/dynarmic/backend/ppc64/emit_ppc64_vector.cpp @@ -0,0 +1,1810 @@ +// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project +// SPDX-License-Identifier: GPL-3.0-or-later + +#include +#include + +#include "dynarmic/backend/ppc64/a32_core.h" +#include "dynarmic/backend/ppc64/abi.h" +#include "dynarmic/backend/ppc64/emit_context.h" +#include "dynarmic/backend/ppc64/emit_ppc64.h" +#include "dynarmic/backend/ppc64/reg_alloc.h" +#include "dynarmic/ir/basic_block.h" +#include "dynarmic/ir/microinstruction.h" +#include "dynarmic/ir/opcodes.h" + +namespace Dynarmic::Backend::PPC64 { + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +// Vector saturation +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +// Vector VFP +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +template<> +void EmitIR(powah::Context&, EmitContext&, IR::Inst*) { + ASSERT(false && "unimp"); +} + +} // namespace Dynarmic::Backend::RV64 diff --git a/src/dynarmic/src/dynarmic/backend/ppc64/exclusive_monitor.cpp b/src/dynarmic/src/dynarmic/backend/ppc64/exclusive_monitor.cpp new file mode 100644 index 0000000000..d0e3142346 --- /dev/null +++ b/src/dynarmic/src/dynarmic/backend/ppc64/exclusive_monitor.cpp @@ -0,0 +1,50 @@ +// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project +// SPDX-License-Identifier: GPL-3.0-or-later + +#include "dynarmic/interface/exclusive_monitor.h" +#include +#include "common/assert.h" + +namespace Dynarmic { + +ExclusiveMonitor::ExclusiveMonitor(std::size_t processor_count) + : exclusive_addresses(processor_count, INVALID_EXCLUSIVE_ADDRESS), exclusive_values(processor_count) {} + +size_t ExclusiveMonitor::GetProcessorCount() const { + return exclusive_addresses.size(); +} + +void ExclusiveMonitor::Lock() { + lock.Lock(); +} + +void ExclusiveMonitor::Unlock() { + lock.Unlock(); +} + +bool ExclusiveMonitor::CheckAndClear(std::size_t processor_id, VAddr address) { + const VAddr masked_address = address & RESERVATION_GRANULE_MASK; + Lock(); + if (exclusive_addresses[processor_id] != masked_address) { + Unlock(); + return false; + } + for (VAddr& other_address : exclusive_addresses) + if (other_address == masked_address) + other_address = INVALID_EXCLUSIVE_ADDRESS; + return true; +} + +void ExclusiveMonitor::Clear() { + Lock(); + std::fill(exclusive_addresses.begin(), exclusive_addresses.end(), INVALID_EXCLUSIVE_ADDRESS); + Unlock(); +} + +void ExclusiveMonitor::ClearProcessor(size_t processor_id) { + Lock(); + exclusive_addresses[processor_id] = INVALID_EXCLUSIVE_ADDRESS; + Unlock(); +} + +} // namespace Dynarmic diff --git a/src/dynarmic/src/dynarmic/backend/ppc64/hostloc.h b/src/dynarmic/src/dynarmic/backend/ppc64/hostloc.h new file mode 100644 index 0000000000..694d520b6c --- /dev/null +++ b/src/dynarmic/src/dynarmic/backend/ppc64/hostloc.h @@ -0,0 +1,26 @@ +// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project +// SPDX-License-Identifier: GPL-3.0-or-later + +#pragma once + +#include "common/common_types.h" + +namespace Dynarmic::Backend::PPC64 { + +enum class HostLoc : uint8_t { + R0, R1, R2, R3, R4, R5, R6, R7, R8, R9, + R10, R11, R12, R13, R14, R15, R16, R17, R18, R19, + R20, R21, R22, R23, R24, R25, R26, R27, R28, R29, + R30, R31, + FR0, FR1, FR2, FR3, FR4, FR5, FR6, FR7, FR8, FR9, + FR10, FR11, FR12, FR13, FR14, FR15, FR16, FR17, FR18, FR19, + FR20, FR21, FR22, FR23, FR24, FR25, FR26, FR27, FR28, FR29, + FR30, FR31, + VR0, VR1, VR2, VR3, VR4, VR5, VR6, VR7, VR8, VR9, + VR10, VR11, VR12, VR13, VR14, VR15, VR16, VR17, VR18, VR19, + VR20, VR21, VR22, VR23, VR24, VR25, VR26, VR27, VR28, VR29, + VR30, VR31, + FirstSpill, +}; + +} // namespace Dynarmic::Backend::PPC64 diff --git a/src/dynarmic/src/dynarmic/backend/ppc64/reg_alloc.cpp b/src/dynarmic/src/dynarmic/backend/ppc64/reg_alloc.cpp new file mode 100644 index 0000000000..bd35b4af5b --- /dev/null +++ b/src/dynarmic/src/dynarmic/backend/ppc64/reg_alloc.cpp @@ -0,0 +1,213 @@ +// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project +// SPDX-License-Identifier: GPL-3.0-or-later + + +#include +#include +#include +#include + +#include "dynarmic/backend/ppc64/reg_alloc.h" +#include "dynarmic/backend/ppc64/abi.h" +#include "common/assert.h" +#include "common/common_types.h" +#include "dynarmic/common/always_false.h" + +namespace Dynarmic::Backend::PPC64 { + +constexpr size_t spill_offset = offsetof(StackLayout, spill); +constexpr size_t spill_slot_size = sizeof(decltype(StackLayout::spill)::value_type); + +static bool IsValuelessType(IR::Type type) { + return type == IR::Type::Table; +} + +void HostLocInfo::UpdateUses() { + accumulated_uses += uses_this_inst; + uses_this_inst = 0; + if (accumulated_uses == expected_uses) { + values.clear(); + accumulated_uses = 0; + expected_uses = 0; + } +} + +bool RegAlloc::IsValueLive(IR::Inst* inst) const { + return !!ValueLocation(inst); +} + +void RegAlloc::UpdateAllUses() { + for (auto& gpr : gprs) + gpr.UpdateUses(); + for (auto& fpr : fprs) + fpr.UpdateUses(); + for (auto& spill : spills) + spill.UpdateUses(); +} + +void RegAlloc::DefineAsExisting(IR::Inst* inst, IR::Value arg) { + ASSERT(!ValueLocation(inst)); + if (arg.IsImmediate()) { + inst->ReplaceUsesWith(arg); + } else { + auto& info = ValueInfo(arg.GetInst()); + info.values.emplace_back(inst); + info.expected_uses += inst->UseCount(); + } +} + +void RegAlloc::AssertNoMoreUses() const { + const auto is_empty = [](const auto& i) { return i.IsCompletelyEmpty(); }; + ASSERT(std::all_of(gprs.begin(), gprs.end(), is_empty)); + ASSERT(std::all_of(fprs.begin(), fprs.end(), is_empty)); + ASSERT(std::all_of(spills.begin(), spills.end(), is_empty)); +} + +std::optional RegAlloc::AllocateRegister(const std::array& regs) const { + auto const order = PPC64::GPR_ORDER; + if (auto const it = std::find_if(order.begin(), order.end(), [&](u32 i) { + return regs[i].values.empty() && !regs[i].locked; + }); it != order.end()) + return *it; + // TODO: Actual proper LRU + return std::nullopt; +} + +void RegAlloc::SpillGpr(u32 index) { + ASSERT(!gprs[index].locked && !gprs[index].realized); + if (!gprs[index].values.empty()) { + const u32 new_location_index = FindFreeSpill(); + code.STD(powah::GPR{index}, powah::R1, spill_offset + new_location_index * spill_slot_size); + spills[new_location_index] = std::exchange(gprs[index], {}); + } +} + +void RegAlloc::SpillFpr(u32 index) { + ASSERT(!fprs[index].locked && !fprs[index].realized); + if (!fprs[index].values.empty()) { + const u32 new_location_index = FindFreeSpill(); + //code.FSD(powah::FPR{index}, spill_offset + new_location_index * spill_slot_size, powah::sp); + spills[new_location_index] = std::exchange(fprs[index], {}); + } +} + +u32 RegAlloc::FindFreeSpill() const { + const auto iter = std::find_if(spills.begin(), spills.end(), [](const HostLocInfo& info) { return info.values.empty(); }); + ASSERT(iter != spills.end() && "All spill locations are full"); + return u32(iter - spills.begin()); +} + +std::optional RegAlloc::ValueLocation(const IR::Inst* value) const { + const auto fn = [value](const HostLocInfo& info) { + return info.Contains(value); + }; + if (const auto iter = std::ranges::find_if(gprs, fn); iter != gprs.end()) + return HostLoc(u32(HostLoc::R0) + u32(iter - gprs.begin())); + else if (const auto iter = std::ranges::find_if(fprs, fn); iter != fprs.end()) + return HostLoc(u32(HostLoc::FR0) + u32(iter - fprs.begin())); + else if (const auto iter = std::ranges::find_if(vprs, fn); iter != vprs.end()) + return HostLoc(u32(HostLoc::VR0) + u32(iter - vprs.begin())); + else if (const auto iter = std::ranges::find_if(spills, fn); iter != spills.end()) + return HostLoc(u32(HostLoc::FirstSpill) + u32(iter - spills.begin())); + return std::nullopt; +} + +inline bool HostLocIsGpr(HostLoc h) noexcept { + return u8(h) >= u8(HostLoc::R0) && u8(h) <= u8(HostLoc::R31); +} +inline bool HostLocIsFpr(HostLoc h) noexcept { + return u8(h) >= u8(HostLoc::FR0) && u8(h) <= u8(HostLoc::FR31); +} +inline bool HostLocIsVpr(HostLoc h) noexcept { + return u8(h) >= u8(HostLoc::VR0) && u8(h) <= u8(HostLoc::VR31); +} +inline std::variant HostLocToReg(HostLoc h) noexcept { + if (HostLocIsGpr(h)) + return powah::GPR{uint32_t(h)}; + ASSERT(false && "unimp"); +} + +HostLocInfo& RegAlloc::ValueInfo(HostLoc h) { + if (u8(h) >= u8(HostLoc::R0) && u8(h) <= u8(HostLoc::R31)) + return gprs[size_t(h)]; + else if (u8(h) >= u8(HostLoc::FR0) && u8(h) <= u8(HostLoc::FR31)) + return gprs[size_t(h) - size_t(HostLoc::FR0)]; + else if (u8(h) >= u8(HostLoc::VR0) && u8(h) <= u8(HostLoc::VR31)) + return vprs[size_t(h) - size_t(HostLoc::VR0)]; + auto const index = size_t(h) - size_t(HostLoc::FirstSpill); + ASSERT(index <= spills.size()); + return spills[index]; +} + +HostLocInfo& RegAlloc::ValueInfo(const IR::Inst* value) { + const auto fn = [value](const HostLocInfo& info) { + return info.Contains(value); + }; + if (const auto iter = std::find_if(gprs.begin(), gprs.end(), fn); iter != gprs.end()) + return *iter; + else if (const auto iter = std::find_if(fprs.begin(), fprs.end(), fn); iter != fprs.end()) + return *iter; + else if (const auto iter = std::find_if(spills.begin(), spills.end(), fn); iter != spills.end()) + return *iter; + ASSERT(false && "unimp"); +} + +/// @brief Defines a register RegLock to use (and locks it) +RegLock RegAlloc::ScratchGpr() { + auto const r = AllocateRegister(gprs); + return RegLock(*this, powah::GPR{*r}); +} + +/// @brief Uses the given GPR of the argument +RegLock RegAlloc::UseGpr(IR::Value arg) { + if (arg.IsImmediate()) { + // HOLY SHIT EVIL HAXX + auto const reg = ScratchGpr(); + auto const imm = arg.GetImmediateAsU64(); + if (imm >= 0xffffffff) { + auto const lo = uint32_t(imm >> 0), hi = uint32_t(imm >> 32); + if (lo == hi) { + code.LIS(reg, imm >> 16); + code.ORI(reg, reg, imm & 0xffff); + code.RLDIMI(reg, reg, 32, 0); + } else { + ASSERT(false && "larger >32bit imms"); + } + } else if (imm > 0xffff && imm <= 0xffffffff) { + code.LIS(reg, imm >> 16); + code.ORI(reg, reg, imm & 0xffff); + } else if (imm <= 0xffff) { + code.LI(reg, imm); + } + return reg; + } else { + auto const loc = ValueLocation(arg.GetInst()); + ASSERT(loc && HostLocIsGpr(*loc)); + return RegLock(*this, std::get(HostLocToReg(*loc))); + } +} + +void RegAlloc::DefineValue(IR::Inst* inst, powah::GPR const gpr) noexcept { + ASSERT(!ValueLocation(inst) && "inst has already been defined"); + ValueInfo(HostLoc(gpr.index)).values.push_back(inst); +} + +void RegAlloc::DefineValue(IR::Inst* inst, IR::Value arg) noexcept { + ASSERT(!ValueLocation(inst) && "inst has already been defined"); + if (arg.IsImmediate()) { + HostLoc const loc{u8(ScratchGpr().value.index)}; + ValueInfo(loc).values.push_back(inst); + auto const value = arg.GetImmediateAsU64(); + if (value >= 0x7fff) { + ASSERT(false && "unimp"); + } else { + //code.LI(HostLocToReg(loc), value); + } + } else { + ASSERT(ValueLocation(arg.GetInst()) && "arg must already be defined"); + const HostLoc loc = *ValueLocation(arg.GetInst()); + ValueInfo(loc).values.push_back(inst); + } +} + +} // namespace Dynarmic::Backend::RV64 diff --git a/src/dynarmic/src/dynarmic/backend/ppc64/reg_alloc.h b/src/dynarmic/src/dynarmic/backend/ppc64/reg_alloc.h new file mode 100644 index 0000000000..6d84b31dda --- /dev/null +++ b/src/dynarmic/src/dynarmic/backend/ppc64/reg_alloc.h @@ -0,0 +1,109 @@ +// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project +// SPDX-License-Identifier: GPL-3.0-or-later + +#pragma once + +#include +#include +#include +#include +#include + +#include +#include + +#include "common/assert.h" +#include "common/common_types.h" +#include "dynarmic/backend/ppc64/stack_layout.h" +#include "dynarmic/backend/ppc64/hostloc.h" +#include "dynarmic/ir/cond.h" +#include "dynarmic/ir/microinstruction.h" +#include "dynarmic/ir/value.h" + +namespace Dynarmic::Backend::PPC64 { + +struct HostLocInfo final { + std::vector values; + size_t uses_this_inst = 0; + size_t accumulated_uses = 0; + size_t expected_uses = 0; + /// @brief Lock usage of this register UNTIL a DefineValue() is issued + bool locked = false; + bool realized = false; + bool Contains(const IR::Inst* value) const { + return std::find(values.begin(), values.end(), value) != values.end(); + } + void SetupScratchLocation() { + ASSERT(IsCompletelyEmpty()); + realized = true; + } + bool IsCompletelyEmpty() const { + return values.empty() && !locked && !realized && !accumulated_uses && !expected_uses && !uses_this_inst; + } + void UpdateUses(); +}; + +struct RegAlloc; + +/// @brief Allows to use RAII to denote liveness/locking of a given register +/// this basically means that we can use temporals and not need to go thru +/// any weird deallocation stuffs :) +template struct RegLock { + constexpr RegLock(RegAlloc& reg_alloc, T const value) noexcept + : reg_alloc{reg_alloc} + , value{value} + { + SetLock(true); + } + inline ~RegLock() noexcept { SetLock(false); } + constexpr operator T const&() noexcept { return value; } + constexpr operator T() const noexcept { return value; } + inline void SetLock(bool v) noexcept; + RegAlloc& reg_alloc; + const T value; +}; + +struct RegAlloc { + explicit RegAlloc(powah::Context& code) : code{code} {} + bool IsValueLive(IR::Inst* inst) const; + void DefineAsExisting(IR::Inst* inst, IR::Value arg); + + void SpillAll(); + void UpdateAllUses(); + void AssertNoMoreUses() const; + + RegLock ScratchGpr(); + RegLock UseGpr(IR::Value arg); + void DefineValue(IR::Inst* inst, powah::GPR const gpr) noexcept; + void DefineValue(IR::Inst* inst, IR::Value arg) noexcept; +private: + template + friend struct RegLock; + + std::optional AllocateRegister(const std::array& regs) const; + void SpillGpr(u32 index); + void SpillFpr(u32 index); + u32 FindFreeSpill() const; + + std::optional ValueLocation(const IR::Inst* value) const; + HostLocInfo& ValueInfo(HostLoc host_loc); + HostLocInfo& ValueInfo(const IR::Inst* value); + + powah::Context& code; + std::array gprs; + std::array fprs; + std::array vprs; + std::array spills; +}; + +template<> inline void RegLock::SetLock(bool v) noexcept { + reg_alloc.gprs[value.index].locked = v; +} +template<> inline void RegLock::SetLock(bool v) noexcept { + reg_alloc.fprs[value.index].locked = v; +} +template<> inline void RegLock::SetLock(bool v) noexcept { + reg_alloc.vprs[value.index].locked = v; +} + +} // namespace Dynarmic::Backend::RV64 diff --git a/src/dynarmic/src/dynarmic/backend/ppc64/stack_layout.h b/src/dynarmic/src/dynarmic/backend/ppc64/stack_layout.h new file mode 100644 index 0000000000..074fec02c0 --- /dev/null +++ b/src/dynarmic/src/dynarmic/backend/ppc64/stack_layout.h @@ -0,0 +1,20 @@ +// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project +// SPDX-License-Identifier: GPL-3.0-or-later + +#pragma once + +#include + +#include "common/common_types.h" + +namespace Dynarmic::Backend::PPC64 { + +constexpr size_t SpillCount = 16; + +struct alignas(16) StackLayout { + std::array spill; +}; + +static_assert(sizeof(StackLayout) % 16 == 0); + +} // namespace Dynarmic::Backend::RV64 diff --git a/src/dynarmic/src/dynarmic/backend/x64/a32_emit_x64_memory.cpp b/src/dynarmic/src/dynarmic/backend/x64/a32_emit_x64_memory.cpp index e866b2acd6..f138b5f137 100644 --- a/src/dynarmic/src/dynarmic/backend/x64/a32_emit_x64_memory.cpp +++ b/src/dynarmic/src/dynarmic/backend/x64/a32_emit_x64_memory.cpp @@ -31,16 +31,16 @@ using namespace Xbyak::util; void A32EmitX64::GenFastmemFallbacks() { const std::initializer_list idxes{0, 1, 2, 3, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14}; const std::array, 4> read_callbacks{{ - {8, Devirtualize<&A32::UserCallbacks::MemoryRead>(conf.callbacks)}, - {16, Devirtualize<&A32::UserCallbacks::MemoryRead>(conf.callbacks)}, - {32, Devirtualize<&A32::UserCallbacks::MemoryRead>(conf.callbacks)}, - {64, Devirtualize<&A32::UserCallbacks::MemoryRead>(conf.callbacks)}, + {8, Devirtualize<&A32::UserCallbacks::MemoryRead8>(conf.callbacks)}, + {16, Devirtualize<&A32::UserCallbacks::MemoryRead16>(conf.callbacks)}, + {32, Devirtualize<&A32::UserCallbacks::MemoryRead32>(conf.callbacks)}, + {64, Devirtualize<&A32::UserCallbacks::MemoryRead64>(conf.callbacks)}, }}; const std::array, 4> write_callbacks{{ - {8, Devirtualize<&A32::UserCallbacks::MemoryWrite>(conf.callbacks)}, - {16, Devirtualize<&A32::UserCallbacks::MemoryWrite>(conf.callbacks)}, - {32, Devirtualize<&A32::UserCallbacks::MemoryWrite>(conf.callbacks)}, - {64, Devirtualize<&A32::UserCallbacks::MemoryWrite>(conf.callbacks)}, + {8, Devirtualize<&A32::UserCallbacks::MemoryWrite8>(conf.callbacks)}, + {16, Devirtualize<&A32::UserCallbacks::MemoryWrite16>(conf.callbacks)}, + {32, Devirtualize<&A32::UserCallbacks::MemoryWrite32>(conf.callbacks)}, + {64, Devirtualize<&A32::UserCallbacks::MemoryWrite64>(conf.callbacks)}, }}; const std::array, 4> exclusive_write_callbacks{{ {8, Devirtualize<&A32::UserCallbacks::MemoryWriteExclusive8>(conf.callbacks)}, @@ -56,12 +56,12 @@ void A32EmitX64::GenFastmemFallbacks() { code.align(); read_fallbacks[std::make_tuple(ordered, bitsize, vaddr_idx, value_idx)] = code.getCurr(); ABI_PushCallerSaveRegistersAndAdjustStackExcept(code, HostLocRegIdx(value_idx)); - // params = { this, vaddr, size } if (vaddr_idx != code.ABI_PARAM2.getIdx()) { code.mov(code.ABI_PARAM2, Xbyak::Reg64{vaddr_idx}); } - code.mov(code.ABI_PARAM3, bitsize / CHAR_BIT); - if (ordered) code.mfence(); + if (ordered) { + code.mfence(); + } callback.EmitCall(code); if (value_idx != code.ABI_RETURN.getIdx()) { code.mov(Xbyak::Reg64{value_idx}, code.ABI_RETURN); @@ -76,7 +76,6 @@ void A32EmitX64::GenFastmemFallbacks() { code.align(); write_fallbacks[std::make_tuple(ordered, bitsize, vaddr_idx, value_idx)] = code.getCurr(); ABI_PushCallerSaveRegistersAndAdjustStack(code); - // params = { this, vaddr, value, size } if (vaddr_idx == code.ABI_PARAM3.getIdx() && value_idx == code.ABI_PARAM2.getIdx()) { code.xchg(code.ABI_PARAM2, code.ABI_PARAM3); } else if (vaddr_idx == code.ABI_PARAM3.getIdx()) { @@ -93,9 +92,10 @@ void A32EmitX64::GenFastmemFallbacks() { } } code.ZeroExtendFrom(bitsize, code.ABI_PARAM3); - code.mov(code.ABI_PARAM4, bitsize / CHAR_BIT); callback.EmitCall(code); - if (ordered) code.mfence(); + if (ordered) { + code.mfence(); + } ABI_PopCallerSaveRegistersAndAdjustStack(code); code.ret(); PerfMapRegister(write_fallbacks[std::make_tuple(ordered, bitsize, vaddr_idx, value_idx)], code.getCurr(), fmt::format("a32_write_fallback_{}", bitsize)); @@ -138,35 +138,35 @@ void A32EmitX64::GenFastmemFallbacks() { #undef Axx void A32EmitX64::EmitA32ReadMemory8(A32EmitContext& ctx, IR::Inst* inst) { - EmitMemoryRead<8, &A32::UserCallbacks::MemoryRead>(ctx, inst); + EmitMemoryRead<8, &A32::UserCallbacks::MemoryRead8>(ctx, inst); } void A32EmitX64::EmitA32ReadMemory16(A32EmitContext& ctx, IR::Inst* inst) { - EmitMemoryRead<16, &A32::UserCallbacks::MemoryRead>(ctx, inst); + EmitMemoryRead<16, &A32::UserCallbacks::MemoryRead16>(ctx, inst); } void A32EmitX64::EmitA32ReadMemory32(A32EmitContext& ctx, IR::Inst* inst) { - EmitMemoryRead<32, &A32::UserCallbacks::MemoryRead>(ctx, inst); + EmitMemoryRead<32, &A32::UserCallbacks::MemoryRead32>(ctx, inst); } void A32EmitX64::EmitA32ReadMemory64(A32EmitContext& ctx, IR::Inst* inst) { - EmitMemoryRead<64, &A32::UserCallbacks::MemoryRead>(ctx, inst); + EmitMemoryRead<64, &A32::UserCallbacks::MemoryRead64>(ctx, inst); } void A32EmitX64::EmitA32WriteMemory8(A32EmitContext& ctx, IR::Inst* inst) { - EmitMemoryWrite<8, &A32::UserCallbacks::MemoryWrite>(ctx, inst); + EmitMemoryWrite<8, &A32::UserCallbacks::MemoryWrite8>(ctx, inst); } void A32EmitX64::EmitA32WriteMemory16(A32EmitContext& ctx, IR::Inst* inst) { - EmitMemoryWrite<16, &A32::UserCallbacks::MemoryWrite>(ctx, inst); + EmitMemoryWrite<16, &A32::UserCallbacks::MemoryWrite16>(ctx, inst); } void A32EmitX64::EmitA32WriteMemory32(A32EmitContext& ctx, IR::Inst* inst) { - EmitMemoryWrite<32, &A32::UserCallbacks::MemoryWrite>(ctx, inst); + EmitMemoryWrite<32, &A32::UserCallbacks::MemoryWrite32>(ctx, inst); } void A32EmitX64::EmitA32WriteMemory64(A32EmitContext& ctx, IR::Inst* inst) { - EmitMemoryWrite<64, &A32::UserCallbacks::MemoryWrite>(ctx, inst); + EmitMemoryWrite<64, &A32::UserCallbacks::MemoryWrite64>(ctx, inst); } void A32EmitX64::EmitA32ClearExclusive(A32EmitContext&, IR::Inst*) { @@ -175,33 +175,33 @@ void A32EmitX64::EmitA32ClearExclusive(A32EmitContext&, IR::Inst*) { void A32EmitX64::EmitA32ExclusiveReadMemory8(A32EmitContext& ctx, IR::Inst* inst) { if (conf.fastmem_exclusive_access) { - EmitExclusiveReadMemoryInline<8, &A32::UserCallbacks::MemoryRead>(ctx, inst); + EmitExclusiveReadMemoryInline<8, &A32::UserCallbacks::MemoryRead8>(ctx, inst); } else { - EmitExclusiveReadMemory<8, &A32::UserCallbacks::MemoryRead>(ctx, inst); + EmitExclusiveReadMemory<8, &A32::UserCallbacks::MemoryRead8>(ctx, inst); } } void A32EmitX64::EmitA32ExclusiveReadMemory16(A32EmitContext& ctx, IR::Inst* inst) { if (conf.fastmem_exclusive_access) { - EmitExclusiveReadMemoryInline<16, &A32::UserCallbacks::MemoryRead>(ctx, inst); + EmitExclusiveReadMemoryInline<16, &A32::UserCallbacks::MemoryRead16>(ctx, inst); } else { - EmitExclusiveReadMemory<16, &A32::UserCallbacks::MemoryRead>(ctx, inst); + EmitExclusiveReadMemory<16, &A32::UserCallbacks::MemoryRead16>(ctx, inst); } } void A32EmitX64::EmitA32ExclusiveReadMemory32(A32EmitContext& ctx, IR::Inst* inst) { if (conf.fastmem_exclusive_access) { - EmitExclusiveReadMemoryInline<32, &A32::UserCallbacks::MemoryRead>(ctx, inst); + EmitExclusiveReadMemoryInline<32, &A32::UserCallbacks::MemoryRead32>(ctx, inst); } else { - EmitExclusiveReadMemory<32, &A32::UserCallbacks::MemoryRead>(ctx, inst); + EmitExclusiveReadMemory<32, &A32::UserCallbacks::MemoryRead32>(ctx, inst); } } void A32EmitX64::EmitA32ExclusiveReadMemory64(A32EmitContext& ctx, IR::Inst* inst) { if (conf.fastmem_exclusive_access) { - EmitExclusiveReadMemoryInline<64, &A32::UserCallbacks::MemoryRead>(ctx, inst); + EmitExclusiveReadMemoryInline<64, &A32::UserCallbacks::MemoryRead64>(ctx, inst); } else { - EmitExclusiveReadMemory<64, &A32::UserCallbacks::MemoryRead>(ctx, inst); + EmitExclusiveReadMemory<64, &A32::UserCallbacks::MemoryRead64>(ctx, inst); } } diff --git a/src/dynarmic/src/dynarmic/backend/x64/a64_emit_x64_memory.cpp b/src/dynarmic/src/dynarmic/backend/x64/a64_emit_x64_memory.cpp index 8bb2fcfa59..4b7054b4b2 100644 --- a/src/dynarmic/src/dynarmic/backend/x64/a64_emit_x64_memory.cpp +++ b/src/dynarmic/src/dynarmic/backend/x64/a64_emit_x64_memory.cpp @@ -115,16 +115,16 @@ void A64EmitX64::GenMemory128Accessors() { void A64EmitX64::GenFastmemFallbacks() { const std::initializer_list idxes{0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15}; const std::array, 4> read_callbacks{{ - {8, Devirtualize<&A64::UserCallbacks::MemoryRead>(conf.callbacks)}, - {16, Devirtualize<&A64::UserCallbacks::MemoryRead>(conf.callbacks)}, - {32, Devirtualize<&A64::UserCallbacks::MemoryRead>(conf.callbacks)}, - {64, Devirtualize<&A64::UserCallbacks::MemoryRead>(conf.callbacks)}, + {8, Devirtualize<&A64::UserCallbacks::MemoryRead8>(conf.callbacks)}, + {16, Devirtualize<&A64::UserCallbacks::MemoryRead16>(conf.callbacks)}, + {32, Devirtualize<&A64::UserCallbacks::MemoryRead32>(conf.callbacks)}, + {64, Devirtualize<&A64::UserCallbacks::MemoryRead64>(conf.callbacks)}, }}; const std::array, 4> write_callbacks{{ - {8, Devirtualize<&A64::UserCallbacks::MemoryWrite>(conf.callbacks)}, - {16, Devirtualize<&A64::UserCallbacks::MemoryWrite>(conf.callbacks)}, - {32, Devirtualize<&A64::UserCallbacks::MemoryWrite>(conf.callbacks)}, - {64, Devirtualize<&A64::UserCallbacks::MemoryWrite>(conf.callbacks)}, + {8, Devirtualize<&A64::UserCallbacks::MemoryWrite8>(conf.callbacks)}, + {16, Devirtualize<&A64::UserCallbacks::MemoryWrite16>(conf.callbacks)}, + {32, Devirtualize<&A64::UserCallbacks::MemoryWrite32>(conf.callbacks)}, + {64, Devirtualize<&A64::UserCallbacks::MemoryWrite64>(conf.callbacks)}, }}; const std::array, 4> exclusive_write_callbacks{{ {8, Devirtualize<&A64::UserCallbacks::MemoryWriteExclusive8>(conf.callbacks)}, @@ -204,12 +204,12 @@ void A64EmitX64::GenFastmemFallbacks() { code.align(); read_fallbacks[std::make_tuple(ordered, bitsize, vaddr_idx, value_idx)] = code.getCurr(); ABI_PushCallerSaveRegistersAndAdjustStackExcept(code, HostLocRegIdx(value_idx)); - // params = { this, vaddr, size } if (vaddr_idx != code.ABI_PARAM2.getIdx()) { code.mov(code.ABI_PARAM2, Xbyak::Reg64{vaddr_idx}); } - code.mov(code.ABI_PARAM3, bitsize / CHAR_BIT); - if (ordered) code.mfence(); + if (ordered) { + code.mfence(); + } callback.EmitCall(code); if (value_idx != code.ABI_RETURN.getIdx()) { code.mov(Xbyak::Reg64{value_idx}, code.ABI_RETURN); @@ -224,7 +224,6 @@ void A64EmitX64::GenFastmemFallbacks() { code.align(); write_fallbacks[std::make_tuple(ordered, bitsize, vaddr_idx, value_idx)] = code.getCurr(); ABI_PushCallerSaveRegistersAndAdjustStack(code); - // params = { this, vaddr, value, size } if (vaddr_idx == code.ABI_PARAM3.getIdx() && value_idx == code.ABI_PARAM2.getIdx()) { code.xchg(code.ABI_PARAM2, code.ABI_PARAM3); } else if (vaddr_idx == code.ABI_PARAM3.getIdx()) { @@ -241,9 +240,10 @@ void A64EmitX64::GenFastmemFallbacks() { } } code.ZeroExtendFrom(bitsize, code.ABI_PARAM3); - code.mov(code.ABI_PARAM4, bitsize / CHAR_BIT); callback.EmitCall(code); - if (ordered) code.mfence(); + if (ordered) { + code.mfence(); + } ABI_PopCallerSaveRegistersAndAdjustStack(code); code.ret(); PerfMapRegister(write_fallbacks[std::make_tuple(ordered, bitsize, vaddr_idx, value_idx)], code.getCurr(), fmt::format("a64_write_fallback_{}", bitsize)); @@ -286,19 +286,19 @@ void A64EmitX64::GenFastmemFallbacks() { #undef Axx void A64EmitX64::EmitA64ReadMemory8(A64EmitContext& ctx, IR::Inst* inst) { - EmitMemoryRead<8, &A64::UserCallbacks::MemoryRead>(ctx, inst); + EmitMemoryRead<8, &A64::UserCallbacks::MemoryRead8>(ctx, inst); } void A64EmitX64::EmitA64ReadMemory16(A64EmitContext& ctx, IR::Inst* inst) { - EmitMemoryRead<16, &A64::UserCallbacks::MemoryRead>(ctx, inst); + EmitMemoryRead<16, &A64::UserCallbacks::MemoryRead16>(ctx, inst); } void A64EmitX64::EmitA64ReadMemory32(A64EmitContext& ctx, IR::Inst* inst) { - EmitMemoryRead<32, &A64::UserCallbacks::MemoryRead>(ctx, inst); + EmitMemoryRead<32, &A64::UserCallbacks::MemoryRead32>(ctx, inst); } void A64EmitX64::EmitA64ReadMemory64(A64EmitContext& ctx, IR::Inst* inst) { - EmitMemoryRead<64, &A64::UserCallbacks::MemoryRead>(ctx, inst); + EmitMemoryRead<64, &A64::UserCallbacks::MemoryRead64>(ctx, inst); } void A64EmitX64::EmitA64ReadMemory128(A64EmitContext& ctx, IR::Inst* inst) { @@ -306,23 +306,23 @@ void A64EmitX64::EmitA64ReadMemory128(A64EmitContext& ctx, IR::Inst* inst) { } void A64EmitX64::EmitA64WriteMemory8(A64EmitContext& ctx, IR::Inst* inst) { - EmitMemoryWrite<8, &A64::UserCallbacks::MemoryWrite>(ctx, inst); + EmitMemoryWrite<8, &A64::UserCallbacks::MemoryWrite8>(ctx, inst); } void A64EmitX64::EmitA64WriteMemory16(A64EmitContext& ctx, IR::Inst* inst) { - EmitMemoryWrite<16, &A64::UserCallbacks::MemoryWrite>(ctx, inst); + EmitMemoryWrite<16, &A64::UserCallbacks::MemoryWrite16>(ctx, inst); } void A64EmitX64::EmitA64WriteMemory32(A64EmitContext& ctx, IR::Inst* inst) { - EmitMemoryWrite<32, &A64::UserCallbacks::MemoryWrite>(ctx, inst); + EmitMemoryWrite<32, &A64::UserCallbacks::MemoryWrite32>(ctx, inst); } void A64EmitX64::EmitA64WriteMemory64(A64EmitContext& ctx, IR::Inst* inst) { - EmitMemoryWrite<64, &A64::UserCallbacks::MemoryWrite>(ctx, inst); + EmitMemoryWrite<64, &A64::UserCallbacks::MemoryWrite64>(ctx, inst); } void A64EmitX64::EmitA64WriteMemory128(A64EmitContext& ctx, IR::Inst* inst) { - EmitMemoryWrite<128, &A64::UserCallbacks::MemoryWrite>(ctx, inst); + EmitMemoryWrite<128, &A64::UserCallbacks::MemoryWrite64>(ctx, inst); } void A64EmitX64::EmitA64ClearExclusive(A64EmitContext&, IR::Inst*) { @@ -331,33 +331,33 @@ void A64EmitX64::EmitA64ClearExclusive(A64EmitContext&, IR::Inst*) { void A64EmitX64::EmitA64ExclusiveReadMemory8(A64EmitContext& ctx, IR::Inst* inst) { if (conf.fastmem_exclusive_access) { - EmitExclusiveReadMemoryInline<8, &A64::UserCallbacks::MemoryRead>(ctx, inst); + EmitExclusiveReadMemoryInline<8, &A64::UserCallbacks::MemoryRead8>(ctx, inst); } else { - EmitExclusiveReadMemory<8, &A64::UserCallbacks::MemoryRead>(ctx, inst); + EmitExclusiveReadMemory<8, &A64::UserCallbacks::MemoryRead8>(ctx, inst); } } void A64EmitX64::EmitA64ExclusiveReadMemory16(A64EmitContext& ctx, IR::Inst* inst) { if (conf.fastmem_exclusive_access) { - EmitExclusiveReadMemoryInline<16, &A64::UserCallbacks::MemoryRead>(ctx, inst); + EmitExclusiveReadMemoryInline<16, &A64::UserCallbacks::MemoryRead16>(ctx, inst); } else { - EmitExclusiveReadMemory<16, &A64::UserCallbacks::MemoryRead>(ctx, inst); + EmitExclusiveReadMemory<16, &A64::UserCallbacks::MemoryRead16>(ctx, inst); } } void A64EmitX64::EmitA64ExclusiveReadMemory32(A64EmitContext& ctx, IR::Inst* inst) { if (conf.fastmem_exclusive_access) { - EmitExclusiveReadMemoryInline<32, &A64::UserCallbacks::MemoryRead>(ctx, inst); + EmitExclusiveReadMemoryInline<32, &A64::UserCallbacks::MemoryRead32>(ctx, inst); } else { - EmitExclusiveReadMemory<32, &A64::UserCallbacks::MemoryRead>(ctx, inst); + EmitExclusiveReadMemory<32, &A64::UserCallbacks::MemoryRead32>(ctx, inst); } } void A64EmitX64::EmitA64ExclusiveReadMemory64(A64EmitContext& ctx, IR::Inst* inst) { if (conf.fastmem_exclusive_access) { - EmitExclusiveReadMemoryInline<64, &A64::UserCallbacks::MemoryRead>(ctx, inst); + EmitExclusiveReadMemoryInline<64, &A64::UserCallbacks::MemoryRead64>(ctx, inst); } else { - EmitExclusiveReadMemory<64, &A64::UserCallbacks::MemoryRead>(ctx, inst); + EmitExclusiveReadMemory<64, &A64::UserCallbacks::MemoryRead64>(ctx, inst); } } diff --git a/src/dynarmic/src/dynarmic/backend/x64/emit_x64_memory.cpp.inc b/src/dynarmic/src/dynarmic/backend/x64/emit_x64_memory.cpp.inc index 8bb8be3d5b..4fa14d504b 100644 --- a/src/dynarmic/src/dynarmic/backend/x64/emit_x64_memory.cpp.inc +++ b/src/dynarmic/src/dynarmic/backend/x64/emit_x64_memory.cpp.inc @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - /* This file is part of the dynarmic project. * Copyright (c) 2022 MerryMage * SPDX-License-Identifier: 0BSD @@ -59,13 +56,16 @@ void AxxEmitX64::EmitMemoryRead(AxxEmitContext& ctx, IR::Inst* inst) { // Neither fastmem nor page table: Use callbacks if constexpr (bitsize == 128) { ctx.reg_alloc.HostCall(code, nullptr, {}, args[1]); - if (ordered) code.mfence(); + if (ordered) { + code.mfence(); + } code.CallFunction(memory_read_128); ctx.reg_alloc.DefineValue(code, inst, xmm1); } else { ctx.reg_alloc.HostCall(code, inst, {}, args[1]); - code.mov(code.ABI_PARAM3.cvt32(), bitsize / CHAR_BIT); - if (ordered) code.mfence(); + if (ordered) { + code.mfence(); + } Devirtualize(conf.callbacks).EmitCall(code); code.ZeroExtendFrom(bitsize, code.ABI_RETURN); } @@ -148,12 +148,12 @@ void AxxEmitX64::EmitMemoryWrite(AxxEmitContext& ctx, IR::Inst* inst) { ctx.reg_alloc.HostCall(code, nullptr); code.CallFunction(memory_write_128); } else { - // { this, vaddr, value, size } ctx.reg_alloc.HostCall(code, nullptr, {}, args[1], args[2]); - code.mov(code.ABI_PARAM4.cvt32(), bitsize / CHAR_BIT); Devirtualize(conf.callbacks).EmitCall(code); } - if (ordered) code.mfence(); + if (ordered) { + code.mfence(); + } EmitCheckMemoryAbort(ctx, inst); return; } @@ -230,11 +230,12 @@ void AxxEmitX64::EmitExclusiveReadMemory(AxxEmitContext& ctx, IR::Inst* inst) { if (ordered) { code.mfence(); } - code.CallLambda([](AxxUserConfig& conf, Axx::VAddr vaddr) -> T { - return conf.global_monitor->ReadAndMark(conf.processor_id, vaddr, [&]() -> T { - return (conf.callbacks->*callback)(vaddr, bitsize / CHAR_BIT); + code.CallLambda( + [](AxxUserConfig& conf, Axx::VAddr vaddr) -> T { + return conf.global_monitor->ReadAndMark(conf.processor_id, vaddr, [&]() -> T { + return (conf.callbacks->*callback)(vaddr); + }); }); - }); code.ZeroExtendFrom(bitsize, code.ABI_RETURN); } else { const Xbyak::Xmm result = ctx.reg_alloc.ScratchXmm(code); @@ -249,11 +250,12 @@ void AxxEmitX64::EmitExclusiveReadMemory(AxxEmitContext& ctx, IR::Inst* inst) { if (ordered) { code.mfence(); } - code.CallLambda([](AxxUserConfig& conf, Axx::VAddr vaddr, Vector& ret) { - ret = conf.global_monitor->ReadAndMark(conf.processor_id, vaddr, [&]() -> Vector { - return (conf.callbacks->*callback)(vaddr); + code.CallLambda( + [](AxxUserConfig& conf, Axx::VAddr vaddr, Vector& ret) { + ret = conf.global_monitor->ReadAndMark(conf.processor_id, vaddr, [&]() -> Vector { + return (conf.callbacks->*callback)(vaddr); + }); }); - }); code.movups(result, xword[rsp + ABI_SHADOW_SPACE]); ctx.reg_alloc.ReleaseStackSpace(code, 16 + ABI_SHADOW_SPACE); diff --git a/src/dynarmic/src/dynarmic/backend/x64/emit_x64_memory.h b/src/dynarmic/src/dynarmic/backend/x64/emit_x64_memory.h index d072b9963d..9686e4fc04 100644 --- a/src/dynarmic/src/dynarmic/backend/x64/emit_x64_memory.h +++ b/src/dynarmic/src/dynarmic/backend/x64/emit_x64_memory.h @@ -85,13 +85,8 @@ template<> code.mov(tmp, vaddr); code.shr(tmp, int(page_table_const_bits)); - - if (ctx.conf.page_table_log2_stride > 3) { - code.shl(tmp, int(ctx.conf.page_table_log2_stride)); - code.mov(page, qword[r14 + tmp.cvt64()]); - } else { - code.mov(page, qword[r14 + tmp.cvt64() * int(1 << ctx.conf.page_table_log2_stride)]); - } + code.shl(tmp, int(ctx.conf.page_table_log2_stride)); + code.mov(page, qword[r14 + tmp.cvt64()]); // check for marked bit, use as unmapped if marked if (ctx.conf.page_table_marked_bit) { @@ -107,10 +102,9 @@ template<> code.mov(tmp, ctx.conf.page_table_pointer_mask); code.and_(page, tmp); } - // check for sign bit, apply sign extension as needed if (ctx.conf.page_table_sign_extension) { - code.shl(page, 63 - int(*ctx.conf.page_table_sign_extension)); - code.sar(page, 63 - int(*ctx.conf.page_table_sign_extension)); + code.shl(page, *ctx.conf.page_table_sign_extension); + code.sar(page, *ctx.conf.page_table_sign_extension); } code.jz(abort, code.T_NEAR); @@ -161,12 +155,8 @@ template<> code.jnz(abort, code.T_NEAR); } - if (ctx.conf.page_table_log2_stride > 3) { - code.shl(tmp, int(ctx.conf.page_table_log2_stride)); - code.mov(page, qword[r14 + tmp.cvt64()]); - } else { - code.mov(page, qword[r14 + tmp.cvt64() * int(1 << ctx.conf.page_table_log2_stride)]); - } + code.shl(tmp, int(ctx.conf.page_table_log2_stride)); + code.mov(page, qword[r14 + tmp]); // check for marked bit, use as unmapped if marked if (ctx.conf.page_table_marked_bit) { @@ -182,7 +172,6 @@ template<> code.mov(tmp, ctx.conf.page_table_pointer_mask); code.and_(page, tmp); } - // check for sign bit, apply sign extension as needed if (ctx.conf.page_table_sign_extension) { code.shl(page, *ctx.conf.page_table_sign_extension); code.sar(page, *ctx.conf.page_table_sign_extension); diff --git a/src/dynarmic/src/dynarmic/common/spin_lock_ppc64.cpp b/src/dynarmic/src/dynarmic/common/spin_lock_ppc64.cpp new file mode 100644 index 0000000000..258b10f52b --- /dev/null +++ b/src/dynarmic/src/dynarmic/common/spin_lock_ppc64.cpp @@ -0,0 +1,71 @@ +// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project +// SPDX-License-Identifier: GPL-3.0-or-later + +#include +#include +#include +#include "dynarmic/backend/ppc64/abi.h" +#include "dynarmic/backend/ppc64/hostloc.h" +#include "dynarmic/common/spin_lock.h" +#include "common/assert.h" + +namespace Dynarmic { + +/* +void acquire(atomic_flag* lock) { + while(atomic_flag_test_and_set_explicit( lock, memory_order_acquire)) + ; +} +*/ +void EmitSpinLockLock(powah::Context& code, powah::GPR const ptr, powah::GPR const tmp) { + +} + +/* +void release(atomic_flag* lock) { + atomic_flag_clear_explicit(lock, memory_order_release); +} +*/ +void EmitSpinLockUnlock(powah::Context& code, powah::GPR const ptr, powah::GPR const tmp) { + +} + +namespace { + +struct SpinLockImpl { + void Initialize(); + powah::Context code; + void* page = nullptr; + void (*lock)(volatile int*); + void (*unlock)(volatile int*); +}; + +std::once_flag flag; +SpinLockImpl impl; + +void SpinLockImpl::Initialize() { + page = mmap(nullptr, 4096, PROT_READ | PROT_WRITE | PROT_EXEC, MAP_ANON | MAP_PRIVATE, -1, 0); + ASSERT(page != nullptr); + code = powah::Context(page, 4096); + lock = reinterpret_cast(code.base); + EmitSpinLockLock(code, Backend::PPC64::ABI_PARAM1, Backend::PPC64::ABI_PARAM2); + code.BLR(); + unlock = reinterpret_cast(code.base); + EmitSpinLockUnlock(code, Backend::PPC64::ABI_PARAM1, Backend::PPC64::ABI_PARAM2); + code.BLR(); + // TODO: free the page, rework the stupid spinlock API +} + +} // namespace + +void SpinLock::Lock() noexcept { + std::call_once(flag, &SpinLockImpl::Initialize, impl); + impl.lock(&storage); +} + +void SpinLock::Unlock() noexcept { + std::call_once(flag, &SpinLockImpl::Initialize, impl); + impl.unlock(&storage); +} + +} // namespace Dynarmic diff --git a/src/dynarmic/src/dynarmic/common/spin_lock_ppc64.h b/src/dynarmic/src/dynarmic/common/spin_lock_ppc64.h new file mode 100644 index 0000000000..460024053c --- /dev/null +++ b/src/dynarmic/src/dynarmic/common/spin_lock_ppc64.h @@ -0,0 +1,13 @@ +// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project +// SPDX-License-Identifier: GPL-3.0-or-later + +#pragma once + +#include + +namespace Dynarmic { + +void EmitSpinLockLock(powah::Context& code, powah::GPR const ptr, powah::GPR const tmp); +void EmitSpinLockUnlock(powah::Context& code, powah::GPR const ptr, powah::GPR const tmp); + +} // namespace Dynarmic diff --git a/src/dynarmic/src/dynarmic/interface/A32/config.h b/src/dynarmic/src/dynarmic/interface/A32/config.h index 49063ed619..b93b116164 100644 --- a/src/dynarmic/src/dynarmic/interface/A32/config.h +++ b/src/dynarmic/src/dynarmic/interface/A32/config.h @@ -66,9 +66,7 @@ struct UserCallbacks : public TranslateCallbacks { // All reads through this callback are 4-byte aligned. // Memory must be interpreted as little endian. - std::optional MemoryReadCode(VAddr vaddr) override { - return std::uint32_t(MemoryRead(vaddr, sizeof(std::uint32_t))); - } + std::optional MemoryReadCode(VAddr vaddr) override { return MemoryRead32(vaddr); } // This function is called before the instruction at pc is read. // IR code can be emitted by the callee prior to instruction handling. @@ -82,10 +80,16 @@ struct UserCallbacks : public TranslateCallbacks { // Reads through these callbacks may not be aligned. // Memory must be interpreted as if ENDIANSTATE == 0, endianness will be corrected by the JIT. - virtual std::uint64_t MemoryRead(VAddr vaddr, std::size_t size) = 0; + virtual std::uint8_t MemoryRead8(VAddr vaddr) = 0; + virtual std::uint16_t MemoryRead16(VAddr vaddr) = 0; + virtual std::uint32_t MemoryRead32(VAddr vaddr) = 0; + virtual std::uint64_t MemoryRead64(VAddr vaddr) = 0; // Writes through these callbacks may not be aligned. - virtual void MemoryWrite(VAddr vaddr, std::uint64_t value, std::size_t size) = 0; + virtual void MemoryWrite8(VAddr vaddr, std::uint8_t value) = 0; + virtual void MemoryWrite16(VAddr vaddr, std::uint16_t value) = 0; + virtual void MemoryWrite32(VAddr vaddr, std::uint32_t value) = 0; + virtual void MemoryWrite64(VAddr vaddr, std::uint64_t value) = 0; // Writes through these callbacks may not be aligned. virtual bool MemoryWriteExclusive8(VAddr /*vaddr*/, std::uint8_t /*value*/, std::uint8_t /*expected*/) { return false; } diff --git a/src/dynarmic/src/dynarmic/interface/A64/config.h b/src/dynarmic/src/dynarmic/interface/A64/config.h index 859aeba709..818aed73e7 100644 --- a/src/dynarmic/src/dynarmic/interface/A64/config.h +++ b/src/dynarmic/src/dynarmic/interface/A64/config.h @@ -89,16 +89,20 @@ struct UserCallbacks { // All reads through this callback are 4-byte aligned. // Memory must be interpreted as little endian. - virtual std::optional MemoryReadCode(VAddr vaddr) { - return std::uint32_t(MemoryRead(vaddr, sizeof(std::uint32_t))); - } + virtual std::optional MemoryReadCode(VAddr vaddr) { return MemoryRead32(vaddr); } // Reads through these callbacks may not be aligned. - virtual std::uint64_t MemoryRead(VAddr vaddr, std::size_t size) = 0; + virtual std::uint8_t MemoryRead8(VAddr vaddr) = 0; + virtual std::uint16_t MemoryRead16(VAddr vaddr) = 0; + virtual std::uint32_t MemoryRead32(VAddr vaddr) = 0; + virtual std::uint64_t MemoryRead64(VAddr vaddr) = 0; virtual Vector MemoryRead128(VAddr vaddr) = 0; // Writes through these callbacks may not be aligned. - virtual void MemoryWrite(VAddr vaddr, std::uint64_t value, std::size_t size) = 0; + virtual void MemoryWrite8(VAddr vaddr, std::uint8_t value) = 0; + virtual void MemoryWrite16(VAddr vaddr, std::uint16_t value) = 0; + virtual void MemoryWrite32(VAddr vaddr, std::uint32_t value) = 0; + virtual void MemoryWrite64(VAddr vaddr, std::uint64_t value) = 0; virtual void MemoryWrite128(VAddr vaddr, Vector value) = 0; // Writes through these callbacks may not be aligned. diff --git a/src/dynarmic/src/dynarmic/ir/opt_passes.cpp b/src/dynarmic/src/dynarmic/ir/opt_passes.cpp index b32bbd517a..02b8e821da 100644 --- a/src/dynarmic/src/dynarmic/ir/opt_passes.cpp +++ b/src/dynarmic/src/dynarmic/ir/opt_passes.cpp @@ -40,7 +40,7 @@ static void ConstantMemoryReads(IR::Block& block, A32::UserCallbacks* cb) { if (inst.AreAllArgsImmediates()) { const u32 vaddr = inst.GetArg(1).GetU32(); if (cb->IsReadOnlyMemory(vaddr)) { - const u8 value_from_memory = u8(cb->MemoryRead(vaddr, sizeof(u8))); + const u8 value_from_memory = cb->MemoryRead8(vaddr); inst.ReplaceUsesWith(IR::Value{value_from_memory}); } } @@ -51,7 +51,7 @@ static void ConstantMemoryReads(IR::Block& block, A32::UserCallbacks* cb) { if (inst.AreAllArgsImmediates()) { const u32 vaddr = inst.GetArg(1).GetU32(); if (cb->IsReadOnlyMemory(vaddr)) { - const u16 value_from_memory = u16(cb->MemoryRead(vaddr, sizeof(u16))); + const u16 value_from_memory = cb->MemoryRead16(vaddr); inst.ReplaceUsesWith(IR::Value{value_from_memory}); } } @@ -62,7 +62,7 @@ static void ConstantMemoryReads(IR::Block& block, A32::UserCallbacks* cb) { if (inst.AreAllArgsImmediates()) { const u32 vaddr = inst.GetArg(1).GetU32(); if (cb->IsReadOnlyMemory(vaddr)) { - const u32 value_from_memory = u32(cb->MemoryRead(vaddr, sizeof(u32))); + const u32 value_from_memory = cb->MemoryRead32(vaddr); inst.ReplaceUsesWith(IR::Value{value_from_memory}); } } @@ -73,7 +73,7 @@ static void ConstantMemoryReads(IR::Block& block, A32::UserCallbacks* cb) { if (inst.AreAllArgsImmediates()) { const u32 vaddr = inst.GetArg(1).GetU32(); if (cb->IsReadOnlyMemory(vaddr)) { - const u64 value_from_memory = u64(cb->MemoryRead(vaddr, sizeof(u64))); + const u64 value_from_memory = cb->MemoryRead64(vaddr); inst.ReplaceUsesWith(IR::Value{value_from_memory}); } } diff --git a/src/dynarmic/tests/A32/fuzz_thumb.cpp b/src/dynarmic/tests/A32/fuzz_thumb.cpp index a29b877f3e..67a01daf9c 100644 --- a/src/dynarmic/tests/A32/fuzz_thumb.cpp +++ b/src/dynarmic/tests/A32/fuzz_thumb.cpp @@ -503,7 +503,7 @@ TEST_CASE("Fuzz Thumb32 instructions set", "[JitX64][Thumb][Thumb32]") { } } -TEST_CASE("Verify fix for off by one error in MemoryRead<32> worked", "[Thumb][Thumb16]") { +TEST_CASE("Verify fix for off by one error in MemoryRead32 worked", "[Thumb][Thumb16]") { ThumbTestEnv test_env; // Prepare test subjects diff --git a/src/dynarmic/tests/A32/test_arm_instructions.cpp b/src/dynarmic/tests/A32/test_arm_instructions.cpp index ee24131386..5a27cd499c 100644 --- a/src/dynarmic/tests/A32/test_arm_instructions.cpp +++ b/src/dynarmic/tests/A32/test_arm_instructions.cpp @@ -553,9 +553,9 @@ TEST_CASE("arm: Memory access (fastmem)", "[arm][A32]") { memset(backing_memory, 0, memory_size); memcpy(backing_memory + 0x100, "Lorem ipsum dolor sit amet, consectetur adipiscing elit.", 57); - env.MemoryWrite(0, 0xE5904000, sizeof(u32)); // LDR R4, [R0] - env.MemoryWrite(4, 0xE5814000, sizeof(u32)); // STR R4, [R1] - env.MemoryWrite(8, 0xEAFFFFFE, sizeof(u32)); // B . + env.MemoryWrite32(0, 0xE5904000); // LDR R4, [R0] + env.MemoryWrite32(4, 0xE5814000); // STR R4, [R1] + env.MemoryWrite32(8, 0xEAFFFFFE); // B . jit.Regs()[0] = 0x100; jit.Regs()[1] = 0x1F0; jit.Regs()[15] = 0; // PC = 0 diff --git a/src/dynarmic/tests/A32/testenv.h b/src/dynarmic/tests/A32/testenv.h index a22cc7131e..bebc2566da 100644 --- a/src/dynarmic/tests/A32/testenv.h +++ b/src/dynarmic/tests/A32/testenv.h @@ -16,7 +16,6 @@ #include "common/assert.h" #include "common/common_types.h" -#include "dynarmic/frontend/A32/translate/translate_callbacks.h" #include "dynarmic/interface/A32/a32.h" template @@ -60,51 +59,42 @@ public: return infinite_loop_u32; // B . } - u64 MemoryRead(u32 vaddr, size_t size) override { - switch (size) { - case sizeof(u64): - return MemoryRead(vaddr, sizeof(u32)) - | MemoryRead(vaddr + sizeof(u32), sizeof(u32)) << 32; - case sizeof(u32): - return MemoryRead(vaddr, sizeof(u16)) - | MemoryRead(vaddr + sizeof(u16), sizeof(u16)) << 16; - case sizeof(u16): - return MemoryRead(vaddr, sizeof(u8)) - | MemoryRead(vaddr + sizeof(u8), sizeof(u8)) << 8; - case sizeof(u8): { - if (IsInCodeMem(vaddr)) - return reinterpret_cast(code_mem.data())[vaddr]; - if (auto iter = modified_memory.find(vaddr); iter != modified_memory.end()) - return iter->second; - return u8(vaddr); + std::uint8_t MemoryRead8(u32 vaddr) override { + if (IsInCodeMem(vaddr)) { + return reinterpret_cast(code_mem.data())[vaddr]; } - default: - std::abort(); + if (auto iter = modified_memory.find(vaddr); iter != modified_memory.end()) { + return iter->second; } + return static_cast(vaddr); + } + std::uint16_t MemoryRead16(u32 vaddr) override { + return u16(MemoryRead8(vaddr)) | u16(MemoryRead8(vaddr + 1)) << 8; + } + std::uint32_t MemoryRead32(u32 vaddr) override { + return u32(MemoryRead16(vaddr)) | u32(MemoryRead16(vaddr + 2)) << 16; + } + std::uint64_t MemoryRead64(u32 vaddr) override { + return u64(MemoryRead32(vaddr)) | u64(MemoryRead32(vaddr + 4)) << 32; } - void MemoryWrite(Dynarmic::A32::VAddr vaddr, u64 value, size_t size) override { - switch (size) { - case sizeof(u64): - MemoryWrite(vaddr, u32(value), sizeof(u32)); - MemoryWrite(vaddr + 4, u32(value >> 32), sizeof(u32)); - break; - case sizeof(u32): - MemoryWrite(vaddr, u16(value), sizeof(u16)); - MemoryWrite(vaddr + 2, u16(value >> 16), sizeof(u16)); - break; - case sizeof(u16): - MemoryWrite(vaddr, u8(value), sizeof(u8)); - MemoryWrite(vaddr + 1, u8(value >> 8), sizeof(u8)); - break; - case sizeof(u8): - if (vaddr < code_mem.size() * sizeof(u32)) - code_mem_modified_by_guest = true; - modified_memory[vaddr] = value; - break; - default: - std::abort(); + void MemoryWrite8(u32 vaddr, std::uint8_t value) override { + if (vaddr < code_mem.size() * sizeof(u32)) { + code_mem_modified_by_guest = true; } + modified_memory[vaddr] = value; + } + void MemoryWrite16(u32 vaddr, std::uint16_t value) override { + MemoryWrite8(vaddr, static_cast(value)); + MemoryWrite8(vaddr + 1, static_cast(value >> 8)); + } + void MemoryWrite32(u32 vaddr, std::uint32_t value) override { + MemoryWrite16(vaddr, static_cast(value)); + MemoryWrite16(vaddr + 2, static_cast(value >> 16)); + } + void MemoryWrite64(u32 vaddr, std::uint64_t value) override { + MemoryWrite32(vaddr, static_cast(value)); + MemoryWrite32(vaddr + 4, static_cast(value >> 32)); } void CallSVC(std::uint32_t swi) override { @@ -153,41 +143,46 @@ public: return read(vaddr); } - u64 MemoryRead(u32 vaddr, size_t size) override { - switch (size) { - case sizeof(u64): return read(vaddr); - case sizeof(u32): return read(vaddr); - case sizeof(u16): return read(vaddr); - case sizeof(u8): return read(vaddr); - default: - std::abort(); - } + std::uint8_t MemoryRead8(std::uint32_t vaddr) override { + return read(vaddr); + } + std::uint16_t MemoryRead16(std::uint32_t vaddr) override { + return read(vaddr); + } + std::uint32_t MemoryRead32(std::uint32_t vaddr) override { + return read(vaddr); + } + std::uint64_t MemoryRead64(std::uint32_t vaddr) override { + return read(vaddr); } - void MemoryWrite(Dynarmic::A32::VAddr vaddr, std::uint64_t value, size_t size) override { - switch (size) { - case sizeof(u64): return write(vaddr, u64(value)); - case sizeof(u32): return write(vaddr, u32(value)); - case sizeof(u16): return write(vaddr, u16(value)); - case sizeof(u8): return write(vaddr, u8(value)); - default: std::abort(); - } + void MemoryWrite8(std::uint32_t vaddr, std::uint8_t value) override { + write(vaddr, value); + } + void MemoryWrite16(std::uint32_t vaddr, std::uint16_t value) override { + write(vaddr, value); + } + void MemoryWrite32(std::uint32_t vaddr, std::uint32_t value) override { + write(vaddr, value); + } + void MemoryWrite64(std::uint32_t vaddr, std::uint64_t value) override { + write(vaddr, value); } - bool MemoryWriteExclusive8(Dynarmic::A32::VAddr vaddr, std::uint8_t value, [[maybe_unused]] std::uint8_t expected) override { - MemoryWrite(vaddr, value, sizeof(u8)); + bool MemoryWriteExclusive8(std::uint32_t vaddr, std::uint8_t value, [[maybe_unused]] std::uint8_t expected) override { + MemoryWrite8(vaddr, value); return true; } - bool MemoryWriteExclusive16(Dynarmic::A32::VAddr vaddr, std::uint16_t value, [[maybe_unused]] std::uint16_t expected) override { - MemoryWrite(vaddr, value, sizeof(u16)); + bool MemoryWriteExclusive16(std::uint32_t vaddr, std::uint16_t value, [[maybe_unused]] std::uint16_t expected) override { + MemoryWrite16(vaddr, value); return true; } - bool MemoryWriteExclusive32(Dynarmic::A32::VAddr vaddr, std::uint32_t value, [[maybe_unused]] std::uint32_t expected) override { - MemoryWrite(vaddr, value, sizeof(u32)); + bool MemoryWriteExclusive32(std::uint32_t vaddr, std::uint32_t value, [[maybe_unused]] std::uint32_t expected) override { + MemoryWrite32(vaddr, value); return true; } - bool MemoryWriteExclusive64(Dynarmic::A32::VAddr vaddr, std::uint64_t value, [[maybe_unused]] std::uint64_t expected) override { - MemoryWrite(vaddr, value, sizeof(u64)); + bool MemoryWriteExclusive64(std::uint32_t vaddr, std::uint64_t value, [[maybe_unused]] std::uint64_t expected) override { + MemoryWrite64(vaddr, value); return true; } diff --git a/src/dynarmic/tests/A64/a64.cpp b/src/dynarmic/tests/A64/a64.cpp index 24ddfd4084..99cc9d3d4d 100644 --- a/src/dynarmic/tests/A64/a64.cpp +++ b/src/dynarmic/tests/A64/a64.cpp @@ -1006,8 +1006,8 @@ TEST_CASE("A64: 128-bit exclusive read/write", "[a64]") { REQUIRE(jit.GetRegister(1) == 0x7f7e7d7c7b7a7978); REQUIRE(jit.GetRegister(2) == 0x8786858483828180); REQUIRE(jit.GetRegister(4) == 0); - REQUIRE(env.MemoryRead(0x1234567812345678, sizeof(u64)) == 0xaf00d1e5badcafe0); - REQUIRE(env.MemoryRead(0x1234567812345680, sizeof(u64)) == 0xd0d0cacad0d0caca); + REQUIRE(env.MemoryRead64(0x1234567812345678) == 0xaf00d1e5badcafe0); + REQUIRE(env.MemoryRead64(0x1234567812345680) == 0xd0d0cacad0d0caca); } TEST_CASE("A64: CNTPCT_EL0", "[a64]") { @@ -1517,11 +1517,11 @@ TEST_CASE("A64: Memory access (fastmem)", "[a64]") { memset(backing_memory, 0, memory_size); memcpy(backing_memory + 0x100, "Lorem ipsum dolor sit amet, consectetur adipiscing elit.", 57); - env.MemoryWrite(0, 0xA9401404, sizeof(u32)); // LDP X4, X5, [X0] - env.MemoryWrite(4, 0xF9400046, sizeof(u32)); // LDR X6, [X2] - env.MemoryWrite(8, 0xA9001424, sizeof(u32)); // STP X4, X5, [X1] - env.MemoryWrite(12, 0xF9000066, sizeof(u32)); // STR X6, [X3] - env.MemoryWrite(16, 0x14000000, sizeof(u32)); // B . + env.MemoryWrite32(0, 0xA9401404); // LDP X4, X5, [X0] + env.MemoryWrite32(4, 0xF9400046); // LDR X6, [X2] + env.MemoryWrite32(8, 0xA9001424); // STP X4, X5, [X1] + env.MemoryWrite32(12, 0xF9000066); // STR X6, [X3] + env.MemoryWrite32(16, 0x14000000); // B . jit.SetRegister(0, 0x100); jit.SetRegister(1, 0x1F0); jit.SetRegister(2, 0x10F); @@ -1788,8 +1788,8 @@ TEST_CASE("A64: rand3", "[a64]") { memset(backing_memory, 0, memory_size); // cat rand2.txt | awk '{print "env.code_mem.emplace_back(0x"$2"); // "$0}' > rand2-out.tx - env.MemoryWrite(100, 0x58028edd, sizeof(u32)); // 0000000000000084 58028edd ldr x29, #20952 - env.MemoryWrite(104, 0x14000000, sizeof(u32)); // 0000000000000ea4 14000000 b #0 + env.MemoryWrite32(100, 0x58028edd); // 0000000000000084 58028edd ldr x29, #20952 + env.MemoryWrite32(104, 0x14000000); // 0000000000000ea4 14000000 b #0 jit.SetPC(100); jit.SetPstate(0xb0000000); @@ -1824,7 +1824,7 @@ TEST_CASE("A64: rand2", "[a64][.]") { // cat rand2.txt | awk '{print "env.code_mem.emplace_back(0x"$2"); // "$0}' > rand2-out.tx const std::array code32 = {0xea80f352, 0x6e65e59d, 0x1e20c343, 0x2e3a7192, 0x2e267249, 0xd500405f, 0x6f01f461, 0x6eb684fc, 0x58028edd, 0x0ea5f5b6, 0x0ea069fb, 0x2e769517, 0x5e066063, 0x1e65c3f5, 0x4f00ff52, 0x93401cf6, 0x1e274248, 0x6f67aaf5, 0x5e0c0782, 0x5ef43f3c, 0x2e6595b7, 0x4e20590f, 0xb35aa451, 0x6ee2c5ed, 0x4e32bf46, 0x2ea1ba8f, 0x2f68a85e, 0x9237d90a, 0x5e23dd10, 0x0e762e32, 0x4e31a8cf, 0xce1f3360, 0x781a4ac0, 0x13834066, 0x5fa8101c, 0x6f7c5594, 0x0e71bb68, 0xbc0b3e8f, 0x785dbbda, 0x6f51e794, 0xce50af75, 0x1ad728ec, 0x6ee0da4c, 0xb84efa14, 0x2eb3f613, 0x4e287ade, 0x4eb8c734, 0x2e83f4e8, 0x0e397c80, 0xd08f93f8, 0xce718e48, 0x0f672a0d, 0x2e9edd40, 0x0e14128b, 0x6f5942e6, 0x8b3a0f03, 0x3c5d16b9, 0x7f7e3743, 0x4f4c54e4, 0x0ea0a9e9, 0x9e59dbe6, 0x6e7ddcd3, 0xcec08377, 0x9ba759f8, 0x2ea5046e, 0x0e24c569, 0xb8979780, 0x4e31b98c, 0x4efe4f46, 0x4ea7c762, 0x7e61c9c6, 0x6e30c880, 0x1ada0c25, 0x4e603a2f, 0xda9d7218, 0x0d40c5d9, 0x5e214b05, 0x9ba9efc5, 0x5e61b81e, 0x6e7bc31c, 0x0e61a163, 0x9e5832d2, 0x4e772248, 0x4e3d17c8, 0x92624f60, 0x7a1a02dc, 0x79891f65, 0x6eb45036, 0x0e321ee8, 0x4e2566f0, 0x4ea02b9b, 0x0f9dcb3d, 0x2e21b9f9, 0x0e21a8c3, 0xda1700bd, 0x6ea0fb38, 0x7e607a0b, 0x72845817, 0x7f61068e, 0x0d60e529, 0x4ea0ca5c, 0x1a94b20f, 0x8b87419d, 0x7ea9ed71, 0x2ea1a86e, 0x4d40c4da, 0x5ea0eada, 0x784ba96e, 0x7eb6ee02, 0x3db1c710, 0x0e217836, 0x7ee0bb96, 0x4e786c08, 0x4e976a08, 0x489ffe86, 0x4e79fc9b, 0x0e21cbce, 0x5ef7fc65, 0x4ea1286d, 0xd29c771e, 0x6f5c2839, 0x0ea00a9d, 0x6ee44c06, 0x5ee1d858, 0x5ef2fda6, 0x7eb0c9fe, 0x7f762791, 0x2e212ae6, 0x4e61c9db, 0x13003c57, 0x5ee1b8f8, 0x0f2396d2, 0x6ea0db1e, 0x0e71ba82, 0xab29c807, 0x6ef8f8b3, 0x1f18d4a1, 0x0e261d15, 0x1e290081, 0x1b0c7d12, 0x4e7771c3, 0xf845f1e4, 0x4d40c9e8, 0xce778452, 0x6eb9879d, 0x6e21c93d, 0xcec0829f, 0x52a0969f, 0x1e772b4f, 0x7ee1da88, 0x5f52fe0a, 0x7f3387b1, 0x5e214850, 0x1e65c025, 0x0e2ca294, 0x2e614829, 0x1e640077, 0x9e240048, 0x4ebe9537, 0x9bb7925e, 0x38b669c5, 0x2840d089, 0x6f43e648, 0x2e662d28, 0x4eabaff3, 0x6e734cc7, 0x0e31baee, 0x7ee0d93c, 0x5e282bde, 0x7e21bba4, 0x4e6c75fa, 0x5ac01217, 0x7f4304af, 0x1e7878ed, 0x1ada2196, 0x7ee1aba3, 0x93407f3c, 0x4f6c34eb, 0x6e3447a9, 0x7e7ae545, 0x5e0802bb, 0x6eeae63a, 0x7ee1da62, 0x5e280bb3, 0xf81d4009, 0x1e603b21, 0x5e281a14, 0x6eb0a99b, 0x1e266a25, 0x0d60cafe, 0x0e0b6194, 0x7a4ed2c5, 0x92b762ec, 0x4e6b5749, 0x3c16a6e5, 0x4ea0a92b, 0x0fa58b6a, 0x5f76148c, 0x6e30c95f, 0x1e6540fd, 0x5e28e40f, 0x0d403fd4, 0x7e30da36, 0x7fda9b51, 0x2ea04bde, 0x1e25c3d2, 0x1ee0434c, 0x5e21d8e7, 0x5ee1ba51, 0x5e61aba9, 0x4e2849fb, 0x5ee098ea, 0x4e60f63d, 0x0f280443, 0x5ee0da27, 0x2e78a6ce, 0x78054afc, 0x4e14286b, 0x4e218bd8, 0x2a3d2551, 0x3a04017a, 0x5f4317cd, 0x0e604a37, 0x9a834614, 0x0e2edf4d, 0x7a51a0a0, 0x5f8e9043, 0x6ea06bb2, 0xaa2857dd, 0x7a1903fc, 0x301ba9ba, 0x9ac929cd, 0x4e061ff0, 0x2e38fcfc, 0x0e2f614a, 0x7ee0d8e4, 0x6e73afda, 0x7f4156f7, 0x0e6078bf, 0x4ee1d9ed, 0x93403fbe, 0xce6f8640, 0x4e3855e3, 0x6f76fe23, 0x112466e8, 0x1e358a90, 0x7f45272c, 0x6ea19a9d, 0x8a696350, 0x1e3900f6, 0x5e61c866, 0x0e3fbfd0, 0x5ee09ad0, 0x0e651d27, 0x4dffc35e, 0x2e20c6ce, 0x0fbe118d, 0x1e656a15, 0xd1357365, 0x0e20a847, 0xce4a835c, 0x4e203905, 0x2e60090d, 0x7f4a27bb, 0x1e64c316, 0xce7d86a4, 0x7ebded2d, 0x6e70a97e, 0x4eb9a42b, 0x0e209bef, 0x6f151730, 0x0e7e30f7, 0x4e724509, 0xd503375f, 0xce58b6ae, 0x5e21a9b8, 0xcb2ca538, 0x5ac01131, 0x6ea19a24, 0xeb40c8b3, 0xc8df7d65, 0x78108341, 0x3218ab9b, 0x0f3da7dd, 0x2e003089, 0x4e21cab5, 0x8aa5c924, 0x1a94950c, 0x123e506f, 0x13117e37, 0x1ee6005b, 0x5ac00647, 0x5eec8cd5, 0x7ef0fb3d, 0x9223272a, 0x5ee0cb02, 0x6e66071d, 0x6ea1dbbf, 0x5e61c903, 0x5ac015ea, 0x93db6206, 0x7e62b5e3, 0x6ea0c87b, 0xdac0090e, 0x48df7d90, 0x6e206ba5, 0x9e2503c2, 0x6e25fc89, 0x4d60e2db, 0x1e3e22a0, 0x2eb81c19, 0x7856ea00, 0x5fbfb22d, 0x1e630244, 0x4e202a83, 0x1f50a722, 0x7f7b55d2, 0x0fae89b9, 0x4e781d73, 0xce738c3a, 0x4f15a591, 0x6e21c7e1, 0x586ff77e, 0x8a5d3592, 0x93401c67, 0x5e61cb86, 0xce6bc2c1, 0x6e393f10, 0x9bb70ec3, 0xdac0098c, 0x4da84b95, 0x7f494476, 0x9ace5c11, 0x7e61ca14, 0x4f7a60ef, 0x1ad32b39, 0x0ea3777f, 0x5e61da7f, 0x4f1404e2, 0x4e3244e2, 0x6e1b1ceb, 0x0dee5aac, 0x4e2f9dc4, 0x5ea1b8c3, 0x1e59f863, 0xd500403f, 0x4e3ae7d0, 0x4ef5c6ea, 0x08dffe3b, 0x6e36f4f6, 0x2e764f29, 0x0e726f23, 0x5f42375b, 0x7f71fc40, 0x6e618aad, 0x93403e5b, 0x0e205976, 0x0e7250c4, 0x6eb0abc9, 0x2e2049f0, 0x5f14754d, 0x7f6ce468, 0x6f950bbe, 0x6e31aa47, 0x4eb83396, 0x0dccc952, 0x2ea1ca90, 0xce69c701, 0xb0bed69e, 0x7c5dec39, 0x4e2868a2, 0x0e591b08, 0x5f34e6dd, 0x3a449184, 0x5e3ce6de, 0x4ea149b7, 0x4e7ad29b, 0xba198503, 0x1f683e8f, 0xfa52f2a7, 0x6e30dffc, 0x4e6c3d17, 0x2eae3248, 0xd503349f, 0x1e60002c, 0x0f180680, 0x9e240049, 0x6f75774e, 0xa90d8678, 0x9ad924c4, 0x7eb0f85b, 0x0e205aaf, 0x7ee08899, 0x5f4bffd8, 0x1b0ff5f3, 0x4ee11dcd, 0x2e218948, 0x0dcb2733, 0x4eac107c, 0x4ea04a53, 0x4e287b44, 0x0e60b82a, 0x5ee0ebbc, 0xce454ff1, 0x5e1761e7, 0x5e09202f, 0x0e0c0754, 0x1e72e6b9, 0x7e21da70, 0x0fbdb20c, 0x5efb8c84, 0xd500401f, 0x3a47526e, 0x1e680acf, 0x7f7375fc, 0xf80522da, 0x4ee60c02, 0x4d40c2e7, 0x6f89096b, 0x7ee1bb6e, 0x5e280b4a, 0x1e3120c8, 0x7eb2ef96, 0x4fd012dd, 0x0f3027ef, 0x4e2078a8, 0xd503201f, 0x2e2312d9, 0x6ebf1c6e, 0x5ee1f8df, 0x4e607a46, 0x6e30c877, 0x6c09d2d1, 0x4e61abd8, 0x0e35267e, 0x6ac17728, 0x0e861aa0, 0x6f63fe26, 0x6f157628, 0x6f30a5f9, 0x4d60cc0c, 0x4e21cb59, 0x2e68a3fb, 0x7efae601, 0x6ea0f82c, 0x9b25ec12, 0x1a1a0305, 0x0e043fe1, 0x6e73c0ed, 0x6ea1b8c0, 0x7e20380b, 0x0f0534e8, 0x1f56bc7d, 0xba0c0128, 0x1e672160, 0x6e7b259b, 0x7ee07b5d, 0x9a820443, 0x4e040581, 0x2f1d87e8, 0x1acd2f5b, 0x6e20794f, 0x2e6a3c93, 0xc8dffe13, 0xce5ab1c6, 0x6eea55f6, 0x4ea039b3, 0x0d602fec, 0x2e246e2f, 0x7857be39, 0xb80608fb, 0x1e67c017, 0x9bcf7f63, 0x0f92d857, 0x5e0812f7, 0x1e210172, 0x7e6128e9, 0x7ea94d41, 0x981179e1, 0x1effb018, 0x2e600828, 0x0eb9c6b2, 0x6ee1baae, 0x4ea0db28, 0x2ea1487b, 0x4ea6c7f0, 0x2e2374c7, 0x7e30d8dd, 0xb9991fa7, 0x4e791e3e, 0x889f7c4b, 0x0e6c753c, 0x1e740ad1, 0x1e244324, 0x1ef33010, 0x5ac01102, 0x9bd97fba, 0x6e290143, 0x1e2220d8, 0x4d8d5aee, 0x6f28570b, 0xfa4ab0c1, 0xdac00b14, 0x7ea1a90e, 0x2e3027d8, 0x6f25a733, 0x4e61a96e, 0x4e1a2fcb, 0x0e22fe0a, 0xc8df7cd0, 0x5e280a55, 0x4e012b20, 0x7e70dbf4, 0x520c5a4e, 0x6ea6c57f, 0x0e861af8, 0xd503233f, 0x889ffe3c, 0x5e274ea9, 0x4e21a89a, 0x0e170c02, 0x6efd4c0b, 0xd5033ebf, 0x6e61a92c, 0x2e205b72, 0x789fb828, 0x0e626e94, 0x2ea6724c, 0x9a10028b, 0x2c6c51fc, 0x5a9de6b9, 0x6e6881f3, 0x5ee0ea6b, 0x0faec36e, 0x0e955bca, 0x1acf206d, 0x7f6f571b, 0x4e286930, 0x12b41ceb, 0x1e770b7a, 0x0ea18ac2, 0x5e282aaf, 0xf2b7fa1e, 0x1ac34311, 0x13167d11, 0x4ea63412, 0x6e758038, 0x2f1d85d6, 0x0f275480, 0x0ead6c71, 0x6e204b69, 0x1e6303f4, 0x5e0031ef, 0x13001e40, 0x7a16006f, 0x6e6ae4c0, 0x0f0f242f, 0x6e674f50, 0x4e606b7a, 0x7e6ee684, 0x1e6b5957, 0x7ea1bbab, 0x7ea0b6cb, 0xce4da241, 0x0ea1b953, 0x0eb2af4b, 0x9ac309d0, 0x6e61d8bd, 0x5ea0d890, 0x5f47d1e7, 0xfa5981ca, 0x1e7f7959, 0x6ef24dd8, 0x0e0a41d1, 0x5ee0e898, 0x4e6038e2, 0x13097d65, 0x6f839088, 0x9e290265, 0x0e208824, 0x2e65af79, 0x6f36a561, 0x9ad3204b, 0x0e21482e, 0x1e24431d, 0xd50330bf, 0x0df641aa, 0x6e602a83, 0xce30505f, 0x5e025238, 0xd503201f, 0x4e608880, 0x4de9c38d, 0x5e0f5348, 0x6eb48ca9, 0x50fda31b, 0x2e251eec, 0x7842ba50, 0xd8a1cd86, 0x2ea09862, 0x0ea09983, 0x2ea333b0, 0x0ea6032c, 0x4f94801b, 0x7e3ee57d, 0x38135e4f, 0xd8fdd9dd, 0x5ee0fcde, 0x9e64033d, 0x6e37f547, 0x6e3dd7ef, 0x13003f3d, 0x0e602f9f, 0x4e7ad014, 0x9b3b6857, 0x5ea0cb67, 0x0eb31c9f, 0x4e7c5372, 0x5e61b8c0, 0x0ea19b23, 0x0ee6e1df, 0x6e63a626, 0x2f139405, 0x7eb0f96d, 0x9e588c63, 0x2e714c3a, 0x6e8c941e, 0x0f61b331, 0x6f01f625, 0x4e78d4ea, 0x6f403709, 0x1a0300da, 0xda0102c8, 0x7e61d9fd, 0xb89469bb, 0x0c838780, 0x2e60a590, 0x4dfd29e1, 0x4e150f2e, 0xce2810bc, 0x5f541591, 0x9ee60259, 0x2eb40e56, 0x5e014027, 0x2ef71faf, 0x4e2d452f, 0x5ee0a813, 0x4eb03301, 0x38443acf, 0x6eabd502, 0x0e2ee71e, 0x5a960364, 0xce7ec596, 0x7efbed09, 0x4ef42ea2, 0x0eb30ea5, 0x5ee0d9f8, 0x6f513552, 0xf89eb3fa, 0x7ea2eca6, 0x9b00cc19, 0xf897409e, 0x1e73485f, 0x381afa77, 0x0f169f3b, 0x5ee1aa70, 0x5e1803ee, 0x0dbf5a4c, 0xce78c7a6, 0x9b0b260c, 0x2ef8fa19, 0x6e70aa4b, 0xce45b805, 0x2ea08e86, 0x4ee0bafd, 0x2ea09a1f, 0x4e218900, 0x6e744f13, 0xce518653, 0xf81b7a68, 0xce45ac5e, 0x7e62e416, 0x1a1b02b6, 0x7e21db48, 0x381daaaf, 0x6b2c0987, 0x0e2ec651, 0x4eae8502, 0x9bde7ca0, 0x6f47201f, 0x7e61a8a3, 0x6e60d5db, 0x4e2879de, 0xf81d194e, 0x4f1b8d05, 0x4d0048b2, 0x6e203be9, 0x4e3e7eb1, 0x0e260ef8, 0x2e688518, 0x7e3fec46, 0xdac00843, 0xf85c8917, 0x2e212a0f, 0x0e8196da, 0xd503359f, 0xce4c81f2, 0x6ee19992, 0x6e21ca79, 0x4d40c1d2, 0x4f5816ef, 0x4e34c3ea, 0x4df7c283, 0x7ef7eeb6, 0x18e276ce, 0xab0d21c0, 0xd5032f7f, 0x4ea00dbf, 0x5ac01251, 0xd0121955, 0x7f1495e4, 0x7ef0fa11, 0x5e24dd9c, 0x9add25b5, 0x0eb2bdef, 0x9e1977c7, 0x6f4b26bd, 0x0e200a9c, 0x9b4f7c00, 0x0ea0392e, 0x7e212a2c, 0x0b248b90, 0x1acc27a1, 0x2e701c90, 0x5ee1b870, 0x5e280aba, 0x5ea0780e, 0x1e264246, 0x4e052d04, 0x0e731dc4, 0xce461997, 0x9a9e9413, 0x3d462048, 0x5ea1fac5, 0x2ea0c8c4, 0x9a030280, 0x2ebda4b8, 0x5eef8614, 0x6eadc4e0, 0xbd035a8f, 0x4e606b84, 0x4eb1aba1, 0x4e286928, 0x4e2858cc, 0x9add0ce9, 0x4e070d65, 0x5fd399d5, 0x0f03fde7, 0x6ee90c74, 0x4ef8e31e, 0x381d986a, 0x5ea0ebf4, 0x5ea0d87e, 0x2e76ac9e, 0x6eb36cd4, 0x2e6e1c4c, 0x2e2feebc, 0x1ace4b03, 0x5ee0db12, 0x5ea0e9b1, 0x2e1c32d5, 0x5fa49a09, 0x0e258737, 0x7e21ca8e, 0xce4f9988, 0x5f7f56a6, 0x0e739766, 0x4e28586c, 0x6e619908, 0xd500401f, 0xf88b9252, 0x6e251c8e, 0x9e20015b, 0x7f1486b9, 0x717c339b, 0x1f31ff70, 0x4ea0eb62, 0x9acb0926, 0x489f7d85, 0x4e209b54, 0x2e84cf03, 0x2e65946c, 0x0e7d80cd, 0xc8dffecc, 0xce668bd8, 0x6e2188af, 0xeb4ada34, 0x2b25ec33, 0x0d40e6e7, 0x4eb2c757, 0x4ec82ad0, 0x7e21cb0a, 0x0e21a847, 0x4e0b1ec0, 0x381e6ac0, 0x6e61c8f5, 0x0f10071c, 0x2ee21daa, 0x5e61ab31, 0x6e218892, 0x2e7e7cb5, 0x6f2826aa, 0x7f6b54df, 0x4eaa2620, 0xdac00034, 0x4f6477be, 0x7e6148ea, 0x4eef1f57, 0x78459aeb, 0x2ebc3f10, 0x2e35f4eb, 0x4fbf19ce, 0xd8d0e58e, 0x2e21bbc7, 0x6ee0cab6, 0x9bc57e3f, 0x2f854037, 0x4e92181c, 0x6e6d1f89, 0x0f305545, 0x4ee19a57, 0x0e887bdf, 0x5e1a4185, 0x7ef0c821, 0x2eb6607c, 0x2ea0d9b8, 0x9e0380f4, 0x2ebf1c83, 0x1e62597d, 0x7f6e2548, 0x5ac00205, 0x4e616adb, 0xce638b8c, 0x5e1653cf, 0x2e6069be, 0x0e2ac641, 0x1e33c76f, 0xce44956d, 0x9bb90d31, 0x1e24c20a, 0x7ee038c1, 0x93407e5e, 0x4e280127, 0xc8df7f7d, 0xba42f263, 0x1e6f199c, 0x6e212889, 0x6e92f60e, 0x6ebdc499, 0x8b9acbf8, 0x4d40c581, 0x3a020250, 0x6e6a6716, 0x9248403b, 0x9081ffea, 0x4e603856, 0x9ad1242b, 0x6f270579, 0x1a070349, 0xcec08133, 0xd503305f, 0x5a1a00ca, 0x2e60b8a2, 0x0e5f28fd, 0x0e31a3da, 0x7e61cbc1, 0xd503399f, 0x5f5e54aa, 0x0eb8bdea, 0x4eba8f10, 0x4e2a2e60, 0x2f3da7d6, 0x1e58e297, 0x6e71aa3e, 0x6b86701a, 0xce4fa5e6, 0x4ee7c463, 0x8a79307f, 0x0ebea541, 0x2e218af4, 0x4e774f8a, 0xb9b95dc5, 0x6e61abd5, 0x4dd1e814, 0x4da72098, 0x98307582, 0x3a512101, 0x7ef95497, 0x1ace5535, 0x5a0c0349, 0x4e28581b, 0x6ebf1c02, 0x5ea1da23, 0x1e274314, 0x5e25dd29, 0x6e75f594, 0x6eaf6ed5, 0x4e214abe, 0x4e064172, 0x2e21c8f4, 0xf84c5b08, 0x1e244312, 0x14000000}; for (size_t i = 0; i < code32.size(); ++i) - env.MemoryWrite(100 + i, code32[i], sizeof(u32)); + env.MemoryWrite32(100 + i, code32[i]); env.ignore_invalid_insn = true; jit.SetRegister(0, 0x866524401a1d4e47); diff --git a/src/dynarmic/tests/A64/fibonacci.cpp b/src/dynarmic/tests/A64/fibonacci.cpp index 8816a89b1c..f52a04e217 100644 --- a/src/dynarmic/tests/A64/fibonacci.cpp +++ b/src/dynarmic/tests/A64/fibonacci.cpp @@ -25,55 +25,48 @@ public: u64 ticks_left = 0; ::Common::unordered_map memory{}; - u64 MemoryRead(u64 vaddr, size_t size) override { - switch (size) { - case sizeof(u64): - return MemoryRead(vaddr, sizeof(u32)) - | MemoryRead(vaddr + sizeof(u32), sizeof(u32)) << 32; - case sizeof(u32): - return MemoryRead(vaddr, sizeof(u16)) - | MemoryRead(vaddr + sizeof(u16), sizeof(u16)) << 16; - case sizeof(u16): - return MemoryRead(vaddr, sizeof(u8)) - | MemoryRead(vaddr + sizeof(u8), sizeof(u8)) << 8; - case sizeof(u8): - return memory[vaddr]; - default: - std::abort(); - } + u8 MemoryRead8(u64 vaddr) override { + return memory[vaddr]; + } + + u16 MemoryRead16(u64 vaddr) override { + return u16(MemoryRead8(vaddr)) | u16(MemoryRead8(vaddr + 1)) << 8; + } + + u32 MemoryRead32(u64 vaddr) override { + return u32(MemoryRead16(vaddr)) | u32(MemoryRead16(vaddr + 2)) << 16; + } + + u64 MemoryRead64(u64 vaddr) override { + return u64(MemoryRead32(vaddr)) | u64(MemoryRead32(vaddr + 4)) << 32; } std::array MemoryRead128(u64 vaddr) override { - return { - MemoryRead(vaddr, sizeof(u64)), - MemoryRead(vaddr + sizeof(u64), sizeof(u64)) - }; + return {MemoryRead64(vaddr), MemoryRead64(vaddr + 8)}; } - void MemoryWrite(Dynarmic::A64::VAddr vaddr, u64 value, size_t size) override { - switch (size) { - case sizeof(u64): - MemoryWrite(vaddr, u32(value), sizeof(u32)); - MemoryWrite(vaddr + 4, u32(value >> 32), sizeof(u32)); - break; - case sizeof(u32): - MemoryWrite(vaddr, u16(value), sizeof(u16)); - MemoryWrite(vaddr + 2, u16(value >> 16), sizeof(u16)); - break; - case sizeof(u16): - MemoryWrite(vaddr, u8(value), sizeof(u8)); - MemoryWrite(vaddr + 1, u8(value >> 8), sizeof(u8)); - break; - case sizeof(u8): - memory[vaddr] = value; - break; - default: - std::abort(); - } + void MemoryWrite8(u64 vaddr, u8 value) override { + memory[vaddr] = value; } + + void MemoryWrite16(u64 vaddr, u16 value) override { + MemoryWrite8(vaddr, u8(value)); + MemoryWrite8(vaddr + 1, u8(value >> 8)); + } + + void MemoryWrite32(u64 vaddr, u32 value) override { + MemoryWrite16(vaddr, u16(value)); + MemoryWrite16(vaddr + 2, u16(value >> 16)); + } + + void MemoryWrite64(u64 vaddr, u64 value) override { + MemoryWrite32(vaddr, u32(value)); + MemoryWrite32(vaddr + 4, u32(value >> 32)); + } + void MemoryWrite128(u64 vaddr, std::array value) override { - MemoryWrite(vaddr, value[0], sizeof(u64)); - MemoryWrite(vaddr + 8, value[1], sizeof(u64)); + MemoryWrite64(vaddr, value[0]); + MemoryWrite64(vaddr + 8, value[1]); } void CallSVC(u32) override { @@ -142,9 +135,9 @@ TEST_CASE("A64: fibonacci", "[a64]") { code.RET(); for (size_t i = 0; i < 1024; i++) { - env.MemoryWrite(i * 4, instructions[i], sizeof(u32)); + env.MemoryWrite32(i * 4, instructions[i]); } - env.MemoryWrite(8888, 0xd4200000, sizeof(u32)); + env.MemoryWrite32(8888, 0xd4200000); cpu.SetRegister(30, 8888); cpu.SetRegister(0, 10); diff --git a/src/dynarmic/tests/A64/testenv.h b/src/dynarmic/tests/A64/testenv.h index 11aa6389f8..f4ddc63a6b 100644 --- a/src/dynarmic/tests/A64/testenv.h +++ b/src/dynarmic/tests/A64/testenv.h @@ -12,7 +12,6 @@ #include "common/assert.h" #include "common/common_types.h" #include "dynarmic/interface/A64/a64.h" -#include "dynarmic/interface/A64/config.h" using Vector = Dynarmic::A64::Vector; @@ -35,79 +34,64 @@ public: return code_mem[index]; } - u64 MemoryRead(u64 vaddr, size_t size) override { - switch (size) { - case sizeof(u64): - return MemoryRead(vaddr, sizeof(u32)) - | MemoryRead(vaddr + sizeof(u32), sizeof(u32)) << 32; - case sizeof(u32): - return MemoryRead(vaddr, sizeof(u16)) - | MemoryRead(vaddr + sizeof(u16), sizeof(u16)) << 16; - case sizeof(u16): - return MemoryRead(vaddr, sizeof(u8)) - | MemoryRead(vaddr + sizeof(u8), sizeof(u8)) << 8; - case sizeof(u8): { - if (IsInCodeMem(vaddr)) - return reinterpret_cast(code_mem.data())[vaddr - code_mem_start_address]; - if (auto const it = modified_memory.find(vaddr); it != modified_memory.end()) - return it->second; - return u8(vaddr); - } - default: - std::abort(); + std::uint8_t MemoryRead8(u64 vaddr) override { + if (IsInCodeMem(vaddr)) { + return reinterpret_cast(code_mem.data())[vaddr - code_mem_start_address]; } + if (auto const it = modified_memory.find(vaddr); it != modified_memory.end()) + return it->second; + return u8(vaddr); + } + std::uint16_t MemoryRead16(u64 vaddr) override { + return u16(MemoryRead8(vaddr)) | u16(MemoryRead8(vaddr + 1)) << 8; + } + std::uint32_t MemoryRead32(u64 vaddr) override { + return u32(MemoryRead16(vaddr)) | u32(MemoryRead16(vaddr + 2)) << 16; + } + std::uint64_t MemoryRead64(u64 vaddr) override { + return u64(MemoryRead32(vaddr)) | u64(MemoryRead32(vaddr + 4)) << 32; } - Vector MemoryRead128(u64 vaddr) override { - return { - MemoryRead(vaddr, sizeof(u64)), - MemoryRead(vaddr + 8, sizeof(u64)) - }; + return {MemoryRead64(vaddr), MemoryRead64(vaddr + 8)}; } - void MemoryWrite(Dynarmic::A64::VAddr vaddr, u64 value, size_t size) override { - switch (size) { - case sizeof(u64): - MemoryWrite(vaddr, u32(value), sizeof(u32)); - MemoryWrite(vaddr + 4, u32(value >> 32), sizeof(u32)); - break; - case sizeof(u32): - MemoryWrite(vaddr, u16(value), sizeof(u16)); - MemoryWrite(vaddr + 2, u16(value >> 16), sizeof(u16)); - break; - case sizeof(u16): - MemoryWrite(vaddr, u8(value), sizeof(u8)); - MemoryWrite(vaddr + 1, u8(value >> 8), sizeof(u8)); - break; - case sizeof(u8): - if (IsInCodeMem(vaddr)) { - code_mem_modified_by_guest = true; - } - modified_memory[vaddr] = value; - break; - default: - std::abort(); + void MemoryWrite8(u64 vaddr, std::uint8_t value) override { + if (IsInCodeMem(vaddr)) { + code_mem_modified_by_guest = true; } + modified_memory[vaddr] = value; + } + void MemoryWrite16(u64 vaddr, std::uint16_t value) override { + MemoryWrite8(vaddr, u8(value)); + MemoryWrite8(vaddr + 1, u8(value >> 8)); + } + void MemoryWrite32(u64 vaddr, std::uint32_t value) override { + MemoryWrite16(vaddr, u16(value)); + MemoryWrite16(vaddr + 2, u16(value >> 16)); + } + void MemoryWrite64(u64 vaddr, std::uint64_t value) override { + MemoryWrite32(vaddr, u32(value)); + MemoryWrite32(vaddr + 4, u32(value >> 32)); } void MemoryWrite128(u64 vaddr, Vector value) override { - MemoryWrite(vaddr, value[0], sizeof(u64)); - MemoryWrite(vaddr + 8, value[1], sizeof(u64)); + MemoryWrite64(vaddr, value[0]); + MemoryWrite64(vaddr + 8, value[1]); } bool MemoryWriteExclusive8(u64 vaddr, std::uint8_t value, [[maybe_unused]] std::uint8_t expected) override { - MemoryWrite(vaddr, value, sizeof(u8)); + MemoryWrite8(vaddr, value); return true; } bool MemoryWriteExclusive16(u64 vaddr, std::uint16_t value, [[maybe_unused]] std::uint16_t expected) override { - MemoryWrite(vaddr, value, sizeof(u16)); + MemoryWrite16(vaddr, value); return true; } bool MemoryWriteExclusive32(u64 vaddr, std::uint32_t value, [[maybe_unused]] std::uint32_t expected) override { - MemoryWrite(vaddr, value, sizeof(u32)); + MemoryWrite32(vaddr, value); return true; } bool MemoryWriteExclusive64(u64 vaddr, std::uint64_t value, [[maybe_unused]] std::uint64_t expected) override { - MemoryWrite(vaddr, value, sizeof(u64)); + MemoryWrite64(vaddr, value); return true; } bool MemoryWriteExclusive128(u64 vaddr, Vector value, [[maybe_unused]] Vector expected) override { @@ -161,46 +145,52 @@ public: return read(vaddr); } - u64 MemoryRead(u64 vaddr, size_t size) override { - switch (size) { - case sizeof(u64): return read(vaddr); - case sizeof(u32): return read(vaddr); - case sizeof(u16): return read(vaddr); - case sizeof(u8): return read(vaddr); - default: std::abort(); - } + std::uint8_t MemoryRead8(u64 vaddr) override { + return read(vaddr); + } + std::uint16_t MemoryRead16(u64 vaddr) override { + return read(vaddr); + } + std::uint32_t MemoryRead32(u64 vaddr) override { + return read(vaddr); + } + std::uint64_t MemoryRead64(u64 vaddr) override { + return read(vaddr); } Vector MemoryRead128(u64 vaddr) override { return read(vaddr); } - void MemoryWrite(u64 vaddr, std::uint64_t value, size_t size) override { - switch (size) { - case sizeof(u64): return write(vaddr, u64(value)); - case sizeof(u32): return write(vaddr, u32(value)); - case sizeof(u16): return write(vaddr, u16(value)); - case sizeof(u8): return write(vaddr, u8(value)); - default: std::abort(); - } + void MemoryWrite8(u64 vaddr, std::uint8_t value) override { + write(vaddr, value); + } + void MemoryWrite16(u64 vaddr, std::uint16_t value) override { + write(vaddr, value); + } + void MemoryWrite32(u64 vaddr, std::uint32_t value) override { + write(vaddr, value); + } + void MemoryWrite64(u64 vaddr, std::uint64_t value) override { + write(vaddr, value); } void MemoryWrite128(u64 vaddr, Vector value) override { write(vaddr, value); } bool MemoryWriteExclusive8(u64 vaddr, std::uint8_t value, [[maybe_unused]] std::uint8_t expected) override { - MemoryWrite(vaddr, value, sizeof(u8)); + MemoryWrite8(vaddr, value); return true; } bool MemoryWriteExclusive16(u64 vaddr, std::uint16_t value, [[maybe_unused]] std::uint16_t expected) override { - MemoryWrite(vaddr, value, sizeof(u16)); + MemoryWrite16(vaddr, value); return true; } bool MemoryWriteExclusive32(u64 vaddr, std::uint32_t value, [[maybe_unused]] std::uint32_t expected) override { - MemoryWrite(vaddr, value, sizeof(u32)); + MemoryWrite32(vaddr, value); return true; } bool MemoryWriteExclusive64(u64 vaddr, std::uint64_t value, [[maybe_unused]] std::uint64_t expected) override { - MemoryWrite(vaddr, value, sizeof(u64)); + MemoryWrite64(vaddr, value); return true; } bool MemoryWriteExclusive128(u64 vaddr, Vector value, [[maybe_unused]] Vector expected) override { diff --git a/src/dynarmic/tests/print_info.cpp b/src/dynarmic/tests/print_info.cpp index 87f4438ad4..5b1c5cfe63 100644 --- a/src/dynarmic/tests/print_info.cpp +++ b/src/dynarmic/tests/print_info.cpp @@ -18,7 +18,6 @@ #include #include #include -#include "dynarmic/frontend/A32/translate/translate_callbacks.h" #include "dynarmic/mcl/bit.hpp" #include "common/common_types.h" @@ -119,47 +118,36 @@ public: u64 ticks_left = 0; std::map memory; - u64 MemoryRead(Dynarmic::A32::VAddr vaddr, size_t size) override { - switch (size) { - case sizeof(u64): - return MemoryRead(vaddr, sizeof(u32)) - | MemoryRead(vaddr + sizeof(u32), sizeof(u32)) << 32; - case sizeof(u32): - return MemoryRead(vaddr, sizeof(u16)) - | MemoryRead(vaddr + sizeof(u16), sizeof(u16)) << 16; - case sizeof(u16): - return MemoryRead(vaddr, sizeof(u8)) - | MemoryRead(vaddr + sizeof(u8), sizeof(u8)) << 8; - case sizeof(u8): { - if (auto const it = memory.find(vaddr); it != memory.end()) - return it->second; - return 0; - } - default: - std::abort(); + std::uint8_t MemoryRead8(u32 vaddr) override { + if (auto iter = memory.find(vaddr); iter != memory.end()) { + return iter->second; } + return 0; + } + std::uint16_t MemoryRead16(u32 vaddr) override { + return u16(MemoryRead8(vaddr)) | u16(MemoryRead8(vaddr + 1)) << 8; + } + std::uint32_t MemoryRead32(u32 vaddr) override { + return u32(MemoryRead16(vaddr)) | u32(MemoryRead16(vaddr + 2)) << 16; + } + std::uint64_t MemoryRead64(u32 vaddr) override { + return u64(MemoryRead32(vaddr)) | u64(MemoryRead32(vaddr + 4)) << 32; } - void MemoryWrite(Dynarmic::A32::VAddr vaddr, u64 value, size_t size) override { - switch (size) { - case sizeof(u64): - MemoryWrite(vaddr, u32(value), sizeof(u32)); - MemoryWrite(vaddr + 4, u32(value >> 32), sizeof(u32)); - break; - case sizeof(u32): - MemoryWrite(vaddr, u16(value), sizeof(u16)); - MemoryWrite(vaddr + 2, u16(value >> 16), sizeof(u16)); - break; - case sizeof(u16): - MemoryWrite(vaddr, u8(value), sizeof(u8)); - MemoryWrite(vaddr + 1, u8(value >> 8), sizeof(u8)); - break; - case sizeof(u8): - memory[vaddr] = value; - break; - default: - std::abort(); - } + void MemoryWrite8(u32 vaddr, std::uint8_t value) override { + memory[vaddr] = value; + } + void MemoryWrite16(u32 vaddr, std::uint16_t value) override { + MemoryWrite8(vaddr, static_cast(value)); + MemoryWrite8(vaddr + 1, static_cast(value >> 8)); + } + void MemoryWrite32(u32 vaddr, std::uint32_t value) override { + MemoryWrite16(vaddr, static_cast(value)); + MemoryWrite16(vaddr + 2, static_cast(value >> 16)); + } + void MemoryWrite64(u32 vaddr, std::uint64_t value) override { + MemoryWrite32(vaddr, static_cast(value)); + MemoryWrite32(vaddr + 4, static_cast(value >> 32)); } void CallSVC(std::uint32_t swi) override { @@ -243,7 +231,7 @@ void ExecuteA32Instruction(u32 instruction) { if (const auto address = get_value()) { fmt::print("value: "); if (const auto value = get_value()) { - env.MemoryWrite(*address, *value, sizeof(u32)); + env.MemoryWrite32(*address, *value); fmt::print("> mem[{:#08x}] = {:#08x}\n", *address, *value); } } @@ -259,8 +247,8 @@ void ExecuteA32Instruction(u32 instruction) { cpu.SetFpscr(fpscr); const u32 initial_pc = regs[15]; - env.MemoryWrite(initial_pc + 0, instruction, sizeof(u32)); - env.MemoryWrite(initial_pc + 4, 0xEAFFFFFE, sizeof(u32)); // B +0 + env.MemoryWrite32(initial_pc + 0, instruction); + env.MemoryWrite32(initial_pc + 4, 0xEAFFFFFE); // B +0 cpu.Run(); fmt::print("{}", fmt::join(cpu.Disassemble(), "\n")); diff --git a/src/dynarmic/tests/unicorn_emu/a32_unicorn.cpp b/src/dynarmic/tests/unicorn_emu/a32_unicorn.cpp index 1fe09cdef0..c0e1e13d9b 100644 --- a/src/dynarmic/tests/unicorn_emu/a32_unicorn.cpp +++ b/src/dynarmic/tests/unicorn_emu/a32_unicorn.cpp @@ -290,7 +290,7 @@ bool A32Unicorn::UnmappedMemoryHook(uc_engine* uc, uc_mem_type auto page = std::make_unique(); page->address = base_address; for (size_t i = 0; i < page->data.size(); ++i) - page->data[i] = u8(this_->testenv.MemoryRead(u32(base_address + i), sizeof(u8))); + page->data[i] = this_->testenv.MemoryRead8(static_cast(base_address + i)); uc_err err = uc_mem_map_ptr(uc, base_address, page->data.size(), permissions, page->data.data()); if (err == UC_ERR_MAP) @@ -321,7 +321,24 @@ bool A32Unicorn::UnmappedMemoryHook(uc_engine* uc, uc_mem_type template bool A32Unicorn::MemoryWriteHook(uc_engine* /*uc*/, uc_mem_type /*type*/, u32 start_address, int size, u64 value, void* user_data) { auto* this_ = static_cast(user_data); - this_->testenv.MemoryWrite(start_address, value, size); + + switch (size) { + case 1: + this_->testenv.MemoryWrite8(start_address, static_cast(value)); + break; + case 2: + this_->testenv.MemoryWrite16(start_address, static_cast(value)); + break; + case 4: + this_->testenv.MemoryWrite32(start_address, static_cast(value)); + break; + case 8: + this_->testenv.MemoryWrite64(start_address, value); + break; + default: + UNREACHABLE(); + } + return true; } diff --git a/src/dynarmic/tests/unicorn_emu/a64_unicorn.cpp b/src/dynarmic/tests/unicorn_emu/a64_unicorn.cpp index 4afb6a6859..c9a194d50a 100644 --- a/src/dynarmic/tests/unicorn_emu/a64_unicorn.cpp +++ b/src/dynarmic/tests/unicorn_emu/a64_unicorn.cpp @@ -197,7 +197,7 @@ bool A64Unicorn::UnmappedMemoryHook(uc_engine* uc, uc_mem_type /*type*/, u64 sta auto page = std::make_unique(); page->address = base_address; for (size_t i = 0; i < page->data.size(); ++i) - page->data[i] = u8(this_->testenv.MemoryRead(base_address + i, sizeof(u8))); + page->data[i] = this_->testenv.MemoryRead8(base_address + i); uc_err err = uc_mem_map_ptr(uc, base_address, page->data.size(), permissions, page->data.data()); if (err == UC_ERR_MAP) @@ -227,6 +227,23 @@ bool A64Unicorn::UnmappedMemoryHook(uc_engine* uc, uc_mem_type /*type*/, u64 sta bool A64Unicorn::MemoryWriteHook(uc_engine* /*uc*/, uc_mem_type /*type*/, u64 start_address, int size, u64 value, void* user_data) { auto* this_ = static_cast(user_data); - this_->testenv.MemoryWrite(start_address, value, size); + + switch (size) { + case 1: + this_->testenv.MemoryWrite8(start_address, static_cast(value)); + break; + case 2: + this_->testenv.MemoryWrite16(start_address, static_cast(value)); + break; + case 4: + this_->testenv.MemoryWrite32(start_address, static_cast(value)); + break; + case 8: + this_->testenv.MemoryWrite64(start_address, value); + break; + default: + UNREACHABLE(); + } + return true; } diff --git a/src/frontend_common/content_manager.h b/src/frontend_common/content_manager.h index 6d79098efa..4f3112e3fb 100644 --- a/src/frontend_common/content_manager.h +++ b/src/frontend_common/content_manager.h @@ -1,4 +1,4 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project +// SPDX-FileCopyrightText: Copyright 2025 Eden Emulator Project // SPDX-License-Identifier: GPL-3.0-or-later // SPDX-FileCopyrightText: 2024 yuzu Emulator Project @@ -163,9 +163,7 @@ inline InstallResult InstallNSP(Core::System& system, FileSys::VfsFilesystem& vf std::shared_ptr nsp; FileSys::VirtualFile file = vfs.OpenFile(filename, FileSys::OpenMode::Read); - const auto lower_name = boost::to_lower_copy(file->GetName()); - - if (lower_name.ends_with("nsp") || lower_name.ends_with("nsz")) { + if (boost::to_lower_copy(file->GetName()).ends_with("nsp")) { nsp = std::make_shared(file); if (nsp->IsExtractedType()) { return InstallResult::Failure; diff --git a/src/hid_core/frontend/emulated_controller.cpp b/src/hid_core/frontend/emulated_controller.cpp index 7b4af13232..1092970ee8 100644 --- a/src/hid_core/frontend/emulated_controller.cpp +++ b/src/hid_core/frontend/emulated_controller.cpp @@ -761,6 +761,9 @@ void EmulatedController::StartMotionCalibration() { } void EmulatedController::SetButton(const Common::Input::CallbackStatus& callback, std::size_t index, Common::UUID uuid) { + const auto player_index = Service::HID::NpadIdTypeToIndex(npad_id_type); + const auto& player = Settings::values.players.GetValue()[player_index]; + if (index >= controller.button_values.size()) { return; } @@ -913,10 +916,21 @@ void EmulatedController::SetButton(const Common::Input::CallbackStatus& callback break; } - const auto player_index = Service::HID::NpadIdTypeToIndex(npad_id_type); - const auto& player = Settings::values.players.GetValue()[player_index]; - if (player.connected) { - Connect(); + if (!is_connected) { + if (npad_type == NpadStyleIndex::Handheld) { + if (npad_id_type == NpadIdType::Handheld) { + Connect(); + controller_connected[player_index] = true; + } + } else if (npad_type != NpadStyleIndex::Handheld) { + if (npad_id_type == NpadIdType::Player1) { + Connect(); + controller_connected[player_index] = true; + } else if (player.connected && !controller_connected[player_index]) { + Connect(); + controller_connected[player_index] = true; + } + } } TriggerOnChange(ControllerTriggerType::Button, true); diff --git a/src/hid_core/frontend/emulated_controller.h b/src/hid_core/frontend/emulated_controller.h index 80ea633c63..7a2291b8a4 100644 --- a/src/hid_core/frontend/emulated_controller.h +++ b/src/hid_core/frontend/emulated_controller.h @@ -22,6 +22,7 @@ #include "common/settings.h" #include "common/vector_math.h" #include "hid_core/frontend/motion_input.h" +#include "hid_core/hid_core.h" #include "hid_core/hid_types.h" #include "hid_core/irsensor/irs_types.h" @@ -584,6 +585,7 @@ private: std::array last_vibration_value{DEFAULT_VIBRATION_VALUE, DEFAULT_VIBRATION_VALUE}; std::array last_vibration_timepoint{}; + std::array controller_connected{}; // Atomically synched values std::atomic npad_type{HID::NpadStyleIndex::None}; diff --git a/src/hid_core/resources/npad/npad.cpp b/src/hid_core/resources/npad/npad.cpp index 2b04e2c670..e7a1ee2bf3 100644 --- a/src/hid_core/resources/npad/npad.cpp +++ b/src/hid_core/resources/npad/npad.cpp @@ -45,19 +45,6 @@ NPad::NPad(Core::HID::HIDCore& hid_core_, KernelHelpers::ServiceContext& service AbstractPad{hid_core_.kernel}, }} { - for (std::size_t aruid_index = 0; aruid_index < AruidIndexMax; ++aruid_index) { - for (std::size_t i = 0; i < controller_data[aruid_index].size(); ++i) { - auto& controller = controller_data[aruid_index][i]; - controller.device = hid_core.GetEmulatedControllerByIndex(i); - Core::HID::ControllerUpdateCallback engine_callback{ - .on_change = [this, i, kernel = &hid_core.kernel](Core::HID::ControllerTriggerType type) { - ControllerUpdate(*kernel, type, i); - }, - .is_npad_service = true, - }; - controller.callback_key = controller.device->SetCallback(engine_callback); - } - } for (std::size_t i = 0; i < abstracted_pads.size(); ++i) { abstracted_pads[i].SetNpadId(IndexToNpadIdType(i)); } @@ -106,6 +93,16 @@ Result NPad::Activate(u64 aruid) { for (std::size_t i = 0; i < controller_data[aruid_index].size(); ++i) { auto& controller = controller_data[aruid_index][i]; controller.shared_memory = &data->shared_memory_format->npad.npad_entry[i].internal_state; + controller.device = hid_core.GetEmulatedControllerByIndex(i); + if (!controller.callback_key) { + Core::HID::ControllerUpdateCallback engine_callback{ + .on_change = [this, i](Core::HID::ControllerTriggerType type) { + ControllerUpdate(hid_core.kernel, type, i); + }, + .is_npad_service = true, + }; + controller.callback_key = controller.device->SetCallback(engine_callback); + } } // Prefill controller buffers @@ -401,21 +398,21 @@ void NPad::InitNewlyAddedController(Kernel::KernelCore& kernel, u64 aruid, Core: void NPad::WriteEmptyEntry(NpadInternalState* npad) { NPadGenericState dummy_pad_state{}; NpadGcTriggerState dummy_gc_state{}; - dummy_pad_state.sampling_number = npad->fullkey_lifo.ReadCurrentEntry().state.sampling_number + 1; + dummy_pad_state.sampling_number = npad->fullkey_lifo.ReadCurrentEntry().sampling_number + 1; npad->fullkey_lifo.WriteNextEntry(dummy_pad_state); - dummy_pad_state.sampling_number = npad->handheld_lifo.ReadCurrentEntry().state.sampling_number + 1; + dummy_pad_state.sampling_number = npad->handheld_lifo.ReadCurrentEntry().sampling_number + 1; npad->handheld_lifo.WriteNextEntry(dummy_pad_state); - dummy_pad_state.sampling_number = npad->joy_dual_lifo.ReadCurrentEntry().state.sampling_number + 1; + dummy_pad_state.sampling_number = npad->joy_dual_lifo.ReadCurrentEntry().sampling_number + 1; npad->joy_dual_lifo.WriteNextEntry(dummy_pad_state); - dummy_pad_state.sampling_number = npad->joy_left_lifo.ReadCurrentEntry().state.sampling_number + 1; + dummy_pad_state.sampling_number = npad->joy_left_lifo.ReadCurrentEntry().sampling_number + 1; npad->joy_left_lifo.WriteNextEntry(dummy_pad_state); - dummy_pad_state.sampling_number = npad->joy_right_lifo.ReadCurrentEntry().state.sampling_number + 1; + dummy_pad_state.sampling_number = npad->joy_right_lifo.ReadCurrentEntry().sampling_number + 1; npad->joy_right_lifo.WriteNextEntry(dummy_pad_state); - dummy_pad_state.sampling_number = npad->palma_lifo.ReadCurrentEntry().state.sampling_number + 1; + dummy_pad_state.sampling_number = npad->palma_lifo.ReadCurrentEntry().sampling_number + 1; npad->palma_lifo.WriteNextEntry(dummy_pad_state); - dummy_pad_state.sampling_number = npad->system_ext_lifo.ReadCurrentEntry().state.sampling_number + 1; + dummy_pad_state.sampling_number = npad->system_ext_lifo.ReadCurrentEntry().sampling_number + 1; npad->system_ext_lifo.WriteNextEntry(dummy_pad_state); - dummy_gc_state.sampling_number = npad->gc_trigger_lifo.ReadCurrentEntry().state.sampling_number + 1; + dummy_gc_state.sampling_number = npad->gc_trigger_lifo.ReadCurrentEntry().sampling_number + 1; npad->gc_trigger_lifo.WriteNextEntry(dummy_gc_state); } diff --git a/src/hid_core/resources/npad/npad_types.h b/src/hid_core/resources/npad/npad_types.h index 2f7ac2d4f7..68b803c3d3 100644 --- a/src/hid_core/resources/npad/npad_types.h +++ b/src/hid_core/resources/npad/npad_types.h @@ -1,4 +1,4 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project +// SPDX-FileCopyrightText: Copyright 2025 Eden Emulator Project // SPDX-License-Identifier: GPL-3.0-or-later // SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project @@ -6,8 +6,6 @@ #pragma once -#include - #include "common/bit_field.h" #include "common/common_funcs.h" #include "common/common_types.h" diff --git a/src/input_common/drivers/joycon.cpp b/src/input_common/drivers/joycon.cpp index ded92d3f1d..fb2d75e384 100644 --- a/src/input_common/drivers/joycon.cpp +++ b/src/input_common/drivers/joycon.cpp @@ -1,4 +1,4 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project +// SPDX-FileCopyrightText: Copyright 2025 Eden Emulator Project // SPDX-License-Identifier: GPL-3.0-or-later // SPDX-FileCopyrightText: Copyright 2022 yuzu Emulator Project diff --git a/src/input_common/drivers/mouse.cpp b/src/input_common/drivers/mouse.cpp index 4ac259d03b..4444f0ac3b 100644 --- a/src/input_common/drivers/mouse.cpp +++ b/src/input_common/drivers/mouse.cpp @@ -4,16 +4,17 @@ // SPDX-FileCopyrightText: Copyright 2021 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later -#include +#include #include #include #include "common/param_package.h" #include "common/settings.h" -#include "common/steady_clock.h" +#include "common/thread.h" #include "input_common/drivers/mouse.h" namespace InputCommon { +constexpr int update_time = 10; constexpr float default_panning_sensitivity = 0.0010f; constexpr float default_stick_sensitivity = 0.0006f; constexpr float default_deadzone_counterweight = 0.01f; @@ -73,31 +74,33 @@ Mouse::Mouse(std::string input_engine_) : InputEngine(std::move(input_engine_)) last_motion_change = {}; } -void Mouse::UpdateStickInput(Common::SteadyClock::time_point timestamp) { - if (IsMousePanningEnabled()) { - const float length = last_mouse_change.Length(); - - // Prevent input from exceeding the max range (1.0f) too much, - // but allow some room to make it easier to sustain - if (length > maximum_stick_range) { - last_mouse_change /= length; - last_mouse_change *= maximum_stick_range; - } - - SetAxis(identifier, mouse_axis_x, last_mouse_change[0]); - SetAxis(identifier, mouse_axis_y, -last_mouse_change[1]); - - // Decay input over time - const float clamped_length = (std::min)(1.0f, length); - const float decay_strength = Settings::values.mouse_panning_decay_strength.GetValue(); - const float decay = 1 - clamped_length * clamped_length * decay_strength * 0.01f; - const float min_decay = Settings::values.mouse_panning_min_decay.GetValue(); - const float clamped_decay = (std::min)(1 - min_decay / 100.0f, decay); - last_mouse_change *= clamped_decay; +void Mouse::UpdateStickInput() { + if (!IsMousePanningEnabled()) { + return; } + + const float length = last_mouse_change.Length(); + + // Prevent input from exceeding the max range (1.0f) too much, + // but allow some room to make it easier to sustain + if (length > maximum_stick_range) { + last_mouse_change /= length; + last_mouse_change *= maximum_stick_range; + } + + SetAxis(identifier, mouse_axis_x, last_mouse_change[0]); + SetAxis(identifier, mouse_axis_y, -last_mouse_change[1]); + + // Decay input over time + const float clamped_length = (std::min)(1.0f, length); + const float decay_strength = Settings::values.mouse_panning_decay_strength.GetValue(); + const float decay = 1 - clamped_length * clamped_length * decay_strength * 0.01f; + const float min_decay = Settings::values.mouse_panning_min_decay.GetValue(); + const float clamped_decay = (std::min)(1 - min_decay / 100.0f, decay); + last_mouse_change *= clamped_decay; } -void Mouse::UpdateMotionInput(Common::SteadyClock::time_point timestamp) { +void Mouse::UpdateMotionInput() { const float sensitivity = IsMousePanningEnabled() ? default_motion_panning_sensitivity : default_motion_sensitivity; @@ -111,21 +114,23 @@ void Mouse::UpdateMotionInput(Common::SteadyClock::time_point timestamp) { last_motion_change[1] = last_motion_change[1] * multiplier; } - if (IsMousePanningEnabled()) { - last_motion_change[0] = 0; - last_motion_change[1] = 0; - } - last_motion_change[2] = 0; - - SetMotion(motion_identifier, 0, BasicMotion{ + const BasicMotion motion_data{ .gyro_x = last_motion_change[0] * sensitivity, .gyro_y = last_motion_change[1] * sensitivity, .gyro_z = last_motion_change[2] * sensitivity, .accel_x = 0, .accel_y = 0, .accel_z = 0, - .delta_timestamp = u64(std::chrono::duration_cast(timestamp - last_notify_timestamp).count()), - }); + .delta_timestamp = update_time * 1000, + }; + + if (IsMousePanningEnabled()) { + last_motion_change[0] = 0; + last_motion_change[1] = 0; + } + last_motion_change[2] = 0; + + SetMotion(motion_identifier, 0, motion_data); } void Mouse::Move(int x, int y, int center_x, int center_y) { @@ -144,27 +149,29 @@ void Mouse::Move(int x, int y, int center_x, int center_y) { last_mouse_change /= length; last_mouse_change *= deadzone_cw; } - } else { - if (button_pressed) { - const auto mouse_move = Common::Vec(x, y) - mouse_origin; - const float x_sensitivity = Settings::values.mouse_panning_x_sensitivity.GetValue() * default_stick_sensitivity; - const float y_sensitivity = Settings::values.mouse_panning_y_sensitivity.GetValue() * default_stick_sensitivity; - SetAxis(identifier, mouse_axis_x, float(mouse_move[0]) * x_sensitivity); - SetAxis(identifier, mouse_axis_y, float(-mouse_move[1]) * y_sensitivity); - last_motion_change = { - float(-mouse_move[1]) * x_sensitivity, - float(-mouse_move[0]) * y_sensitivity, - last_motion_change[2], - }; - } + return; + } + + if (button_pressed) { + const auto mouse_move = Common::Vec(x, y) - mouse_origin; + const float x_sensitivity = + Settings::values.mouse_panning_x_sensitivity.GetValue() * default_stick_sensitivity; + const float y_sensitivity = + Settings::values.mouse_panning_y_sensitivity.GetValue() * default_stick_sensitivity; + SetAxis(identifier, mouse_axis_x, float(mouse_move[0]) * x_sensitivity); + SetAxis(identifier, mouse_axis_y, float(-mouse_move[1]) * y_sensitivity); + + last_motion_change = { + float(-mouse_move[1]) * x_sensitivity, + float(-mouse_move[0]) * y_sensitivity, + last_motion_change[2], + }; } } void Mouse::NotifyChanged() { - auto const timestamp = Common::SteadyClock::Now(); - UpdateStickInput(timestamp); - UpdateMotionInput(timestamp); - last_notify_timestamp = timestamp; + UpdateStickInput(); + UpdateMotionInput(); } void Mouse::MouseMove(f32 touch_x, f32 touch_y) { @@ -216,8 +223,8 @@ void Mouse::MouseWheelChange(int x, int y) { wheel_position[0] += x; wheel_position[1] += y; last_motion_change[2] += static_cast(y); - SetAxis(identifier, wheel_axis_x, f32(wheel_position[0])); - SetAxis(identifier, wheel_axis_y, f32(wheel_position[1])); + SetAxis(identifier, wheel_axis_x, static_cast(wheel_position[0])); + SetAxis(identifier, wheel_axis_y, static_cast(wheel_position[1])); } void Mouse::ReleaseAllButtons() { diff --git a/src/input_common/drivers/mouse.h b/src/input_common/drivers/mouse.h index 1f7cb7e966..25f75109b9 100644 --- a/src/input_common/drivers/mouse.h +++ b/src/input_common/drivers/mouse.h @@ -7,9 +7,7 @@ #pragma once #include -#include -#include "common/steady_clock.h" #include "common/polyfill_thread.h" #include "common/vector_math.h" #include "input_common/input_engine.h" @@ -103,8 +101,8 @@ public: Common::Input::ButtonNames GetUIName(const Common::ParamPackage& params) const override; private: - void UpdateStickInput(Common::SteadyClock::time_point timestamp); - void UpdateMotionInput(Common::SteadyClock::time_point timestamp); + void UpdateStickInput(); + void UpdateMotionInput(); bool IsMousePanningEnabled(); Common::Input::ButtonNames GetUIButtonName(const Common::ParamPackage& params) const; @@ -114,7 +112,6 @@ private: Common::Vec last_mouse_change; Common::Vec last_motion_change; Common::Vec wheel_position; - Common::SteadyClock::time_point last_notify_timestamp{}; bool button_pressed = false; }; diff --git a/src/input_common/drivers/sdl_driver.cpp b/src/input_common/drivers/sdl_driver.cpp index c3e9a066b3..91589063b5 100644 --- a/src/input_common/drivers/sdl_driver.cpp +++ b/src/input_common/drivers/sdl_driver.cpp @@ -697,6 +697,16 @@ SDLDriver::SDLDriver(std::string input_engine_) : InputEngine(std::move(input_en SDL_AddEventWatch(&SDLEventWatcher, this); initialized = true; + if (start_thread) { + vibration_thread = std::thread([this] { + Common::SetCurrentThreadName("SDL_Vibration"); + using namespace std::chrono_literals; + while (initialized) { + SendVibrations(); + std::this_thread::sleep_for(250ms); // 4 TPS + } + }); + } // Because the events for joystick connection happens before we have our event watcher added, we // can just open all the joysticks right here int joystick_count = 0; @@ -715,6 +725,7 @@ SDLDriver::~SDLDriver() { initialized = false; if (start_thread) { + vibration_thread.join(); SDL_QuitSubSystem(SDL_INIT_JOYSTICK | SDL_INIT_GAMEPAD); } } @@ -794,7 +805,10 @@ Common::Input::DriverResult SDLDriver::SetVibration( .type = Common::Input::VibrationAmplificationType::Exponential, }; - joystick->RumblePlay(new_vibration); + vibration_queue.Push(VibrationRequest{ + .identifier = identifier, + .vibration = new_vibration, + }); return Common::Input::DriverResult::Success; } @@ -838,6 +852,31 @@ bool SDLDriver::IsVibrationEnabled(const PadIdentifier& identifier) { return true; } +void SDLDriver::SendVibrations() { + std::vector filtered_vibrations{}; + while (!vibration_queue.Empty()) { + VibrationRequest request; + vibration_queue.Pop(request); + const auto joystick = GetSDLJoystickByGUID(request.identifier.guid.RawString(), + static_cast(request.identifier.port)); + const auto it = std::find_if(filtered_vibrations.begin(), filtered_vibrations.end(), + [request](VibrationRequest vibration) { + return vibration.identifier == request.identifier; + }); + if (it == filtered_vibrations.end()) { + filtered_vibrations.push_back(std::move(request)); + continue; + } + *it = request; + } + + for (const auto& vibration : filtered_vibrations) { + const auto joystick = GetSDLJoystickByGUID(vibration.identifier.guid.RawString(), + static_cast(vibration.identifier.port)); + joystick->RumblePlay(vibration.vibration); + } +} + Common::ParamPackage SDLDriver::BuildAnalogParamPackageForButton(int port, const Common::UUID& guid, s32 axis, float value) const { Common::ParamPackage params{}; diff --git a/src/input_common/drivers/sdl_driver.h b/src/input_common/drivers/sdl_driver.h index e6751b6688..9a279e926f 100644 --- a/src/input_common/drivers/sdl_driver.h +++ b/src/input_common/drivers/sdl_driver.h @@ -113,11 +113,16 @@ private: /// Returns true if the button is on the left joycon bool IsButtonOnLeftSide(Settings::NativeButton::Values button) const; + /// Queue of vibration request to controllers + Common::SPSCQueue vibration_queue; + /// Map of GUID of a list of corresponding virtual Joysticks ::Common::unordered_map>> joystick_map; std::mutex joystick_map_mutex; + bool start_thread = false; std::atomic initialized = false; - bool start_thread; + + std::thread vibration_thread; }; } // namespace InputCommon diff --git a/src/input_common/helpers/joycon_protocol/joycon_types.h b/src/input_common/helpers/joycon_protocol/joycon_types.h index 8597d02701..dd3bd4398c 100644 --- a/src/input_common/helpers/joycon_protocol/joycon_types.h +++ b/src/input_common/helpers/joycon_protocol/joycon_types.h @@ -13,8 +13,6 @@ #include #include -#include - #include #include "common/bit_field.h" diff --git a/src/input_common/helpers/joycon_protocol/poller.cpp b/src/input_common/helpers/joycon_protocol/poller.cpp index 07e599f89e..2384981f50 100644 --- a/src/input_common/helpers/joycon_protocol/poller.cpp +++ b/src/input_common/helpers/joycon_protocol/poller.cpp @@ -4,7 +4,7 @@ // SPDX-FileCopyrightText: Copyright 2022 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later -#include +#include "common/logging.h" #include "input_common/helpers/joycon_protocol/poller.h" namespace InputCommon::Joycon { diff --git a/src/qt_common/config/shared_translation.cpp b/src/qt_common/config/shared_translation.cpp index bb92d896f8..7fd55ce038 100644 --- a/src/qt_common/config/shared_translation.cpp +++ b/src/qt_common/config/shared_translation.cpp @@ -23,7 +23,7 @@ namespace ConfigurationShared { std::unique_ptr InitializeTranslations(QObject* parent) { std::unique_ptr translations = std::make_unique(); - const auto& tr = [](const char* text) -> QString { return QCoreApplication::translate("ConfigurationShared", text); }; + const auto& tr = [parent](const char* text) -> QString { return parent->tr(text); }; #define INSERT(SETTINGS, ID, NAME, TOOLTIP) \ translations->insert(std::pair{SETTINGS::values.ID.Id(), std::pair{(NAME), (TOOLTIP)}}) @@ -150,10 +150,6 @@ std::unique_ptr InitializeTranslations(QObject* parent) { INSERT(Settings, anti_aliasing, tr("Anti-Aliasing Method:"), tr("The anti-aliasing method to use.\nSMAA offers the best quality.\nFXAA " "can produce a more stable picture in lower resolutions.")); - INSERT(Settings, post_shader_chain, QString(), QString()); - INSERT(Settings, post_shader_preset, QString(), QString()); - INSERT(Settings, post_shader_enabled, tr("Enable post-processing effects"), - tr("Applies post-processing effects to the final image.")); INSERT(Settings, fullscreen_mode, tr("Fullscreen Mode:"), tr("The method used to render the window in fullscreen.\nBorderless offers the best " "compatibility with the on-screen keyboard that some games request for " @@ -226,7 +222,9 @@ std::unique_ptr InitializeTranslations(QObject* parent) { INSERT(Settings, dma_accuracy, tr("DMA Accuracy:"), tr("Controls the DMA read mode.\nUnsafe is faster, while Safe is more stable and can fix issues in some games.\nDefault follows the GPU Accuracy setting.")); INSERT(Settings, gpu_fence_behavior, tr("GPU Fence Behavior:"), - tr("Controls the GPU fence synchronization behavior.\nImmediate is the fastest option, but can introduce some issues.\nBalanced offers better compatibility and may fix issues in some games.\nAccurate further improves compatibility at the cost of some performance.\nDefault follows the GPU Mode setting.")); + tr("Controls the GPU fence synchronization behavior.\nImmediate is the fastest option, but can introduce some issues.\nBalanced offers better compatibility and may fix issues in some games.\nAccurate further improves compatibility at the cost of some performance.\nStrict is the slowest option, but can fix issues that require stricter synchronization.\nDefault follows the GPU Accuracy setting.")); + INSERT(Settings, enable_gpu_buffer_readback, tr("Enable GPU buffer readback"), + tr("Preserves GPU-modified data by reading it back before uploading.\nSome games require this to render certain effects properly.")); INSERT(Settings, use_asynchronous_shaders, tr("Enable asynchronous shader compilation"), tr("May reduce shader stutter.")); INSERT(Settings, gpu_clock, tr("GPU Clocks"), @@ -271,6 +269,12 @@ std::unique_ptr InitializeTranslations(QObject* parent) { "quality and performance consistency in some games.")); INSERT(Settings, fix_bloom_effects, tr("Fix bloom effects"), tr("Removes bloom in Burnout.")); + INSERT(Settings, rescale_hack, tr("Enable Legacy Rescale Pass"), + tr("May fix rescale issues in some games by relying on behavior from the previous " + "implementation.\n" + "Legacy behavior workaround that fixes line artifacts on AMD and Intel GPUs, and " + "grey texture flicker on Nvidia GPUs in Luigis Mansion 3.")); + // Renderer (Extensions) INSERT(Settings, dyna_state, tr("Extended Dynamic State"), tr("Controls the number of features that can be used in Extended Dynamic State.\n" @@ -336,6 +340,9 @@ std::unique_ptr InitializeTranslations(QObject* parent) { "it bypasses such prompts and directly exits the emulation.")); INSERT(UISettings, hide_mouse, tr("Hide mouse on inactivity"), tr("Hides the mouse after 2.5s of inactivity.")); + INSERT(UISettings, controller_applet_disabled, tr("Disable controller applet"), + tr("Forcibly disables the use of the controller applet in emulated programs.\n" + "When a program attempts to open the controller applet, it is immediately closed.")); INSERT(UISettings, check_for_updates, tr("Check for updates"), tr("Whether or not to check for updates upon startup.")); @@ -360,8 +367,8 @@ std::unique_ptr InitializeTranslations(QObject* parent) { std::unique_ptr ComboboxEnumeration(QObject* parent) { std::unique_ptr translations = std::make_unique(); - const auto& tr = [](const char* text, const char* context = "") { - return QCoreApplication::translate("ConfigurationShared", text, context); + const auto& tr = [&](const char* text, const char* context = "") { + return parent->tr(text, context); }; #define PAIR(ENUM, VALUE, TRANSLATION) {static_cast(Settings::ENUM::VALUE), (TRANSLATION)} @@ -371,7 +378,6 @@ std::unique_ptr ComboboxEnumeration(QObject* parent) { { PAIR(AppletMode, HLE, tr("Custom frontend")), PAIR(AppletMode, LLE, tr("Real applet")), - PAIR(AppletMode, Disabled, tr("Disabled")), }}); translations->insert({Settings::EnumMetadata::Index(), @@ -432,6 +438,7 @@ std::unique_ptr ComboboxEnumeration(QObject* parent) { PAIR(GpuFenceBehavior, Immediate, tr("Immediate")), PAIR(GpuFenceBehavior, Balanced, tr("Balanced")), PAIR(GpuFenceBehavior, Accurate, tr("Accurate")), + PAIR(GpuFenceBehavior, Strict, tr("Strict")), }}); translations->insert( {Settings::EnumMetadata::Index(), diff --git a/src/qt_common/config/uisettings.h b/src/qt_common/config/uisettings.h index a790cfcc22..794d1a029b 100644 --- a/src/qt_common/config/uisettings.h +++ b/src/qt_common/config/uisettings.h @@ -127,6 +127,8 @@ struct Values { Setting hide_mouse{ linkage, true, "hideInactiveMouse", Category::UiGeneral, Settings::Specialization::Default, true, true}; + Setting controller_applet_disabled{linkage, false, "disableControllerApplet", + Category::UiGeneral}; // Set when Vulkan is known to crash the application bool has_broken_vulkan = false; diff --git a/src/qt_common/game_list/worker.cpp b/src/qt_common/game_list/worker.cpp index 6b6f93447d..586a26e8b9 100644 --- a/src/qt_common/game_list/worker.cpp +++ b/src/qt_common/game_list/worker.cpp @@ -360,8 +360,7 @@ void GameListWorker::ScanFileSystem(ScanTarget target, const std::string& dir_pa } if (target == ScanTarget::PopulateGameList && - (file_type == Loader::FileType::XCI || file_type == Loader::FileType::XCZ || - file_type == Loader::FileType::NSP || file_type == Loader::FileType::NSZ) && + (file_type == Loader::FileType::XCI || file_type == Loader::FileType::NSP) && !Loader::IsBootableGameContainer(file, file_type)) { return true; } @@ -376,9 +375,7 @@ void GameListWorker::ScanFileSystem(ScanTarget target, const std::string& dir_pa program_id, file); } else if (Settings::values.ext_content_from_game_dirs.GetValue() && (file_type == Loader::FileType::XCI || - file_type == Loader::FileType::XCZ || - file_type == Loader::FileType::NSP || - file_type == Loader::FileType::NSZ)) { + file_type == Loader::FileType::NSP)) { void(provider->AddEntriesFromContainer(file)); } } else { @@ -405,8 +402,7 @@ void GameListWorker::ScanFileSystem(ScanTarget target, const std::string& dir_pa }; if (res2 == Loader::ResultStatus::Success && program_ids.size() > 1 && - (file_type == Loader::FileType::XCI || file_type == Loader::FileType::XCZ || - file_type == Loader::FileType::NSP || file_type == Loader::FileType::NSZ)) { + (file_type == Loader::FileType::XCI || file_type == Loader::FileType::NSP)) { for (const auto id : program_ids) { // dravee suggested this, only viable way to // not show sub-games in qlaunch for now. diff --git a/src/qt_common/qt_common.cpp b/src/qt_common/qt_common.cpp index 794aeaabb1..b9b8caf6e8 100644 --- a/src/qt_common/qt_common.cpp +++ b/src/qt_common/qt_common.cpp @@ -57,8 +57,7 @@ std::unique_ptr emu_thread = nullptr; const QStringList supported_file_extensions = {QStringLiteral("nro"), QStringLiteral("nso"), QStringLiteral("nca"), QStringLiteral("xci"), - QStringLiteral("xcz"), QStringLiteral("nsp"), - QStringLiteral("nsz"), QStringLiteral("kip")}; + QStringLiteral("nsp"), QStringLiteral("kip")}; Core::Frontend::WindowSystemType GetWindowSystemType() { // Determine WSI type based on Qt platform. diff --git a/src/shader_recompiler/CMakeLists.txt b/src/shader_recompiler/CMakeLists.txt index cc9ce95d92..957ed5fb55 100644 --- a/src/shader_recompiler/CMakeLists.txt +++ b/src/shader_recompiler/CMakeLists.txt @@ -172,7 +172,6 @@ add_library(shader_recompiler STATIC ir_opt/constant_propagation_pass.cpp ir_opt/dead_code_elimination_pass.cpp ir_opt/dual_vertex_pass.cpp - ir_opt/geometry_compaction_pass.cpp ir_opt/global_memory_to_storage_buffer_pass.cpp ir_opt/identity_removal_pass.cpp ir_opt/layer_pass.cpp diff --git a/src/shader_recompiler/backend/glsl/emit_glsl.cpp b/src/shader_recompiler/backend/glsl/emit_glsl.cpp index 8ec180bc42..66ecfc9f74 100644 --- a/src/shader_recompiler/backend/glsl/emit_glsl.cpp +++ b/src/shader_recompiler/backend/glsl/emit_glsl.cpp @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2021 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later @@ -31,6 +28,11 @@ struct FuncTraits { using ArgType = std::tuple_element_t>; }; +template +void SetDefinition(EmitContext& ctx, IR::Inst* inst, Args... args) { + inst->SetDefinition(func(ctx, std::forward(args)...)); +} + template auto Arg(EmitContext& ctx, const IR::Value& arg) { if constexpr (std::is_same_v) { @@ -51,10 +53,21 @@ auto Arg(EmitContext& ctx, const IR::Value& arg) { template void Invoke(EmitContext& ctx, IR::Inst* inst, std::index_sequence) { using Traits = FuncTraits; - if constexpr (is_first_arg_inst) { - func(ctx, *inst, Arg>(ctx, inst->Arg(I))...); + if constexpr (std::is_same_v) { + if constexpr (is_first_arg_inst) { + SetDefinition( + ctx, inst, *inst, + Arg>(ctx, inst->Arg(I))...); + } else { + SetDefinition( + ctx, inst, Arg>(ctx, inst->Arg(I))...); + } } else { - func(ctx, Arg>(ctx, inst->Arg(I))...); + if constexpr (is_first_arg_inst) { + func(ctx, *inst, Arg>(ctx, inst->Arg(I))...); + } else { + func(ctx, Arg>(ctx, inst->Arg(I))...); + } } } diff --git a/src/shader_recompiler/backend/spirv/emit_spirv.cpp b/src/shader_recompiler/backend/spirv/emit_spirv.cpp index a903480c78..c221888c09 100644 --- a/src/shader_recompiler/backend/spirv/emit_spirv.cpp +++ b/src/shader_recompiler/backend/spirv/emit_spirv.cpp @@ -4,7 +4,6 @@ // SPDX-FileCopyrightText: Copyright 2021 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later -#include #include #include #include @@ -440,13 +439,10 @@ void SetupCapabilities(const Profile& profile, const Info& info, EmitContext& ct ctx.AddCapability(spv::Capability::DrawParameters); } if ((info.uses_subgroup_vote || info.uses_subgroup_invocation_id || - info.uses_subgroup_shuffles || info.uses_subgroup_mask) && + info.uses_subgroup_shuffles) && profile.support_vote && profile.SupportsSubgroupStage(ctx.stage)) { ctx.AddCapability(spv::Capability::GroupNonUniformBallot); ctx.AddCapability(spv::Capability::GroupNonUniformShuffle); - if (info.uses_subgroup_shuffles && profile.support_shuffle_relative) { - ctx.AddCapability(spv::Capability::GroupNonUniformShuffleRelative); - } if (!profile.warp_size_potentially_larger_than_guest) { // vote ops are only used when not taking the long path ctx.AddCapability(spv::Capability::GroupNonUniformVote); @@ -525,29 +521,6 @@ void PatchPhiNodes(IR::Program& program, EmitContext& ctx) { return { ctx.Def(phi->Arg(phi_arg)), parent }; }); } - -void RewriteOpcodes(std::vector& code, std::span> rewrites) { - if (rewrites.empty()) { - return; - } - size_t offset = 5; - while (offset + 2 < code.size()) { - const u32 word_count{code[offset] >> 16}; - const auto opcode{static_cast(code[offset] & 0xFFFFu)}; - if (word_count == 0) { - return; - } - if (opcode == spv::Op::OpGroupNonUniformShuffleXor || - opcode == spv::Op::OpGroupNonUniformQuadBroadcast) { - const auto it{std::ranges::find(rewrites, code[offset + 2], - &std::pair::first)}; - if (it != rewrites.end()) { - code[offset] = (code[offset] & 0xFFFF0000u) | static_cast(it->second); - } - } - offset += word_count; - } -} } // Anonymous namespace std::vector EmitSPIRV(const Profile& profile, const RuntimeInfo& runtime_info, IR::Program& program, Bindings& bindings) { @@ -562,9 +535,7 @@ std::vector EmitSPIRV(const Profile& profile, const RuntimeInfo& runtime_in SetupCapabilities(profile, program.info, ctx); SetupTransformFeedbackCapabilities(ctx, main); PatchPhiNodes(program, ctx); - std::vector code{ctx.Assemble()}; - RewriteOpcodes(code, ctx.opcode_rewrites); - return code; + return ctx.Assemble(); } Id EmitPhi(EmitContext& ctx, IR::Inst* inst) { diff --git a/src/shader_recompiler/backend/spirv/emit_spirv_warp.cpp b/src/shader_recompiler/backend/spirv/emit_spirv_warp.cpp index 8d83509961..ffd5d9c29f 100644 --- a/src/shader_recompiler/backend/spirv/emit_spirv_warp.cpp +++ b/src/shader_recompiler/backend/spirv/emit_spirv_warp.cpp @@ -77,57 +77,20 @@ Id GetMaxThreadId(EmitContext& ctx, Id thread_id, Id clamp, Id segmentation_mask return ComputeMaxThreadId(ctx, min_thread_id, clamp, not_seg_mask); } -Id HostThreadId(EmitContext& ctx, Id thread_id) { - if (!ctx.profile.warp_size_potentially_larger_than_guest) { - return thread_id; +Id SelectValue(EmitContext& ctx, Id in_range, Id value, Id src_thread_id) { + if (!StageSupportsSubgroups(ctx)) { + return value; } + return ctx.OpSelect( + ctx.U32[1], in_range, + ctx.OpGroupNonUniformShuffle(ctx.U32[1], SubgroupScope(ctx), value, src_thread_id), value); +} + +Id AddPartitionBase(EmitContext& ctx, Id thread_id) { const Id partition_idx{ctx.OpShiftRightLogical(ctx.U32[1], GetThreadId(ctx), ctx.Const(5u))}; const Id partition_base{ctx.OpShiftLeftLogical(ctx.U32[1], partition_idx, ctx.Const(5u))}; return ctx.OpIAdd(ctx.U32[1], thread_id, partition_base); } - -Id GuestLane(EmitContext& ctx, Id index) { - return ctx.OpBitwiseAnd(ctx.U32[1], index, ctx.Const(31U)); -} - -Id ShuffleAbsolute(EmitContext& ctx, Id value, Id src_thread_id) { - if (!ctx.profile.has_broken_spirv_subgroup_shuffle) { - return ctx.OpGroupNonUniformShuffle(ctx.U32[1], SubgroupScope(ctx), value, src_thread_id); - } - Id result{ctx.u32_zero_value}; - for (u32 lane = 0; lane < ctx.profile.max_subgroup_size; ++lane) { - const Id read{ - ctx.OpGroupNonUniformBroadcast(ctx.U32[1], SubgroupScope(ctx), value, ctx.Const(lane))}; - const Id matches{ctx.OpIEqual(ctx.U1, src_thread_id, ctx.Const(lane))}; - result = ctx.OpSelect(ctx.U32[1], matches, read, result); - } - return result; -} - -Id ShuffleRelative(EmitContext& ctx, Id value, Id delta, Id src_thread_id, spv::Op op) { - if (!ctx.profile.support_shuffle_relative) { - return ShuffleAbsolute(ctx, value, HostThreadId(ctx, src_thread_id)); - } - const Id result{ctx.OpGroupNonUniformShuffleXor(ctx.U32[1], SubgroupScope(ctx), value, delta)}; - ctx.opcode_rewrites.emplace_back(result.value, op); - return result; -} - -Id BroadcastLane(EmitContext& ctx, Id value, u32 lane) { - Id result{ - ctx.OpGroupNonUniformBroadcast(ctx.U32[1], SubgroupScope(ctx), value, ctx.Const(lane))}; - if (!ctx.profile.warp_size_potentially_larger_than_guest) { - return result; - } - const Id partition_idx{ctx.OpShiftRightLogical(ctx.U32[1], GetThreadId(ctx), ctx.Const(5u))}; - for (u32 base = 32; base < ctx.profile.max_subgroup_size; base += 32) { - const Id read{ctx.OpGroupNonUniformBroadcast(ctx.U32[1], SubgroupScope(ctx), value, - ctx.Const(base + lane))}; - const Id matches{ctx.OpIEqual(ctx.U1, partition_idx, ctx.Const(base >> 5))}; - result = ctx.OpSelect(ctx.U32[1], matches, read, result); - } - return result; -} } // Anonymous namespace Id EmitLaneId(EmitContext& ctx) { @@ -240,75 +203,61 @@ Id EmitShuffleIndex(EmitContext& ctx, IR::Inst* inst, Id value, Id index, Id cla const Id min_thread_id{ComputeMinThreadId(ctx, thread_id, segmentation_mask)}; const Id max_thread_id{ComputeMaxThreadId(ctx, min_thread_id, clamp, not_seg_mask)}; - const Id lhs{ctx.OpBitwiseAnd(ctx.U32[1], GuestLane(ctx, index), not_seg_mask)}; - const Id src_thread_id{ctx.OpBitwiseOr(ctx.U32[1], lhs, min_thread_id)}; + const Id lhs{ctx.OpBitwiseAnd(ctx.U32[1], index, not_seg_mask)}; + Id src_thread_id{ctx.OpBitwiseOr(ctx.U32[1], lhs, min_thread_id)}; const Id in_range{ctx.OpSLessThanEqual(ctx.U1, src_thread_id, max_thread_id)}; + if (ctx.profile.warp_size_potentially_larger_than_guest) { + src_thread_id = AddPartitionBase(ctx, src_thread_id); + } + SetInBoundsFlag(inst, in_range); - if (!StageSupportsSubgroups(ctx)) { - return value; - } - const IR::Value lane{inst->Arg(1).Resolve()}; - const IR::Value segment{inst->Arg(3).Resolve()}; - if (lane.IsImmediate() && segment.IsImmediate() && segment.U32() == 0) { - return ctx.OpSelect(ctx.U32[1], in_range, BroadcastLane(ctx, value, lane.U32() & 31), - value); - } - const Id shuffled{ShuffleAbsolute(ctx, value, HostThreadId(ctx, src_thread_id))}; - return ctx.OpSelect(ctx.U32[1], in_range, shuffled, value); + return SelectValue(ctx, in_range, value, src_thread_id); } Id EmitShuffleUp(EmitContext& ctx, IR::Inst* inst, Id value, Id index, Id clamp, Id segmentation_mask) { - if (!StageSupportsSubgroups(ctx)) { - SetInBoundsFlag(inst, ctx.false_value); - return value; - } - const Id delta{GuestLane(ctx, index)}; const Id thread_id{EmitLaneId(ctx)}; const Id max_thread_id{GetMaxThreadId(ctx, thread_id, clamp, segmentation_mask)}; - const Id src_thread_id{ctx.OpISub(ctx.U32[1], thread_id, delta)}; + Id src_thread_id{ctx.OpISub(ctx.U32[1], thread_id, index)}; const Id in_range{ctx.OpSGreaterThanEqual(ctx.U1, src_thread_id, max_thread_id)}; + if (ctx.profile.warp_size_potentially_larger_than_guest) { + src_thread_id = AddPartitionBase(ctx, src_thread_id); + } + SetInBoundsFlag(inst, in_range); - const Id shuffled{ShuffleRelative(ctx, value, delta, src_thread_id, - spv::Op::OpGroupNonUniformShuffleUp)}; - return ctx.OpSelect(ctx.U32[1], in_range, shuffled, value); + return SelectValue(ctx, in_range, value, src_thread_id); } Id EmitShuffleDown(EmitContext& ctx, IR::Inst* inst, Id value, Id index, Id clamp, Id segmentation_mask) { - if (!StageSupportsSubgroups(ctx)) { - SetInBoundsFlag(inst, ctx.false_value); - return value; - } - const Id delta{GuestLane(ctx, index)}; const Id thread_id{EmitLaneId(ctx)}; const Id max_thread_id{GetMaxThreadId(ctx, thread_id, clamp, segmentation_mask)}; - const Id src_thread_id{ctx.OpIAdd(ctx.U32[1], thread_id, delta)}; + Id src_thread_id{ctx.OpIAdd(ctx.U32[1], thread_id, index)}; const Id in_range{ctx.OpSLessThanEqual(ctx.U1, src_thread_id, max_thread_id)}; + if (ctx.profile.warp_size_potentially_larger_than_guest) { + src_thread_id = AddPartitionBase(ctx, src_thread_id); + } + SetInBoundsFlag(inst, in_range); - const Id shuffled{ShuffleRelative(ctx, value, delta, src_thread_id, - spv::Op::OpGroupNonUniformShuffleDown)}; - return ctx.OpSelect(ctx.U32[1], in_range, shuffled, value); + return SelectValue(ctx, in_range, value, src_thread_id); } Id EmitShuffleButterfly(EmitContext& ctx, IR::Inst* inst, Id value, Id index, Id clamp, Id segmentation_mask) { - if (!StageSupportsSubgroups(ctx)) { - SetInBoundsFlag(inst, ctx.false_value); - return value; - } - const Id mask{GuestLane(ctx, index)}; const Id thread_id{EmitLaneId(ctx)}; const Id max_thread_id{GetMaxThreadId(ctx, thread_id, clamp, segmentation_mask)}; - const Id src_thread_id{ctx.OpBitwiseXor(ctx.U32[1], thread_id, mask)}; + Id src_thread_id{ctx.OpBitwiseXor(ctx.U32[1], thread_id, index)}; const Id in_range{ctx.OpSLessThanEqual(ctx.U1, src_thread_id, max_thread_id)}; + if (ctx.profile.warp_size_potentially_larger_than_guest) { + src_thread_id = AddPartitionBase(ctx, src_thread_id); + } + SetInBoundsFlag(inst, in_range); - const Id shuffled{ctx.OpGroupNonUniformShuffleXor(ctx.U32[1], SubgroupScope(ctx), value, mask)}; - return ctx.OpSelect(ctx.U32[1], in_range, shuffled, value); + return SelectValue(ctx, in_range, value, src_thread_id); } Id EmitQuadBroadcast(EmitContext& ctx, Id value, Id lane) { @@ -318,16 +267,10 @@ Id EmitQuadBroadcast(EmitContext& ctx, Id value, Id lane) { const Id base{ctx.OpBitwiseAnd(ctx.U32[1], GetThreadId(ctx), ctx.Const(~3u))}; const Id local_lane{ctx.OpBitwiseAnd(ctx.U32[1], lane, ctx.Const(3u))}; const Id src_thread_id{ctx.OpBitwiseOr(ctx.U32[1], base, local_lane)}; - return ShuffleAbsolute(ctx, value, src_thread_id); + return ctx.OpGroupNonUniformShuffle(ctx.U32[1], SubgroupScope(ctx), value, src_thread_id); } Id EmitQuadSwap(EmitContext& ctx, Id value, Id direction) { - if (ctx.profile.support_quad_shuffles) { - const Id result{ - ctx.OpGroupNonUniformQuadBroadcast(ctx.U32[1], SubgroupScope(ctx), value, direction)}; - ctx.opcode_rewrites.emplace_back(result.value, spv::Op::OpGroupNonUniformQuadSwap); - return result; - } const Id xor_mask{ctx.OpIAdd(ctx.U32[1], direction, ctx.Const(1u))}; return ctx.OpGroupNonUniformShuffleXor(ctx.U32[1], SubgroupScope(ctx), value, xor_mask); } diff --git a/src/shader_recompiler/backend/spirv/spirv_emit_context.h b/src/shader_recompiler/backend/spirv/spirv_emit_context.h index a5821e9e93..7edc104708 100644 --- a/src/shader_recompiler/backend/spirv/spirv_emit_context.h +++ b/src/shader_recompiler/backend/spirv/spirv_emit_context.h @@ -361,7 +361,6 @@ public: Id frag_depth{}; std::vector interfaces; - std::vector> opcode_rewrites; Id load_const_func_u8{}; Id load_const_func_u16{}; diff --git a/src/shader_recompiler/frontend/ir/breadth_first_search.h b/src/shader_recompiler/frontend/ir/breadth_first_search.h index afe153f180..ec55425549 100644 --- a/src/shader_recompiler/frontend/ir/breadth_first_search.h +++ b/src/shader_recompiler/frontend/ir/breadth_first_search.h @@ -1,12 +1,8 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2021 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later #pragma once -#include #include #include #include @@ -17,10 +13,9 @@ namespace Shader::IR { -template -auto BreadthFirstSearch(Value value, Pred&& pred, Resolve&& resolve = {}) +template +auto BreadthFirstSearch(const Value& value, Pred&& pred) -> std::invoke_result_t { - value = resolve(value); if (value.IsImmediate()) { // Nothing to do with immediates return std::nullopt; @@ -41,7 +36,7 @@ auto BreadthFirstSearch(Value value, Pred&& pred, Resolve&& resolve = {}) } // Visit the right most arguments first for (size_t arg = inst->NumArgs(); arg--;) { - const Value arg_value{resolve(inst->Arg(arg))}; + const Value arg_value{inst->Arg(arg)}; if (arg_value.IsImmediate()) { continue; } diff --git a/src/shader_recompiler/frontend/maxwell/translate_program.cpp b/src/shader_recompiler/frontend/maxwell/translate_program.cpp index 0cc4b3b844..ebc5a825dd 100644 --- a/src/shader_recompiler/frontend/maxwell/translate_program.cpp +++ b/src/shader_recompiler/frontend/maxwell/translate_program.cpp @@ -5,10 +5,7 @@ // SPDX-License-Identifier: GPL-2.0-or-later #include -#include -#include #include -#include #include #include @@ -175,17 +172,7 @@ std::map GenerateLegacyToGenericMappings( void EmitGeometryPassthrough(IR::IREmitter& ir, const IR::Program& program, const Shader::VaryingState& passthrough_mask, bool passthrough_position, - std::optional passthrough_layer_attr, - std::optional viewport_mask_reg) { - constexpr std::array CULLED_POSITION{2.0f, 2.0f, 2.0f, 1.0f}; - IR::U1 culled{ir.Imm1(false)}; - IR::U32 viewport{ir.Imm32(0)}; - if (viewport_mask_reg) { - const IR::U32 mask{ir.GetReg(*viewport_mask_reg)}; - const IR::U32 lowest_bit{ir.BitwiseAnd(mask, IR::U32{ir.INeg(mask)})}; - culled = ir.IEqual(mask, ir.Imm32(0)); - viewport = IR::U32{ir.Select(culled, ir.Imm32(0), ir.FindUMsb(lowest_bit))}; - } + std::optional passthrough_layer_attr) { for (u32 i = 0; i < program.output_vertices; i++) { // Assign generics from input for (u32 j = 0; j < 32; j++) { @@ -203,19 +190,10 @@ void EmitGeometryPassthrough(IR::IREmitter& ir, const IR::Program& program, if (passthrough_position) { // Assign position from input const IR::Attribute attr = IR::Attribute::PositionX; - for (u32 component = 0; component < 4; ++component) { - IR::F32 value{ir.GetAttribute(attr + component, ir.Imm32(i))}; - if (viewport_mask_reg) { - value = IR::F32{ - ir.Select(culled, ir.Imm32(CULLED_POSITION[component]), value)}; - } - ir.SetAttribute(attr + component, value, ir.Imm32(0)); - } - } - - if (viewport_mask_reg) { - ir.SetAttribute(IR::Attribute::ViewportIndex, ir.BitCast(viewport), - ir.Imm32(0)); + ir.SetAttribute(attr + 0, ir.GetAttribute(attr + 0, ir.Imm32(i)), ir.Imm32(0)); + ir.SetAttribute(attr + 1, ir.GetAttribute(attr + 1, ir.Imm32(i)), ir.Imm32(0)); + ir.SetAttribute(attr + 2, ir.GetAttribute(attr + 2, ir.Imm32(i)), ir.Imm32(0)); + ir.SetAttribute(attr + 3, ir.GetAttribute(attr + 3, ir.Imm32(i)), ir.Imm32(0)); } if (passthrough_layer_attr) { @@ -241,91 +219,19 @@ u32 GetOutputTopologyVertices(OutputTopology output_topology) { } } -std::optional FindFreeRegister(const IR::Program& program) { - std::bitset used; - for (IR::Block* const block : program.blocks) { - for (const IR::Inst& inst : block->Instructions()) { - const IR::Opcode opcode{inst.GetOpcode()}; - if (opcode == IR::Opcode::GetRegister || opcode == IR::Opcode::SetRegister) { - used.set(IR::RegIndex(inst.Arg(0).Reg())); - } - } - } - for (size_t index = IR::NUM_USER_REGS; index-- > 0;) { - if (!used.test(index)) { - return static_cast(index); - } - } - return std::nullopt; -} - -std::optional LowerViewportMask(const IR::Program& program) { - const std::optional reg{FindFreeRegister(program)}; - if (!reg || program.blocks.empty()) { - return std::nullopt; - } - bool stores_mask{}; - for (IR::Block* const block : program.blocks) { - for (IR::Inst& inst : block->Instructions()) { - if (inst.GetOpcode() != IR::Opcode::SetAttribute || - inst.Arg(0).Attribute() != IR::Attribute::ViewportMask) { - continue; - } - IR::IREmitter ir{*block, IR::Block::InstructionList::s_iterator_to(inst)}; - ir.SetReg(*reg, ir.BitCast(IR::F32{inst.Arg(1)})); - inst.Invalidate(); - stores_mask = true; - } - } - if (!stores_mask) { - return std::nullopt; - } - IR::Block& entry{*program.blocks.front()}; - IR::IREmitter ir{entry, entry.begin()}; - ir.SetReg(*reg, ir.Imm32(1)); - return reg; -} - void LowerGeometryPassthrough(const IR::Program& program, const HostTranslateInfo& host_info) { - std::optional viewport_mask_reg; - if (!host_info.support_viewport_mask) { - viewport_mask_reg = LowerViewportMask(program); - } for (IR::Block* const block : program.blocks) { for (IR::Inst& inst : block->Instructions()) { if (inst.GetOpcode() == IR::Opcode::Epilogue) { IR::IREmitter ir{*block, IR::Block::InstructionList::s_iterator_to(inst)}; EmitGeometryPassthrough( ir, program, program.info.passthrough, - program.info.passthrough.AnyComponent(IR::Attribute::PositionX), {}, - viewport_mask_reg); + program.info.passthrough.AnyComponent(IR::Attribute::PositionX), {}); } } } } -void TightenOutputVertices(IR::Program& program) { - if (program.stage != Stage::Geometry || program.is_geometry_passthrough) { - return; - } - const bool has_loops = std::ranges::any_of(program.syntax_list, [](const auto& node) { - return node.type == IR::AbstractSyntaxNode::Type::Loop; - }); - if (has_loops) { - return; - } - u32 num_emits = 0; - for (IR::Block* const block : program.blocks) { - for (const IR::Inst& inst : block->Instructions()) { - if (inst.GetOpcode() == IR::Opcode::EmitVertex) { - ++num_emits; - } - } - } - if (num_emits != 0) { - program.output_vertices = (std::min)(program.output_vertices, num_emits); - } -} } // Anonymous namespace IR::Program TranslateProgram(ObjectPool& inst_pool, ObjectPool& block_pool, @@ -393,14 +299,12 @@ IR::Program TranslateProgram(ObjectPool& inst_pool, ObjectPool& inst_pool, IR::IREmitter ir{*current_block}; EmitGeometryPassthrough(ir, program, program.info.stores, true, - source_program.info.emulated_layer, std::nullopt); + source_program.info.emulated_layer); IR::Block* return_block{block_pool.Create(inst_pool)}; IR::IREmitter{*return_block}.Epilogue(); diff --git a/src/shader_recompiler/host_translate_info.h b/src/shader_recompiler/host_translate_info.h index 44df85ccb2..93ce881c2d 100644 --- a/src/shader_recompiler/host_translate_info.h +++ b/src/shader_recompiler/host_translate_info.h @@ -34,12 +34,10 @@ struct HostTranslateInfo { bool needs_demote_reorder{}; ///< True when the device needs DemoteToHelperInvocation reordered bool support_snorm_render_buffer{}; ///< True when the device supports SNORM render buffers bool support_viewport_index_layer{}; ///< True when the device supports gl_Layer in VS - bool support_viewport_mask{}; bool support_geometry_shader_passthrough{}; ///< True when the device supports geometry ///< passthrough shaders bool support_conditional_barrier{}; ///< True when the device supports barriers in conditional ///< control flow - bool single_lane_geometry_subgroups{}; void ApplyDescriptorLimitPolicy() noexcept { if (min_ssbo_alignment == 0) { diff --git a/src/shader_recompiler/ir_opt/constant_propagation_pass.cpp b/src/shader_recompiler/ir_opt/constant_propagation_pass.cpp index 6285fef16f..57c08588fb 100644 --- a/src/shader_recompiler/ir_opt/constant_propagation_pass.cpp +++ b/src/shader_recompiler/ir_opt/constant_propagation_pass.cpp @@ -1,4 +1,4 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project +// SPDX-FileCopyrightText: Copyright 2025 Eden Emulator Project // SPDX-License-Identifier: GPL-3.0-or-later // SPDX-FileCopyrightText: Copyright 2021 yuzu Emulator Project @@ -651,29 +651,6 @@ IR::Value GetThroughCast(IR::Value value, IR::Opcode expected_cast) { return value; } -u32 QuadButterflyMask(const IR::Inst& inst) { - if (inst.GetOpcode() == IR::Opcode::QuadSwap) { - const IR::Value direction{inst.Arg(1)}; - if (!direction.IsImmediate()) { - return 0; - } - return direction.U32() + 1; - } - if (inst.GetOpcode() != IR::Opcode::ShuffleButterfly) { - return 0; - } - const IR::Value index{inst.Arg(1)}; - const IR::Value clamp{inst.Arg(2)}; - const IR::Value segmentation_mask{inst.Arg(3)}; - if (!index.IsImmediate() || !clamp.IsImmediate() || !segmentation_mask.IsImmediate()) { - return 0; - } - if (clamp.U32() != 3 || segmentation_mask.U32() != 28) { - return 0; - } - return index.U32(); -} - void FoldFSwizzleAdd(IR::Block& block, IR::Inst& inst) { const IR::Value swizzle{inst.Arg(2)}; if (!swizzle.IsImmediate()) { @@ -689,8 +666,7 @@ void FoldFSwizzleAdd(IR::Block& block, IR::Inst& inst) { return; } IR::Inst* const inst2{value_1.InstRecursive()}; - const u32 lane_mask{QuadButterflyMask(*inst2)}; - if (lane_mask == 0) { + if (inst2->GetOpcode() != IR::Opcode::ShuffleButterfly) { return; } const IR::Value value_3{GetThroughCast(inst2->Arg(0).Resolve(), IR::Opcode::BitCastU32F32)}; @@ -702,15 +678,24 @@ void FoldFSwizzleAdd(IR::Block& block, IR::Inst& inst) { return; } } + const IR::Value index{inst2->Arg(1)}; + const IR::Value clamp{inst2->Arg(2)}; + const IR::Value segmentation_mask{inst2->Arg(3)}; + if (!index.IsImmediate() || !clamp.IsImmediate() || !segmentation_mask.IsImmediate()) { + return; + } + if (clamp.U32() != 3 || segmentation_mask.U32() != 28) { + return; + } if (swizzle_value == 0x99) { // DPdxFine - if (lane_mask == 1) { + if (index.U32() == 1) { IR::IREmitter ir{block, IR::Block::InstructionList::s_iterator_to(inst)}; inst.ReplaceUsesWith(ir.DPdxFine(IR::F32{inst.Arg(1)})); } } else if (swizzle_value == 0xA5) { // DPdyFine - if (lane_mask == 2) { + if (index.U32() == 2) { IR::IREmitter ir{block, IR::Block::InstructionList::s_iterator_to(inst)}; inst.ReplaceUsesWith(ir.DPdyFine(IR::F32{inst.Arg(1)})); } @@ -724,13 +709,6 @@ bool FindGradient3DDerivatives(std::array& results, IR::Value coor const auto check_through_shuffle = [](IR::Value input, IR::Value& result) { const IR::Value value_1{GetThroughCast(input.Resolve(), IR::Opcode::BitCastF32U32)}; IR::Inst* const inst2{value_1.InstRecursive()}; - if (inst2->GetOpcode() == IR::Opcode::QuadBroadcast) { - if (!inst2->Arg(1).Resolve().IsImmediate()) { - return false; - } - result = GetThroughCast(inst2->Arg(0).Resolve(), IR::Opcode::BitCastU32F32); - return true; - } if (inst2->GetOpcode() != IR::Opcode::ShuffleIndex) { return false; } diff --git a/src/shader_recompiler/ir_opt/geometry_compaction_pass.cpp b/src/shader_recompiler/ir_opt/geometry_compaction_pass.cpp deleted file mode 100644 index 98cfa47401..0000000000 --- a/src/shader_recompiler/ir_opt/geometry_compaction_pass.cpp +++ /dev/null @@ -1,129 +0,0 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - -#include - -#include "shader_recompiler/frontend/ir/ir_emitter.h" -#include "shader_recompiler/host_translate_info.h" -#include "shader_recompiler/ir_opt/passes.h" - -namespace Shader::Optimization { -namespace { -constexpr int MAX_BALLOT_DEPTH = 8; - -struct SlotAtomic { - IR::Block* block; - IR::Inst* atomic; - IR::Inst* ballot; -}; - -IR::Inst* FindBallot(const IR::Value& value, int depth) { - if (depth > MAX_BALLOT_DEPTH || value.IsImmediate()) { - return nullptr; - } - IR::Inst* const inst{value.InstRecursive()}; - if (inst->GetOpcode() == IR::Opcode::SubgroupBallot) { - return inst; - } - if (inst->GetOpcode() == IR::Opcode::Phi) { - return nullptr; - } - for (size_t index = 0; index < inst->NumArgs(); ++index) { - if (IR::Inst* const ballot{FindBallot(inst->Arg(index), depth + 1)}) { - return ballot; - } - } - return nullptr; -} - -bool IsShuffle(IR::Opcode opcode) { - switch (opcode) { - case IR::Opcode::ShuffleIndex: - case IR::Opcode::ShuffleUp: - case IR::Opcode::ShuffleDown: - case IR::Opcode::ShuffleButterfly: - return true; - default: - return false; - } -} - -IR::U32 PrimitiveSlot(IR::IREmitter& ir, u32 invocations, const IR::U32& amount) { - IR::U32 key{ir.GetAttributeU32(IR::Attribute::PrimitiveId)}; - if (invocations > 1) { - key = ir.IAdd(ir.IMul(key, ir.Imm32(invocations)), ir.InvocationId()); - } - return ir.IMul(key, amount); -} - -bool MergesAtomic(const IR::Inst& phi, const IR::Block& block, const IR::Inst& atomic) { - for (size_t index = 0; index < phi.NumArgs(); ++index) { - const IR::Value arg{phi.Arg(index)}; - if (phi.PhiBlock(index) == &block && !arg.IsImmediate() && - arg.InstRecursive() == &atomic) { - return true; - } - } - return false; -} - -void RewriteMergedSlots(IR::Block& block, IR::Inst& atomic, u32 invocations) { - for (IR::Block* const successor : block.ImmSuccessors()) { - for (IR::Inst& phi : successor->Instructions()) { - if (phi.GetOpcode() != IR::Opcode::Phi || !MergesAtomic(phi, block, atomic)) { - continue; - } - for (size_t index = 0; index < phi.NumArgs(); ++index) { - const IR::Value arg{phi.Arg(index)}; - if (arg.IsImmediate() || !IsShuffle(arg.InstRecursive()->GetOpcode())) { - continue; - } - IR::IREmitter ir{*phi.PhiBlock(index)}; - const IR::U32 amount{arg.InstRecursive()->Arg(0)}; - phi.SetArg(index, PrimitiveSlot(ir, invocations, amount)); - } - } - } -} - -void RewriteAtomic(IR::Block& block, IR::Inst& atomic, u32 invocations) { - const auto insert_point{IR::Block::InstructionList::s_iterator_to(atomic)}; - IR::IREmitter ir{block, insert_point}; - const IR::U32 amount{atomic.Arg(2)}; - const IR::U32 slot{PrimitiveSlot(ir, invocations, amount)}; - block.PrependNewInst(insert_point, IR::Opcode::StorageAtomicUMax32, - {atomic.Arg(0), atomic.Arg(1), ir.IAdd(slot, amount)}); - atomic.ReplaceUsesWith(slot); -} - -void NeutralizePredicate(IR::Inst& ballot) { - const IR::Value pred{ballot.Arg(0)}; - if (!pred.IsImmediate()) { - pred.InstRecursive()->ReplaceUsesWith(IR::Value{true}); - } -} -} - -void GeometryCompactionPass(IR::Program& program, const HostTranslateInfo& host_info) { - if (program.stage != Stage::Geometry || !host_info.single_lane_geometry_subgroups) { - return; - } - boost::container::small_vector slot_atomics; - for (IR::Block* const block : program.post_order_blocks) { - for (IR::Inst& inst : block->Instructions()) { - if (inst.GetOpcode() != IR::Opcode::StorageAtomicIAdd32) { - continue; - } - if (IR::Inst* const ballot{FindBallot(inst.Arg(2), 0)}) { - slot_atomics.push_back({block, &inst, ballot}); - } - } - } - for (const SlotAtomic& slot_atomic : slot_atomics) { - RewriteMergedSlots(*slot_atomic.block, *slot_atomic.atomic, program.invocations); - RewriteAtomic(*slot_atomic.block, *slot_atomic.atomic, program.invocations); - NeutralizePredicate(*slot_atomic.ballot); - } -} - -} diff --git a/src/shader_recompiler/ir_opt/passes.h b/src/shader_recompiler/ir_opt/passes.h index bf325a4cd9..1e637cb23c 100644 --- a/src/shader_recompiler/ir_opt/passes.h +++ b/src/shader_recompiler/ir_opt/passes.h @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2021 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later @@ -19,7 +16,6 @@ void CollectShaderInfoPass(Environment& env, IR::Program& program); void ConditionalBarrierPass(IR::Program& program); void ConstantPropagationPass(Environment& env, IR::Program& program); void DeadCodeEliminationPass(IR::Program& program); -void GeometryCompactionPass(IR::Program& program, const HostTranslateInfo& host_info); void GlobalMemoryToStorageBufferPass(IR::Program& program, const HostTranslateInfo& host_info); void IdentityRemovalPass(IR::Program& program); void LowerFp64ToFp32(IR::Program& program); @@ -32,7 +28,6 @@ void TexturePass(Environment& env, IR::Program& program, const HostTranslateInfo void LayerPass(IR::Program& program, const HostTranslateInfo& host_info); void VendorWorkaroundPass(IR::Program& program); void VerificationPass(const IR::Program& program); -bool HasBrokenPattern(const IR::Program& program); // Dual Vertex void VertexATransformPass(IR::Program& program); diff --git a/src/shader_recompiler/ir_opt/rescaling_pass.cpp b/src/shader_recompiler/ir_opt/rescaling_pass.cpp index cae8110a26..1e639096a8 100644 --- a/src/shader_recompiler/ir_opt/rescaling_pass.cpp +++ b/src/shader_recompiler/ir_opt/rescaling_pass.cpp @@ -67,11 +67,18 @@ void VisitMark(IR::Block& block, IR::Inst& inst) { if (must_patch_outside) { const auto it{IR::Block::InstructionList::s_iterator_to(inst)}; IR::IREmitter ir{block, it}; - IR::Inst* const new_inst{&*block.PrependNewInst(it, inst)}; - const IR::F32 new_bitcast{ir.ConvertUToF(32, 32, IR::Value{new_inst})}; - const IR::F32 up_factor{ir.FPRecip(ir.ResolutionDownFactor())}; - const IR::Value converted{ir.FPMul(new_bitcast, up_factor)}; - inst.ReplaceUsesWith(converted); + if (Settings::values.rescale_hack.GetValue()) { + const IR::F32 new_inst{&*block.PrependNewInst(it, inst)}; + const IR::F32 up_factor{ir.FPRecip(ir.ResolutionDownFactor())}; + const IR::Value converted{ir.FPMul(new_inst, up_factor)}; + inst.ReplaceUsesWith(converted); + } else { + IR::Inst* const new_inst{&*block.PrependNewInst(it, inst)}; + const IR::F32 new_bitcast{ir.ConvertUToF(32, 32, IR::Value{new_inst})}; + const IR::F32 up_factor{ir.FPRecip(ir.ResolutionDownFactor())}; + const IR::Value converted{ir.FPMul(new_bitcast, up_factor)}; + inst.ReplaceUsesWith(converted); + } } break; } diff --git a/src/shader_recompiler/ir_opt/texture_pass.cpp b/src/shader_recompiler/ir_opt/texture_pass.cpp index fae69ab91b..fe34a67555 100644 --- a/src/shader_recompiler/ir_opt/texture_pass.cpp +++ b/src/shader_recompiler/ir_opt/texture_pass.cpp @@ -31,60 +31,6 @@ struct TextureInst { using TextureInstVector = boost::container::small_vector; -const IR::Block* ConditionalHeader(const IR::Block* body) { - const auto predecessors{body->ImmPredecessors()}; - const auto successors{body->ImmSuccessors()}; - if (predecessors.size() != 1 || successors.size() != 1) return nullptr; - const IR::Block* const header{predecessors[0]}; - const auto targets{header->ImmSuccessors()}; - if (targets.size() != 2 || targets[0] != body || targets[1] != successors[0] || - targets[1]->ImmPredecessors().size() != 2 || header->empty() || - header->back().GetOpcode() != IR::Opcode::ConditionRef) { - return nullptr; - } - return header; -} - -std::pair Condition(IR::Value value) { - bool negated{}; - while (const IR::Inst* inst = value.TryInstRecursive()) { - if (inst->GetOpcode() == IR::Opcode::LogicalNot) negated = !negated; - else if (inst->GetOpcode() != IR::Opcode::ConditionRef) break; - value = inst->Arg(0); - } - return {value.Resolve(), negated}; -} - -IR::Value ResolveConditionalPhi(IR::Value value, const IR::Block* block) { - if (!value.Resolve().IsPhi() || !(block = ConditionalHeader(block))) return value; - const auto [condition, negated]{Condition(block->back().Arg(0))}; - boost::container::small_vector visited; - while (value.Resolve().IsPhi() && std::ranges::find(visited, block) == visited.end()) { - visited.push_back(block); - const IR::Inst* const phi{value.InstRecursive()}; - const auto predecessors{block->ImmPredecessors()}; - if (predecessors.size() == 1) { - block = predecessors[0]; - continue; - } - if (predecessors.size() != 2 || phi->NumArgs() != 2) break; - const IR::Block* body{predecessors[0]}; - const IR::Block* header{ConditionalHeader(body)}; - if (header != predecessors[1]) { - body = predecessors[1]; - header = ConditionalHeader(body); - if (header != predecessors[0]) break; - } - const auto [other_condition, other_negated]{Condition(header->back().Arg(0))}; - if (condition == other_condition && (phi->PhiBlock(0) == header || phi->PhiBlock(0) == body)) { - const IR::Block* const incoming{negated == other_negated ? body : header}; - value = phi->Arg(phi->PhiBlock(0) == incoming ? 0 : 1); - } - block = header; - } - return value; -} - constexpr u32 DESCRIPTOR_SIZE = 8; constexpr u32 DESCRIPTOR_SIZE_SHIFT = u32(std::countr_zero(DESCRIPTOR_SIZE)); constexpr u32 DESCRIPTOR_MAX_COUNT = 1024; @@ -353,23 +299,23 @@ static inline bool IsTexturePixelFormatIntegerCached(Environment& env, } -std::optional Track(const IR::Value& value, Environment& env, const HostTranslateInfo& host_info, const IR::Block* block); -static inline std::optional TrackCached(const IR::Value& v, Environment& env, const HostTranslateInfo& host_info, const IR::Block* block) { - if (const IR::Inst* key = v.TryInstRecursive()) { +std::optional Track(const IR::Value& value, Environment& env, const HostTranslateInfo& host_info); +static inline std::optional TrackCached(const IR::Value& v, Environment& env, const HostTranslateInfo& host_info) { + if (const IR::Inst* key = v.InstRecursive()) { if (auto it = env.track_cache.find(key); it != env.track_cache.end()) return it->second; - auto found = Track(v, env, host_info, block); + auto found = Track(v, env, host_info); if (found) env.track_cache.emplace(key, *found); return found; } - return Track(v, env, host_info, block); + return Track(v, env, host_info); } -std::optional TryGetConstBuffer(const IR::Inst* inst, Environment& env, const HostTranslateInfo& host_info, const IR::Block* block); +std::optional TryGetConstBuffer(const IR::Inst* inst, Environment& env, const HostTranslateInfo& host_info); -std::optional Track(const IR::Value& value, Environment& env, const HostTranslateInfo& host_info, const IR::Block* block) { - return IR::BreadthFirstSearch(value, [&env, &host_info, block](const IR::Inst* inst) { - return TryGetConstBuffer(inst, env, host_info, block); - }, [&](IR::Value operand) { return ResolveConditionalPhi(operand, block); }); +std::optional Track(const IR::Value& value, Environment& env, const HostTranslateInfo& host_info) { + return IR::BreadthFirstSearch(value, [&env, &host_info](const IR::Inst* inst) { + return TryGetConstBuffer(inst, env, host_info); + }); } std::optional TryGetConstant(IR::Value& value, Environment& env) { @@ -393,13 +339,13 @@ std::optional TryGetConstant(IR::Value& value, Environment& env) { return ReadCbufCached(env, index_number, offset_number); } -std::optional TryGetConstBuffer(const IR::Inst* inst, Environment& env, const HostTranslateInfo& host_info, const IR::Block* block) { +std::optional TryGetConstBuffer(const IR::Inst* inst, Environment& env, const HostTranslateInfo& host_info) { switch (inst->GetOpcode()) { default: return std::nullopt; case IR::Opcode::BitwiseOr32: { - std::optional lhs{TrackCached(inst->Arg(0), env, host_info, block)}; - std::optional rhs{TrackCached(inst->Arg(1), env, host_info, block)}; + std::optional lhs{TrackCached(inst->Arg(0), env, host_info)}; + std::optional rhs{TrackCached(inst->Arg(1), env, host_info)}; if (!lhs || !rhs) { return std::nullopt; } @@ -429,7 +375,7 @@ std::optional TryGetConstBuffer(const IR::Inst* inst, Environme if (!shift.IsImmediate()) { return std::nullopt; } - std::optional lhs{TrackCached(inst->Arg(0), env, host_info, block)}; + std::optional lhs{TrackCached(inst->Arg(0), env, host_info)}; if (lhs) { lhs->shift_left = shift.U32(); } @@ -457,7 +403,7 @@ std::optional TryGetConstBuffer(const IR::Inst* inst, Environme return std::nullopt; } while (false); } - std::optional lhs{TrackCached(op1, env, host_info, block)}; + std::optional lhs{TrackCached(op1, env, host_info)}; if (lhs) { lhs->shift_left = static_cast(std::countr_zero(op2.U32())); } @@ -523,7 +469,7 @@ std::optional TryGetConstBuffer(const IR::Inst* inst, Environme TextureInst MakeInst(Environment& env, IR::Block* block, IR::Inst& inst, const HostTranslateInfo& host_info) { ConstBufferAddr addr; if (IsBindless(inst)) { - const std::optional track_addr{TrackCached(inst.Arg(0), env, host_info, block)}; + const std::optional track_addr{TrackCached(inst.Arg(0), env, host_info)}; if (!track_addr) { throw NotImplementedException("Failed to track bindless texture constant buffer"); @@ -725,7 +671,6 @@ void TexturePass(Environment& env, IR::Program& program, const HostTranslateInfo env.track_cache.clear(); TextureInstVector to_replace; for (IR::Block* const block : program.post_order_blocks) { - env.track_cache.clear(); for (IR::Inst& inst : block->Instructions()) { if (!IsTextureInstruction(inst)) { continue; diff --git a/src/shader_recompiler/ir_opt/vendor_workaround_pass.cpp b/src/shader_recompiler/ir_opt/vendor_workaround_pass.cpp index 5842f6135b..08c658cb81 100644 --- a/src/shader_recompiler/ir_opt/vendor_workaround_pass.cpp +++ b/src/shader_recompiler/ir_opt/vendor_workaround_pass.cpp @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later @@ -79,44 +76,4 @@ void VendorWorkaroundPass(IR::Program& program) { } } -bool HasBrokenPattern(const IR::Program& program) { - if (program.stage != Stage::Fragment) { - return false; - } - for (const IR::Block* block : program.post_order_blocks) { - for (const IR::Inst& inst : block->Instructions()) { - switch (inst.GetOpcode()) { - case IR::Opcode::ShuffleIndex: - case IR::Opcode::ShuffleUp: - case IR::Opcode::ShuffleDown: - case IR::Opcode::ShuffleButterfly: - break; - default: - continue; - } - const IR::Value shuffle_arg{inst.Arg(0)}; - if (shuffle_arg.IsImmediate()) { - continue; - } - const IR::Inst* bitcast{shuffle_arg.InstRecursive()}; - if (!bitcast || bitcast->GetOpcode() != IR::Opcode::BitCastU32F32) { - continue; - } - const IR::Value bitcast_arg{bitcast->Arg(0)}; - if (bitcast_arg.IsImmediate()) { - continue; - } - const IR::Inst* attribute{bitcast_arg.InstRecursive()}; - if (!attribute || attribute->GetOpcode() != IR::Opcode::GetAttribute) { - continue; - } - const IR::Attribute attr{attribute->Arg(0).Attribute()}; - if (attr == IR::Attribute::PositionX || attr == IR::Attribute::PositionY) { - return true; - } - } - } - return false; -} - } // namespace Shader::Optimization diff --git a/src/shader_recompiler/profile.h b/src/shader_recompiler/profile.h index 8e9c83f888..d2ac480ab8 100644 --- a/src/shader_recompiler/profile.h +++ b/src/shader_recompiler/profile.h @@ -40,7 +40,6 @@ struct Profile { bool support_shader_quad_control{}; bool support_quad_shuffles{}; bool support_vote{}; - bool support_shuffle_relative{}; u32 supported_subgroup_stages{0x7F}; bool support_viewport_index_layer_non_geometry{}; bool support_viewport_mask{}; @@ -103,8 +102,6 @@ struct Profile { bool ignore_nan_fp_comparisons{}; /// Some drivers have broken support for OpVectorExtractDynamic on subgroup mask inputs bool has_broken_spirv_subgroup_mask_vector_extract_dynamic{}; - bool has_broken_spirv_subgroup_shuffle{}; - u32 max_subgroup_size{}; u32 gl_max_compute_smem_size{}; diff --git a/src/video_core/CMakeLists.txt b/src/video_core/CMakeLists.txt index 64d14ab2a6..14bd13b8af 100644 --- a/src/video_core/CMakeLists.txt +++ b/src/video_core/CMakeLists.txt @@ -302,50 +302,6 @@ if (ENABLE_LSFG) target_compile_definitions(video_core PUBLIC HAS_LSFG) endif() -if (ENABLE_RESHADE) - set(BUNDLED_FX_DIR ${CMAKE_SOURCE_DIR}/dist/post_shaders) - set(BUNDLED_FX_HEADER ${CMAKE_CURRENT_BINARY_DIR}/bundled_fx_effects.h) - file(GLOB BUNDLED_FX_FILES ${BUNDLED_FX_DIR}/*.fx) - - add_custom_command( - OUTPUT ${BUNDLED_FX_HEADER} - COMMAND ${CMAKE_COMMAND} -P - ${CMAKE_CURRENT_SOURCE_DIR}/post_processing/GenerateBundledEffects.cmake - ${BUNDLED_FX_DIR} ${BUNDLED_FX_HEADER} - DEPENDS ${BUNDLED_FX_FILES} - ) - - set(BUNDLED_PRESET_DIR ${CMAKE_SOURCE_DIR}/dist/post_presets) - set(BUNDLED_PRESET_HEADER ${CMAKE_CURRENT_BINARY_DIR}/bundled_fx_presets.h) - file(GLOB BUNDLED_PRESET_FILES ${BUNDLED_PRESET_DIR}/*.fxp) - - add_custom_command( - OUTPUT ${BUNDLED_PRESET_HEADER} - COMMAND ${CMAKE_COMMAND} -P - ${CMAKE_CURRENT_SOURCE_DIR}/post_processing/GenerateBundledPresets.cmake - ${BUNDLED_PRESET_DIR} ${BUNDLED_PRESET_HEADER} - DEPENDS ${BUNDLED_PRESET_FILES} - ) - - target_sources(video_core PRIVATE - post_processing/fx_chain.cpp - post_processing/fx_chain.h - post_processing/fx_compile.cpp - post_processing/fx_compile.h - post_processing/fx_effect.cpp - post_processing/fx_effect.h - post_processing/fx_preset.cpp - post_processing/fx_preset.h - renderer_vulkan/present/post_process.cpp - renderer_vulkan/present/post_process.h - ${BUNDLED_FX_HEADER} - ${BUNDLED_PRESET_HEADER} - ) - target_include_directories(video_core PRIVATE ${CMAKE_CURRENT_BINARY_DIR}) - target_link_libraries(video_core PRIVATE reshadefx::reshadefx) - target_compile_definitions(video_core PUBLIC HAS_RESHADE) -endif() - if (ENABLE_OPENGL) target_sources(video_core PRIVATE renderer_opengl/present/filters.cpp diff --git a/src/video_core/buffer_cache/buffer_cache.h b/src/video_core/buffer_cache/buffer_cache.h index f30c85911f..4c345dd213 100644 --- a/src/video_core/buffer_cache/buffer_cache.h +++ b/src/video_core/buffer_cache/buffer_cache.h @@ -121,7 +121,7 @@ void BufferCache

::UnmapGPUMemory(size_t as_id, GPUVAddr gpu_addr, size_t size template void BufferCache

::WriteMemory(DAddr device_addr, u64 size) { - if (IsRegionGpuModified(device_addr, size)) { + if (memory_tracker.IsRegionGpuModified(device_addr, size)) { ClearDownload(device_addr, size); gpu_modified_ranges.Subtract(device_addr, size); } @@ -249,10 +249,6 @@ bool BufferCache

::DMACopy(GPUVAddr src_address, GPUVAddr dest_address, u64 am runtime.CopyBuffer(dest_buffer, src_buffer, copies, true); if (has_new_downloads) { memory_tracker.MarkRegionAsGpuModified(*cpu_dest_address, amount); - const bool should_sync = Settings::IsGPUFenceBehaviorBalanced() || Settings::IsGPUFenceBehaviorAccurate(); - if (should_sync) { - runtime.Finish(); - } } Tegra::Memory::DeviceGuestMemoryScoped @@ -315,8 +311,11 @@ std::pair BufferCache

::ObtainCPUBuffer( MarkWrittenBuffer(buffer_id, device_addr, size); break; case ObtainBufferOperation::DiscardWrite: { - ClearDownload(device_addr, size); - gpu_modified_ranges.Subtract(device_addr, size); + const DAddr device_addr_start = Common::AlignDown(device_addr, 64); + const DAddr device_addr_end = Common::AlignUp(device_addr + size, 64); + const size_t new_size = device_addr_end - device_addr_start; + ClearDownload(device_addr_start, new_size); + gpu_modified_ranges.Subtract(device_addr_start, new_size); break; } default: @@ -1234,7 +1233,7 @@ void BufferCache

::BindHostComputeStorageBuffers() { buffer.MarkUsage(offset, size); if (is_written) { - MarkWrittenBuffer(binding.buffer_id, binding.device_addr, size, true); + MarkWrittenBuffer(binding.buffer_id, binding.device_addr, size); } if constexpr (NEEDS_BIND_STORAGE_INDEX) { @@ -1520,12 +1519,10 @@ void BufferCache

::UpdateComputeTextureBuffers() { } template -void BufferCache

::MarkWrittenBuffer(BufferId buffer_id, DAddr device_addr, u32 size, bool needs_sync) { +void BufferCache

::MarkWrittenBuffer(BufferId buffer_id, DAddr device_addr, u32 size) { if constexpr (!IS_OPENGL) { - if (needs_sync) { - Buffer& buffer = slot_buffers[buffer_id]; - buffer.setWriteTick(runtime.CurrentTick()); - } + Buffer& buffer = slot_buffers[buffer_id]; + buffer.setWriteTick(runtime.CurrentTick()); } memory_tracker.MarkRegionAsGpuModified(device_addr, size); gpu_modified_ranges.Add(device_addr, size); @@ -1541,11 +1538,8 @@ BufferId BufferCache

::FindBuffer(DAddr device_addr, u32 size, bool sparse_com const BufferId buffer_id = page_table[page]; if (buffer_id) { Buffer& buffer = slot_buffers[buffer_id]; + WaitForGpuFenceIfNeeded(buffer); if (buffer.IsInBounds(device_addr, size)) { - const bool should_sync = Settings::IsGPUFenceBehaviorAccurate(); - if (should_sync) { - SynchronizeBufferWrites(buffer); - } bool usable = true; if constexpr (requires { buffer.IsSparseCompatible(); }) { if (sparse_compatible && !buffer.IsSparseCompatible()) { @@ -1561,11 +1555,17 @@ BufferId BufferCache

::FindBuffer(DAddr device_addr, u32 size, bool sparse_com } template -void BufferCache

::SynchronizeBufferWrites(Buffer& buffer) { +void BufferCache

::WaitForGpuFenceIfNeeded(Buffer& buffer) { if constexpr (!IS_OPENGL) { - const u64 buffer_tick = buffer.getWriteTick(); - if (!runtime.IsFree(buffer_tick)) { - runtime.Wait(buffer_tick); + const bool gpu_fence_accurate = Settings::IsGPUFenceBehaviorAccurate(); + const bool gpu_fence_strict = Settings::IsGPUFenceBehaviorStrict(); + if (gpu_fence_accurate || gpu_fence_strict) { + const u64 gpu_tick_delay = gpu_fence_strict ? 0 : 3; + const u64 buffer_tick = buffer.getWriteTick(); + const u64 gpu_tick = runtime.KnownGpuTick(); + if (buffer_tick > gpu_tick + gpu_tick_delay) { + runtime.Wait(buffer_tick); + } } } } @@ -1664,7 +1664,7 @@ void BufferCache

::JoinOverlap(BufferId new_buffer_id, BufferId overlap_id, .size = overlap.SizeBytes(), }); new_buffer.MarkUsage(copies[0].dst_offset, copies[0].size); - runtime.CopyBuffer(new_buffer, overlap, copies, true); + runtime.CopyBuffer(new_buffer, overlap, FixSmallVectorADL(copies), true); #ifdef YUZU_LEGACY if (immediately_free) runtime.Finish(); @@ -1738,64 +1738,26 @@ void BufferCache

::TouchBuffer(Buffer& buffer, BufferId buffer_id) noexcept { template bool BufferCache

::SynchronizeBuffer(Buffer& buffer, DAddr device_addr, u32 size) { -#ifdef __ANDROID__ - const bool use_optimized_vertex_buffers = Settings::values.use_optimized_vertex_buffers.GetValue(); -#else - constexpr bool use_optimized_vertex_buffers = true; -#endif - - if (use_optimized_vertex_buffers) { - upload_copies.clear(); - u64 total_size_bytes = 0; - u64 largest_copy = 0; - const DAddr buffer_start = buffer.cpu_addr_cached; - const auto add_upload = [&](DAddr start, DAddr end) { - if (start == end) return; - const u64 range_size = end - start; - upload_copies.push_back(BufferCopy{ - .src_offset = total_size_bytes, - .dst_offset = start - buffer_start, - .size = range_size, - }); - total_size_bytes += range_size; - largest_copy = (std::max)(largest_copy, range_size); - }; - memory_tracker.ForEachUploadRange(device_addr, size, [&](u64 device_addr_out, u64 range_size) { - DAddr upload_start = device_addr_out; - gpu_modified_ranges.ForEachInRange(device_addr_out, range_size, [&](DAddr gpu_start, DAddr gpu_end) { - add_upload(upload_start, gpu_start); - upload_start = gpu_end; - }); - add_upload(upload_start, device_addr_out + range_size); + upload_copies.clear(); + u64 total_size_bytes = 0; + u64 largest_copy = 0; + const DAddr buffer_start = buffer.cpu_addr_cached; + memory_tracker.ForEachUploadRange(device_addr, size, [&](u64 device_addr_out, u64 range_size) { + upload_copies.push_back(BufferCopy{ + .src_offset = total_size_bytes, + .dst_offset = device_addr_out - buffer_start, + .size = range_size, }); - if (total_size_bytes == 0) { - return true; - } - const std::span copies_span(upload_copies.data(), upload_copies.size()); - UploadMemory(buffer, total_size_bytes, largest_copy, copies_span); - any_buffer_uploaded = true; - return false; - } else { - boost::container::small_vector copies; - u64 total_size_bytes = 0; - u64 largest_copy = 0; - DAddr buffer_start = buffer.CpuAddr(); - memory_tracker.ForEachUploadRange(device_addr, size, [&](u64 device_addr_out, u64 range_size) { - copies.push_back(BufferCopy{ - .src_offset = total_size_bytes, - .dst_offset = device_addr_out - buffer_start, - .size = range_size, - }); - total_size_bytes += range_size; - largest_copy = (std::max)(largest_copy, range_size); - }); - if (total_size_bytes == 0) { - return true; - } - const std::span copies_span(copies.data(), copies.size()); - UploadMemory(buffer, total_size_bytes, largest_copy, copies_span); - return false; + total_size_bytes += range_size; + largest_copy = (std::max)(largest_copy, range_size); + }); + if (total_size_bytes == 0) { + return true; } + const std::span copies_span(upload_copies.data(), upload_copies.size()); + UploadMemory(buffer, total_size_bytes, largest_copy, copies_span); + any_buffer_uploaded = true; + return false; } template @@ -1826,6 +1788,9 @@ void BufferCache

::ImmediateUploadMemory([[maybe_unused]] Buffer& buffer, if (immediate_buffer.empty()) { immediate_buffer = ImmediateBuffer(largest_copy); } + if (Settings::values.enable_gpu_buffer_readback.GetValue()) { + DownloadBufferMemory(buffer, device_addr, copy.size); + } device_memory.ReadBlockUnsafe(device_addr, immediate_buffer.data(), copy.size); upload_span = immediate_buffer.subspan(0, copy.size); } @@ -1844,6 +1809,9 @@ void BufferCache

::MappedUploadMemory([[maybe_unused]] Buffer& buffer, for (BufferCopy& copy : copies) { u8* const src_pointer = staging_pointer.data() + copy.src_offset; const DAddr device_addr = buffer.CpuAddr() + copy.dst_offset; + if (Settings::values.enable_gpu_buffer_readback.GetValue()) { + DownloadBufferMemory(buffer, device_addr, copy.size); + } device_memory.ReadBlockUnsafe(device_addr, src_pointer, copy.size); // Apply the staging offset copy.src_offset += upload_staging.offset; diff --git a/src/video_core/buffer_cache/buffer_cache_base.h b/src/video_core/buffer_cache/buffer_cache_base.h index 26bf3dd9ed..0dbb368c47 100644 --- a/src/video_core/buffer_cache/buffer_cache_base.h +++ b/src/video_core/buffer_cache/buffer_cache_base.h @@ -430,11 +430,11 @@ private: void UpdateComputeTextureBuffers(); - void MarkWrittenBuffer(BufferId buffer_id, DAddr device_addr, u32 size, bool needs_sync = false); + void MarkWrittenBuffer(BufferId buffer_id, DAddr device_addr, u32 size); [[nodiscard]] BufferId FindBuffer(DAddr device_addr, u32 size, bool sparse_compatible); - void SynchronizeBufferWrites(Buffer& buffer); + void WaitForGpuFenceIfNeeded(Buffer& buffer); [[nodiscard]] OverlapResult ResolveOverlaps(DAddr device_addr, u32 wanted_size); diff --git a/src/video_core/control/channel_state_cache.h b/src/video_core/control/channel_state_cache.h index cb7cc891f5..6d70e9be55 100644 --- a/src/video_core/control/channel_state_cache.h +++ b/src/video_core/control/channel_state_cache.h @@ -78,7 +78,7 @@ public: protected: static constexpr size_t UNSET_CHANNEL{(std::numeric_limits::max)()}; - P* channel_state = nullptr; + P* channel_state; size_t current_channel_id{UNSET_CHANNEL}; size_t current_address_space{}; Tegra::Engines::Maxwell3D* maxwell3d{}; diff --git a/src/video_core/dma_pusher.cpp b/src/video_core/dma_pusher.cpp index 2c0ba007ef..2417659f09 100644 --- a/src/video_core/dma_pusher.cpp +++ b/src/video_core/dma_pusher.cpp @@ -16,7 +16,7 @@ namespace Tegra { constexpr u32 MacroRegistersStart = 0xE00; -constexpr u32 ComputeInline = 0x6D; +[[maybe_unused]] constexpr u32 ComputeInline = 0x6D; DmaPusher::DmaPusher(Core::System& system_, MemoryManager& memory_manager_, Control::ChannelState& channel_state_) : system{system_} @@ -73,16 +73,11 @@ bool DmaPusher::Step() { synced = false; } + if (header.size > 0 && dma_state.method >= MacroRegistersStart && subchannels[dma_state.subchannel]) { + subchannels[dma_state.subchannel]->current_dirty = memory_manager.IsMemoryDirty(dma_state.dma_get, header.size * sizeof(u32)); + } + if (header.size > 0) { - if (subchannels[dma_state.subchannel] && dma_state.method_count) { - const auto engine = subchannel_type[dma_state.subchannel]; - const bool kepler_payload = engine == Engines::EngineTypes::KeplerCompute && dma_state.method == ComputeInline && dma_state.non_incrementing; - const bool macro_payload = engine == Engines::EngineTypes::Maxwell3D && dma_state.method >= MacroRegistersStart; - if (kepler_payload || macro_payload) { - const size_t words = std::min(dma_state.method_count, header.size); - subchannels[dma_state.subchannel]->current_dirty = memory_manager.IsMemoryDirty(dma_state.dma_get, words * sizeof(u32)); - } - } const bool use_safe = Settings::IsDMALevelDefault() ? Settings::IsGPULevelHigh() : Settings::IsDMALevelSafe(); if (use_safe) { Tegra::Memory::GpuGuestMemoryheaders(memory_manager, dma_state.dma_get, header.size, &command_headers); diff --git a/src/video_core/engines/kepler_compute.cpp b/src/video_core/engines/kepler_compute.cpp index 96a12539a2..1ef6e0fc0d 100644 --- a/src/video_core/engines/kepler_compute.cpp +++ b/src/video_core/engines/kepler_compute.cpp @@ -49,16 +49,13 @@ void KeplerCompute::CallMethod(Core::System& system, u32 method, u32 method_argu case KEPLER_COMPUTE_REG_INDEX(exec_upload): { UploadInfo info{.upload_address = upload_address, .exec_address = upload_state.ExecTargetAddress(), - .copy_size = upload_state.GetUploadSize(), - .was_dirty = upload_dirty}; + .copy_size = upload_state.GetUploadSize()}; uploads.push_back(info); upload_state.ProcessExec(regs.exec_upload.linear != 0); break; } case KEPLER_COMPUTE_REG_INDEX(data_upload): { upload_address = current_dma_segment; - upload_dirty = current_dirty; - current_dirty = false; upload_state.ProcessData(method_argument, is_last_call); break; } @@ -67,11 +64,9 @@ void KeplerCompute::CallMethod(Core::System& system, u32 method, u32 method_argu for (auto& data : uploads) { const GPUVAddr offset = data.exec_address - launch_desc_loc; - if (offset / sizeof(u32) == LAUNCH_REG_INDEX(grid_dim_x)) { - const bool source_dirty = memory_manager.IsMemoryDirty(data.upload_address, data.copy_size); - if (data.was_dirty || source_dirty) { - indirect_compute = {data.upload_address}; - } + if (offset / sizeof(u32) == LAUNCH_REG_INDEX(grid_dim_x) && + memory_manager.IsMemoryDirty(data.upload_address, data.copy_size)) { + indirect_compute = {data.upload_address}; } } uploads.clear(); @@ -88,8 +83,6 @@ void KeplerCompute::CallMultiMethod(Core::System& system, u32 method, const u32* switch (method) { case KEPLER_COMPUTE_REG_INDEX(data_upload): upload_address = current_dma_segment; - upload_dirty = current_dirty; - current_dirty = false; upload_state.ProcessData(base_start, amount); return; default: diff --git a/src/video_core/engines/kepler_compute.h b/src/video_core/engines/kepler_compute.h index 078d3d45be..4f7242f804 100644 --- a/src/video_core/engines/kepler_compute.h +++ b/src/video_core/engines/kepler_compute.h @@ -226,13 +226,11 @@ private: VideoCore::RasterizerInterface* rasterizer = nullptr; Upload::State upload_state; GPUVAddr upload_address; - bool upload_dirty{}; struct UploadInfo { GPUVAddr upload_address; GPUVAddr exec_address; u32 copy_size; - bool was_dirty; }; std::vector uploads; std::optional indirect_compute{}; diff --git a/src/video_core/fence_manager.h b/src/video_core/fence_manager.h index 776c01e3fa..885c714025 100644 --- a/src/video_core/fence_manager.h +++ b/src/video_core/fence_manager.h @@ -72,7 +72,7 @@ public: } void SignalFence(std::function&& func) { - const bool delay_fence = Settings::IsGPUFenceBehaviorDefault() ? Settings::IsGPULevelHigh() : Settings::IsGPUFenceBehaviorBalanced() || Settings::IsGPUFenceBehaviorAccurate(); + const bool delay_fence = Settings::IsGPUFenceBehaviorDefault() ? Settings::IsGPULevelHigh() : Settings::IsGPUFenceBehaviorBalanced() || Settings::IsGPUFenceBehaviorAccurate() || Settings::IsGPUFenceBehaviorStrict(); const bool should_flush = ShouldFlush(); if constexpr (!can_async_check) { TryReleasePendingFences(); diff --git a/src/video_core/frame_gen/lossless_dll.cpp b/src/video_core/frame_gen/lossless_dll.cpp index 6be1e5530f..5d2d08ffb3 100644 --- a/src/video_core/frame_gen/lossless_dll.cpp +++ b/src/video_core/frame_gen/lossless_dll.cpp @@ -45,7 +45,7 @@ constexpr u32 PERFORMANCE_SHADER_ID_FIRST = 280; constexpr u32 PERFORMANCE_SHADER_ID_LAST = 302; constexpr u32 CACHE_MAGIC = 0x4746534C; -constexpr u32 CACHE_VERSION = 3; +constexpr u32 CACHE_VERSION = 2; struct CacheHeader { u32 magic; @@ -53,6 +53,7 @@ struct CacheHeader { u64 source_size; u64 source_hash; u32 module_count; + u32 variant; }; struct Section { @@ -276,19 +277,41 @@ template return std::ranges::all_of(ids, [&](u32 id) { return resources.contains(id); }); } +[[nodiscard]] u32 VariantOffset(ShaderVariant variant) { + return variant == ShaderVariant::NativeFp16 ? PerformanceShader::NATIVE_FP16_OFFSET + : PerformanceShader::NATIVE_FP32_OFFSET; +} + template -[[nodiscard]] bool HasNativeShaders(const Map& resources) { +[[nodiscard]] bool HasNativeVariant(const Map& resources, ShaderVariant variant) { + const u32 offset = VariantOffset(variant); return std::ranges::all_of(PerformanceShaderIds(), [&](u32 id) { - const auto hit = resources.find(id + PerformanceShader::NATIVE_FP16_OFFSET); + const auto hit = resources.find(id + offset); return hit != resources.end() && IsSpirvModule(hit->second); }); } +[[nodiscard]] std::optional SelectVariant(const ResourceSpans& resources, + bool allow_fp16, bool prefer_fp16) { + if (prefer_fp16 && HasNativeVariant(resources, ShaderVariant::NativeFp16)) { + return ShaderVariant::NativeFp16; + } + if (HasNativeVariant(resources, ShaderVariant::NativeFp32)) { + return ShaderVariant::NativeFp32; + } + if (allow_fp16 && HasNativeVariant(resources, ShaderVariant::NativeFp16)) { + return ShaderVariant::NativeFp16; + } + return std::nullopt; +} + [[nodiscard]] LosslessStatus TranslateAll(const ResourceSpans& resources, - ShaderModules& out_modules) { + ShaderModules& out_modules, + ShaderVariant variant) { + const u32 offset = VariantOffset(variant); out_modules.clear(); for (const u32 id : PerformanceShaderIds()) { - const auto hit = resources.find(id + PerformanceShader::NATIVE_FP16_OFFSET); + const auto hit = resources.find(id + offset); if (hit == resources.end()) { return LosslessStatus::MissingShaders; } @@ -320,7 +343,7 @@ template } [[nodiscard]] bool ReadShaderCache(const std::filesystem::path& path, u64 source_size, - u64 source_hash, ShaderModules& out_modules) { + u64 source_hash, u32 variant, ShaderModules& out_modules) { if (!Common::FS::Exists(path)) { return false; } @@ -332,7 +355,8 @@ template return false; } if (header.magic != CACHE_MAGIC || header.version != CACHE_VERSION || - header.source_size != source_size || header.source_hash != source_hash) { + header.source_size != source_size || header.source_hash != source_hash || + header.variant != variant) { return false; } @@ -409,10 +433,8 @@ template return LosslessStatus::MissingShaders; } - if (!HasNativeShaders(out_resources)) { - return LosslessStatus::MissingShaders; - } - return LosslessStatus::Ok; + return HasPerformanceShaders(out_resources) ? LosslessStatus::Ok + : LosslessStatus::MissingShaders; } } // Anonymous namespace @@ -461,7 +483,7 @@ LosslessStatus GetInstalledLosslessStatus() { return ValidateLosslessDll(GetLosslessDllPath()); } -LosslessStatus LoadShaderModules(ShaderModules& out_modules) { +LosslessStatus LoadShaderModules(ShaderModules& out_modules, bool allow_fp16, bool prefer_fp16) { std::vector image; const LosslessStatus read_status = ReadImageFile(GetLosslessDllPath(), image); if (read_status != LosslessStatus::Ok) { @@ -479,11 +501,17 @@ LosslessStatus LoadShaderModules(ShaderModules& out_modules) { return parse_status; } - if (ReadShaderCache(cache_path, source_size, source_hash, out_modules)) { + const std::optional variant = SelectVariant(spans, allow_fp16, prefer_fp16); + if (!variant) { + return LosslessStatus::MissingShaders; + } + + if (ReadShaderCache(cache_path, source_size, source_hash, static_cast(*variant), + out_modules)) { return LosslessStatus::Ok; } - const LosslessStatus translate_status = TranslateAll(spans, out_modules); + const LosslessStatus translate_status = TranslateAll(spans, out_modules, *variant); if (translate_status != LosslessStatus::Ok) { return translate_status; } @@ -494,6 +522,7 @@ LosslessStatus LoadShaderModules(ShaderModules& out_modules) { .source_size = source_size, .source_hash = source_hash, .module_count = static_cast(out_modules.size()), + .variant = static_cast(*variant), }; if (!WriteShaderCache(cache_path, header, out_modules)) { void(Common::FS::RemoveFile(cache_path)); @@ -505,7 +534,7 @@ LosslessStatus LoadShaderModules(ShaderModules& out_modules) { LosslessStatus BuildShaderCache() { ShaderModules modules; - return LoadShaderModules(modules); + return LoadShaderModules(modules, true); } bool RemoveInstalledLosslessDll() { diff --git a/src/video_core/frame_gen/lossless_dll.h b/src/video_core/frame_gen/lossless_dll.h index 53e4974521..1d583d008f 100644 --- a/src/video_core/frame_gen/lossless_dll.h +++ b/src/video_core/frame_gen/lossless_dll.h @@ -28,6 +28,11 @@ enum class LosslessStatus : u32 { using ShaderResources = std::map>; using ShaderModules = std::map>; +enum class ShaderVariant : u32 { + NativeFp32 = 1, + NativeFp16 = 2, +}; + namespace PerformanceShader { constexpr u32 MIPMAPS = 255; constexpr u32 GENERATE = 256; @@ -37,6 +42,7 @@ constexpr std::array GAMMA{280, 282, 283, 284, 285}; constexpr std::array DELTA{280, 286, 287, 288, 289, 281, 294, 295, 296, 297}; constexpr u32 NATIVE_FP16_OFFSET = 49; +constexpr u32 NATIVE_FP32_OFFSET = 98; } // namespace PerformanceShader [[nodiscard]] std::filesystem::path GetLosslessDllPath(); @@ -52,7 +58,9 @@ constexpr u32 NATIVE_FP16_OFFSET = 49; [[nodiscard]] LosslessStatus BuildShaderCache(); -[[nodiscard]] LosslessStatus LoadShaderModules(ShaderModules& out_modules); +[[nodiscard]] LosslessStatus LoadShaderModules(ShaderModules& out_modules, + bool allow_fp16 = false, + bool prefer_fp16 = false); bool RemoveInstalledLosslessDll(); diff --git a/src/video_core/gpu.cpp b/src/video_core/gpu.cpp index 1621b24125..a2e87b260a 100644 --- a/src/video_core/gpu.cpp +++ b/src/video_core/gpu.cpp @@ -55,8 +55,8 @@ constexpr u64 GpuClockMultiplier(Settings::GpuClock clock) { struct GPU::Impl { explicit Impl(Core::System& system_, bool is_async_, bool use_nvdec_) - : system{system_} - , gpu_thread{system_} + : gpu_thread{system_} + , system{system_} , use_nvdec{use_nvdec_} , shader_notify() , is_async{is_async_} @@ -182,7 +182,6 @@ struct GPU::Impl { } void NotifyShutdown() { - gpu_thread.NotifyShutdown(); std::unique_lock lk{sync_mutex}; shutting_down.store(true, std::memory_order::relaxed); sync_cv.notify_all(); @@ -226,19 +225,7 @@ struct GPU::Impl { } /// Notify rasterizer that any caches of the specified region should be invalidated - void InvalidateRegion(DAddr addr, u64 size, bool preserve_gpu_writes) { - if (preserve_gpu_writes) { - VideoCore::RasterizerInterface* rasterizer = renderer->ReadRasterizer(); - if (!rasterizer->TryCacheInvalidation(addr, size)) { - const u64 fence = RequestSyncOperation([rasterizer, addr, size] { - rasterizer->FlushRegion(addr, size, VideoCommon::CacheType::BufferCache); - rasterizer->OnCacheInvalidation(addr, size); - }); - gpu_thread.TickGPU(is_async); - WaitForSyncOperation(fence); - } - return; - } + void InvalidateRegion(DAddr addr, u64 size) { gpu_thread.InvalidateRegion(addr, size); } @@ -314,12 +301,12 @@ struct GPU::Impl { return out; } - Core::System& system; - // Destruction of thread must be done before all (non trivial) // previous members has been destroyed VideoCommon::GPUThread::ThreadManager gpu_thread; + Core::System& system; + std::unique_ptr renderer; const bool use_nvdec; @@ -530,8 +517,8 @@ void GPU::FlushRegion(DAddr addr, u64 size) { impl->FlushRegion(addr, size); } -void GPU::InvalidateRegion(DAddr addr, u64 size, bool preserve_gpu_writes) { - impl->InvalidateRegion(addr, size, preserve_gpu_writes); +void GPU::InvalidateRegion(DAddr addr, u64 size) { + impl->InvalidateRegion(addr, size); } bool GPU::OnCPUWrite(DAddr addr, u64 size) { diff --git a/src/video_core/gpu.h b/src/video_core/gpu.h index 974d214e10..75956ea199 100644 --- a/src/video_core/gpu.h +++ b/src/video_core/gpu.h @@ -248,7 +248,7 @@ public: void FlushRegion(DAddr addr, u64 size); /// Notify rasterizer that any caches of the specified region should be invalidated - void InvalidateRegion(DAddr addr, u64 size, bool preserve_gpu_writes = false); + void InvalidateRegion(DAddr addr, u64 size); /// Notify rasterizer that CPU is trying to write this area. It returns true if the area is /// sensible, false otherwise, addr and size must be a valid combination diff --git a/src/video_core/gpu_thread.cpp b/src/video_core/gpu_thread.cpp index a01375e7be..2acf9ac458 100644 --- a/src/video_core/gpu_thread.cpp +++ b/src/video_core/gpu_thread.cpp @@ -114,11 +114,4 @@ u64 ThreadManager::PushCommand(CommandData&& command_data, bool block, bool is_a return fence; } -void ThreadManager::NotifyShutdown() { - if (thread.joinable()) { - thread.request_stop(); - thread.join(); - } -} - } // namespace VideoCommon::GPUThread diff --git a/src/video_core/gpu_thread.h b/src/video_core/gpu_thread.h index 631a680db4..4c3fadce15 100644 --- a/src/video_core/gpu_thread.h +++ b/src/video_core/gpu_thread.h @@ -125,8 +125,6 @@ public: void TickGPU(bool is_async); - void NotifyShutdown(); - private: /// Pushes a command to be executed by the GPU thread u64 PushCommand(CommandData&& command_data, bool block, bool is_async); diff --git a/src/video_core/memory_manager.cpp b/src/video_core/memory_manager.cpp index 8ffdcb6276..d5838a387d 100644 --- a/src/video_core/memory_manager.cpp +++ b/src/video_core/memory_manager.cpp @@ -713,7 +713,7 @@ void MemoryManager::FlushCaching() { if (accumulator.InvalidateAll([this](GPUVAddr addr, size_t size) { GetSubmappedRangeImpl(addr, size, page_stash2); })) { - rasterizer->InnerInvalidation(page_stash2); + rasterizer->InnerInvalidation(VideoCommon::FixSmallVectorADL(page_stash2)); page_stash2.clear(); } } diff --git a/src/video_core/post_processing/GenerateBundledEffects.cmake b/src/video_core/post_processing/GenerateBundledEffects.cmake deleted file mode 100644 index d3aca02571..0000000000 --- a/src/video_core/post_processing/GenerateBundledEffects.cmake +++ /dev/null @@ -1,50 +0,0 @@ -# SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -# SPDX-License-Identifier: GPL-3.0-or-later - -set(EFFECT_DIR ${CMAKE_ARGV3}) -set(HEADER_FILE ${CMAKE_ARGV4}) - -file(GLOB EFFECT_FILES ${EFFECT_DIR}/*.fx) -list(SORT EFFECT_FILES) - -set(ENTRIES "") -foreach(EFFECT_FILE IN LISTS EFFECT_FILES) - get_filename_component(EFFECT_NAME ${EFFECT_FILE} NAME) - file(READ ${EFFECT_FILE} EFFECT_BODY) - - string(REGEX REPLACE ";" "{{SEMICOLON}}" EFFECT_BODY "${EFFECT_BODY}") - string(REGEX REPLACE "\n" ";" EFFECT_BODY "${EFFECT_BODY}") - - set(EFFECT_TEXT "") - foreach(LINE IN LISTS EFFECT_BODY) - string(CONCAT EFFECT_TEXT "${EFFECT_TEXT}" " R\"(${LINE}\n)\"\n") - endforeach() - string(REGEX REPLACE "{{SEMICOLON}}" ";" EFFECT_TEXT "${EFFECT_TEXT}") - - string(CONCAT ENTRIES "${ENTRIES}" - " {\n \"${EFFECT_NAME}\",\n${EFFECT_TEXT} },\n") -endforeach() - -get_filename_component(OUTPUT_DIR ${HEADER_FILE} DIRECTORY) -make_directory(${OUTPUT_DIR}) - -file(WRITE ${HEADER_FILE} -"// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - -#pragma once - -#include - -namespace VideoCore { - -struct BundledFxEffect { - std::string_view name; - std::string_view source; -}; - -constexpr BundledFxEffect BUNDLED_FX_EFFECTS[]{ -${ENTRIES}}; - -} // namespace VideoCore -") diff --git a/src/video_core/post_processing/GenerateBundledPresets.cmake b/src/video_core/post_processing/GenerateBundledPresets.cmake deleted file mode 100644 index 369a46748d..0000000000 --- a/src/video_core/post_processing/GenerateBundledPresets.cmake +++ /dev/null @@ -1,50 +0,0 @@ -# SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -# SPDX-License-Identifier: GPL-3.0-or-later - -set(PRESET_DIR ${CMAKE_ARGV3}) -set(HEADER_FILE ${CMAKE_ARGV4}) - -file(GLOB PRESET_FILES ${PRESET_DIR}/*.fxp) -list(SORT PRESET_FILES) - -set(ENTRIES "") -foreach(PRESET_FILE IN LISTS PRESET_FILES) - get_filename_component(PRESET_NAME ${PRESET_FILE} NAME) - file(READ ${PRESET_FILE} PRESET_BODY) - - string(REGEX REPLACE ";" "{{SEMICOLON}}" PRESET_BODY "${PRESET_BODY}") - string(REGEX REPLACE "\n" ";" PRESET_BODY "${PRESET_BODY}") - - set(PRESET_TEXT "") - foreach(LINE IN LISTS PRESET_BODY) - string(CONCAT PRESET_TEXT "${PRESET_TEXT}" " R\"(${LINE}\n)\"\n") - endforeach() - string(REGEX REPLACE "{{SEMICOLON}}" ";" PRESET_TEXT "${PRESET_TEXT}") - - string(CONCAT ENTRIES "${ENTRIES}" - " {\n \"${PRESET_NAME}\",\n${PRESET_TEXT} },\n") -endforeach() - -get_filename_component(OUTPUT_DIR ${HEADER_FILE} DIRECTORY) -make_directory(${OUTPUT_DIR}) - -file(WRITE ${HEADER_FILE} -"// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - -#pragma once - -#include - -namespace VideoCore { - -struct BundledFxPreset { - std::string_view name; - std::string_view source; -}; - -constexpr BundledFxPreset BUNDLED_FX_PRESETS[]{ -${ENTRIES}}; - -} // namespace VideoCore -") diff --git a/src/video_core/post_processing/fx_chain.cpp b/src/video_core/post_processing/fx_chain.cpp deleted file mode 100644 index 882fdaf726..0000000000 --- a/src/video_core/post_processing/fx_chain.cpp +++ /dev/null @@ -1,321 +0,0 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - -#include -#include - -#include - -#include "common/settings.h" -#include "video_core/post_processing/fx_chain.h" -#include "video_core/post_processing/fx_effect.h" - -namespace VideoCore { - -namespace { - -std::vector Split(std::string_view value, char separator) { - std::vector out; - size_t start = 0; - while (start <= value.size()) { - size_t end = value.find(separator, start); - if (end == std::string_view::npos) { - end = value.size(); - } - out.push_back(value.substr(start, end - start)); - start = end + 1; - } - return out; -} - -bool IsSerializableName(std::string_view value) { - return value.find_first_of(";|,=") == std::string_view::npos; -} - -} // Anonymous namespace - -std::vector ParseFxChain(std::string_view value) { - std::vector parsed; - - for (const std::string_view record : Split(value, ';')) { - if (record.empty()) { - continue; - } - - const auto fields = Split(record, '|'); - if (fields.size() < 2 || fields[0].empty() || fields[1].empty()) { - continue; - } - - FxChainEntry entry; - entry.file = std::string(fields[0]); - entry.technique = std::string(fields[1]); - - if (fields.size() >= 3) { - for (const std::string_view assignment : Split(fields[2], ',')) { - const size_t equals = assignment.find('='); - if (equals == std::string_view::npos) { - continue; - } - const std::string name(assignment.substr(0, equals)); - if (name.empty()) { - continue; - } - - std::array components{}; - size_t index = 0; - for (const std::string_view piece : Split(assignment.substr(equals + 1), '/')) { - if (index >= components.size()) { - break; - } - const std::string text(piece); - if (!text.empty()) { - components[index] = std::strtof(text.c_str(), nullptr); - } - ++index; - } - entry.values.emplace(name, components); - } - } - - parsed.push_back(std::move(entry)); - } - - return parsed; -} - -std::string SerializeFxChain(std::span entries) { - std::string out; - - for (const auto& entry : entries) { - if (!IsSerializableName(entry.file) || !IsSerializableName(entry.technique)) { - continue; - } - if (!out.empty()) { - out += ';'; - } - out += fmt::format("{}|{}|", entry.file, entry.technique); - - bool first = true; - for (const auto& [name, value] : entry.values) { - if (!IsSerializableName(name)) { - continue; - } - if (!first) { - out += ','; - } - first = false; - out += name; - out += '='; - for (size_t i = 0; i < value.size(); ++i) { - if (i > 0) { - out += '/'; - } - out += fmt::format("{}", value[i]); - } - } - } - - return out; -} - -void UseGlobalFxSettings() { - Settings::values.post_shader_chain.SetGlobal(true); - Settings::values.post_shader_preset.SetGlobal(true); - Settings::values.post_shader_enabled.SetGlobal(true); -} - -void UsePerGameFxSettings() { - const std::string chain = Settings::values.post_shader_chain.GetValue(); - const std::string preset = Settings::values.post_shader_preset.GetValue(); - const bool enabled = Settings::values.post_shader_enabled.GetValue(); - - Settings::values.post_shader_chain.SetGlobal(false); - Settings::values.post_shader_preset.SetGlobal(false); - Settings::values.post_shader_enabled.SetGlobal(false); - - Settings::values.post_shader_chain.SetValue(chain); - Settings::values.post_shader_preset.SetValue(preset); - Settings::values.post_shader_enabled.SetValue(enabled); -} - -FxChain& FxChain::Instance() { - static FxChain instance; - return instance; -} - -FxChainSnapshot FxChain::Snapshot() const { - std::scoped_lock lock{mutex}; - return FxChainSnapshot{ - .entries = entries, - .generation = generation.load(std::memory_order_relaxed), - }; -} - -std::vector FxChain::Entries() const { - std::scoped_lock lock{mutex}; - return entries; -} - -size_t FxChain::Size() const { - std::scoped_lock lock{mutex}; - return entries.size(); -} - -void FxChain::Append(std::string_view file, std::string_view technique) { - { - std::scoped_lock lock{mutex}; - FxChainEntry entry; - entry.file = std::string(file); - entry.technique = std::string(technique); - entries.push_back(std::move(entry)); - } - generation.fetch_add(1, std::memory_order_relaxed); -} - -void FxChain::Replace(size_t index, std::string_view file, std::string_view technique) { - { - std::scoped_lock lock{mutex}; - if (index >= entries.size()) { - return; - } - if (entries[index].file == file && entries[index].technique == technique) { - return; - } - FxChainEntry entry; - entry.file = std::string(file); - entry.technique = std::string(technique); - entries[index] = std::move(entry); - } - generation.fetch_add(1, std::memory_order_relaxed); -} - -void FxChain::Remove(size_t index) { - { - std::scoped_lock lock{mutex}; - if (index >= entries.size()) { - return; - } - entries.erase(entries.begin() + static_cast(index)); - } - generation.fetch_add(1, std::memory_order_relaxed); -} - -void FxChain::Move(size_t index, int delta) { - { - std::scoped_lock lock{mutex}; - if (index >= entries.size()) { - return; - } - const std::ptrdiff_t target = static_cast(index) + delta; - if (target < 0 || target >= static_cast(entries.size())) { - return; - } - std::swap(entries[index], entries[static_cast(target)]); - } - generation.fetch_add(1, std::memory_order_relaxed); -} - -void FxChain::Clear() { - { - std::scoped_lock lock{mutex}; - entries.clear(); - } - generation.fetch_add(1, std::memory_order_relaxed); -} - -void FxChain::SetEntries(std::vector next) { - { - std::scoped_lock lock{mutex}; - entries = std::move(next); - } - generation.fetch_add(1, std::memory_order_relaxed); -} - -void FxChain::SetValue(size_t index, std::string_view uniform, const std::array& value) { - std::scoped_lock lock{mutex}; - if (index >= entries.size()) { - return; - } - entries[index].values[std::string(uniform)] = value; -} - -std::array FxChain::GetValue(size_t index, std::string_view uniform) const { - std::scoped_lock lock{mutex}; - if (index >= entries.size()) { - return {}; - } - const auto it = entries[index].values.find(std::string(uniform)); - if (it == entries[index].values.end()) { - return {}; - } - return it->second; -} - -std::map> FxChain::EntryValues(size_t index) const { - std::scoped_lock lock{mutex}; - if (index >= entries.size()) { - return {}; - } - return entries[index].values; -} - -bool FxChain::HasValue(size_t index, std::string_view uniform) const { - std::scoped_lock lock{mutex}; - if (index >= entries.size()) { - return false; - } - return entries[index].values.contains(std::string(uniform)); -} - -void FxChain::ResetValues(size_t index) { - std::scoped_lock lock{mutex}; - if (index >= entries.size()) { - return; - } - entries[index].values.clear(); -} - -void FxChain::LoadFromSettings() { - auto parsed = ParseFxChain(Settings::values.post_shader_chain.GetValue()); - - std::scoped_lock lock{mutex}; - if (entries == parsed) { - return; - } - entries = std::move(parsed); - generation.fetch_add(1, std::memory_order_relaxed); -} - -void FxChain::StoreToSettings() const { - std::string serialized; - { - std::scoped_lock lock{mutex}; - serialized = SerializeFxChain(entries); - } - Settings::values.post_shader_chain.SetValue(serialized); -} - -void FxChain::DropUnknownEntries() { - bool changed = false; - { - std::scoped_lock lock{mutex}; - const auto removed = std::remove_if(entries.begin(), entries.end(), [](const FxChainEntry& entry) { - const FxEffectDesc* effect = FindFxEffect(entry.file); - if (effect == nullptr || !effect->Valid()) { - return true; - } - return std::find(effect->techniques.begin(), effect->techniques.end(), - entry.technique) == effect->techniques.end(); - }); - if (removed != entries.end()) { - entries.erase(removed, entries.end()); - changed = true; - } - } - if (changed) { - generation.fetch_add(1, std::memory_order_relaxed); - } -} - -} // namespace VideoCore diff --git a/src/video_core/post_processing/fx_chain.h b/src/video_core/post_processing/fx_chain.h deleted file mode 100644 index 066f7e428d..0000000000 --- a/src/video_core/post_processing/fx_chain.h +++ /dev/null @@ -1,86 +0,0 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - -#pragma once - -#include -#include -#include -#include -#include -#include -#include -#include - -#include "common/common_types.h" - -namespace VideoCore { - -struct FxChainEntry { - std::string file; - std::string technique; - std::map> values; - - bool operator==(const FxChainEntry&) const = default; -}; - -struct FxChainSnapshot { - std::vector entries; - u64 generation{}; -}; - -std::vector ParseFxChain(std::string_view value); - -std::string SerializeFxChain(std::span entries); - -void UseGlobalFxSettings(); - -void UsePerGameFxSettings(); - -class FxChain { -public: - static FxChain& Instance(); - - FxChainSnapshot Snapshot() const; - - std::vector Entries() const; - - size_t Size() const; - - void Append(std::string_view file, std::string_view technique); - - void Replace(size_t index, std::string_view file, std::string_view technique); - - void Remove(size_t index); - - void Move(size_t index, int delta); - - void Clear(); - - void SetEntries(std::vector next); - - void SetValue(size_t index, std::string_view uniform, const std::array& value); - - std::array GetValue(size_t index, std::string_view uniform) const; - - std::map> EntryValues(size_t index) const; - - bool HasValue(size_t index, std::string_view uniform) const; - - void ResetValues(size_t index); - - void LoadFromSettings(); - - void StoreToSettings() const; - - void DropUnknownEntries(); - -private: - FxChain() = default; - - mutable std::mutex mutex; - std::vector entries; - std::atomic generation{1}; -}; - -} // namespace VideoCore diff --git a/src/video_core/post_processing/fx_compile.cpp b/src/video_core/post_processing/fx_compile.cpp deleted file mode 100644 index 5ee11e9187..0000000000 --- a/src/video_core/post_processing/fx_compile.cpp +++ /dev/null @@ -1,105 +0,0 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - -#include -#include -#include - -#include "effect_codegen.hpp" -#include "effect_parser.hpp" -#include "effect_preprocessor.hpp" - -#include "common/fs/fs.h" -#include "common/fs/fs_util.h" -#include "video_core/post_processing/fx_compile.h" -#include "video_core/post_processing/fx_effect.h" - -namespace VideoCore { - -FxCompileResult CompileFxEffect(const std::filesystem::path& path, u32 width, u32 height, - u32 color_bit_depth) { - FxCompileResult result; - - if (!Common::FS::Exists(path)) { - result.error = "Effect file not found: " + Common::FS::PathToUTF8String(path); - return result; - } - - reshadefx::preprocessor preprocessor; - preprocessor.add_macro_definition("__RESHADE__", "60800"); - preprocessor.add_macro_definition("__RESHADE_PERFORMANCE_MODE__", "1"); - preprocessor.add_macro_definition("__RENDERER__", "0x20000"); - preprocessor.add_macro_definition("__VENDOR__", "0"); - preprocessor.add_macro_definition("__DEVICE__", "0"); - preprocessor.add_macro_definition("__APPLICATION__", "0"); - preprocessor.add_macro_definition("BUFFER_WIDTH", std::to_string(width)); - preprocessor.add_macro_definition("BUFFER_HEIGHT", std::to_string(height)); - preprocessor.add_macro_definition("BUFFER_RCP_WIDTH", "(1.0 / BUFFER_WIDTH)"); - preprocessor.add_macro_definition("BUFFER_RCP_HEIGHT", "(1.0 / BUFFER_HEIGHT)"); - preprocessor.add_macro_definition("BUFFER_COLOR_DEPTH", std::to_string(color_bit_depth)); - preprocessor.add_macro_definition("BUFFER_COLOR_BIT_DEPTH", std::to_string(color_bit_depth)); - - for (const auto& include : GetFxIncludePaths(path)) { - preprocessor.add_include_path(include); - } - - if (!preprocessor.append_file(path)) { - result.error = preprocessor.errors(); - if (result.error.empty()) { - result.error = "Failed to preprocess " + Common::FS::PathToUTF8String(path); - } - return result; - } - - std::unique_ptr backend( - reshadefx::create_codegen_spirv(true, false, false, false, true)); - - reshadefx::parser parser; - if (!parser.parse(preprocessor.output(), backend.get())) { - result.error = parser.errors(); - if (result.error.empty()) { - result.error = "Failed to parse " + Common::FS::PathToUTF8String(path); - } - return result; - } - - result.module = backend->module(); - - std::set wanted; - for (const auto& technique : result.module.techniques) { - for (const auto& pass : technique.passes) { - if (!pass.vs_entry_point.empty()) { - wanted.insert(pass.vs_entry_point); - } - if (!pass.ps_entry_point.empty()) { - wanted.insert(pass.ps_entry_point); - } - } - } - - for (const auto& name : wanted) { - std::string binary; - std::string assembly; - std::string errors; - if (!backend->assemble_code_for_entry_point(name, binary, assembly, errors)) { - result.error = "Failed to assemble entry point '" + name + "': " + errors; - return result; - } - if (binary.size() % sizeof(u32) != 0) { - result.error = "Entry point '" + name + "' produced a malformed SPIR-V module"; - return result; - } - - std::vector words(binary.size() / sizeof(u32)); - std::memcpy(words.data(), binary.data(), binary.size()); - result.entry_points.emplace(name, std::move(words)); - } - - if (result.entry_points.empty()) { - result.error = "Effect declares no usable entry points"; - } - - return result; -} - -} // namespace VideoCore diff --git a/src/video_core/post_processing/fx_compile.h b/src/video_core/post_processing/fx_compile.h deleted file mode 100644 index f4b70f3a2c..0000000000 --- a/src/video_core/post_processing/fx_compile.h +++ /dev/null @@ -1,29 +0,0 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - -#pragma once - -#include -#include -#include -#include - -#include "common/common_types.h" -#include "effect_module.hpp" - -namespace VideoCore { - -struct FxCompileResult { - reshadefx::effect_module module; - std::map> entry_points; - std::string error; - - bool Succeeded() const { - return error.empty() && !entry_points.empty(); - } -}; - -FxCompileResult CompileFxEffect(const std::filesystem::path& path, u32 width, u32 height, - u32 color_bit_depth); - -} // namespace VideoCore diff --git a/src/video_core/post_processing/fx_effect.cpp b/src/video_core/post_processing/fx_effect.cpp deleted file mode 100644 index 7bb36b0467..0000000000 --- a/src/video_core/post_processing/fx_effect.cpp +++ /dev/null @@ -1,307 +0,0 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - -#include - -#include "bundled_fx_effects.h" -#include "common/fs/file.h" -#include "common/fs/fs.h" -#include "common/fs/fs_util.h" -#include "common/fs/path_util.h" -#include "common/logging.h" -#include "video_core/post_processing/fx_compile.h" -#include "video_core/post_processing/fx_effect.h" - -namespace VideoCore { - -namespace { - -constexpr u32 CATALOG_PROBE_WIDTH = 1280; -constexpr u32 CATALOG_PROBE_HEIGHT = 720; -constexpr u32 CATALOG_PROBE_DEPTH = 8; - -std::vector catalog; -bool catalog_scanned = false; - -const reshadefx::annotation* FindAnnotation(const std::vector& annotations, - std::string_view name) { - const auto it = std::find_if(annotations.begin(), annotations.end(), - [&](const reshadefx::annotation& a) { return a.name == name; }); - if (it == annotations.end()) { - return nullptr; - } - return &*it; -} - -std::string AnnotationString(const std::vector& annotations, - std::string_view name) { - const reshadefx::annotation* a = FindAnnotation(annotations, name); - if (a == nullptr) { - return std::string(); - } - return a->value.string_data; -} - -bool AnnotationFloat(const std::vector& annotations, std::string_view name, - f32& out) { - const reshadefx::annotation* a = FindAnnotation(annotations, name); - if (a == nullptr) { - return false; - } - if (a->type.is_floating_point()) { - out = a->value.as_float[0]; - return true; - } - if (a->type.is_integral()) { - out = static_cast(a->value.as_int[0]); - return true; - } - return false; -} - -FxUiType ParseUiType(std::string_view value) { - if (value == "slider") { - return FxUiType::Slider; - } - if (value == "drag") { - return FxUiType::Drag; - } - if (value == "combo") { - return FxUiType::Combo; - } - if (value == "radio") { - return FxUiType::Radio; - } - if (value == "check" || value == "checkbox") { - return FxUiType::CheckBox; - } - if (value == "color") { - return FxUiType::Color; - } - if (value == "input") { - return FxUiType::InputBox; - } - return FxUiType::Hidden; -} - -std::vector SplitItems(const std::string& items) { - std::vector out; - std::string current; - for (const char c : items) { - if (c == '\0') { - out.push_back(current); - current.clear(); - continue; - } - current += c; - } - if (!current.empty()) { - out.push_back(current); - } - return out; -} - -FxUniformDesc DescribeUniform(const reshadefx::uniform& info) { - FxUniformDesc desc; - desc.name = info.name; - desc.components = std::min(info.type.components(), 4); - - if (info.type.is_boolean()) { - desc.kind = FxUniformKind::Boolean; - } else if (info.type.is_integral()) { - desc.kind = FxUniformKind::Integer; - } else { - desc.kind = FxUniformKind::Floating; - } - - desc.label = AnnotationString(info.annotations, "ui_label"); - if (desc.label.empty()) { - desc.label = info.name; - } - desc.tooltip = AnnotationString(info.annotations, "ui_tooltip"); - desc.category = AnnotationString(info.annotations, "ui_category"); - desc.ui_type = ParseUiType(AnnotationString(info.annotations, "ui_type")); - desc.items = SplitItems(AnnotationString(info.annotations, "ui_items")); - - if (desc.kind == FxUniformKind::Boolean) { - desc.ui_min = 0.0f; - desc.ui_max = 1.0f; - desc.ui_step = 1.0f; - } else if (desc.kind == FxUniformKind::Integer) { - desc.ui_min = 0.0f; - desc.ui_max = 100.0f; - desc.ui_step = 1.0f; - } - - void(AnnotationFloat(info.annotations, "ui_min", desc.ui_min)); - void(AnnotationFloat(info.annotations, "ui_max", desc.ui_max)); - void(AnnotationFloat(info.annotations, "ui_step", desc.ui_step)); - - if (desc.ui_step <= 0.0f) { - desc.ui_step = 0.01f; - if (desc.kind != FxUniformKind::Floating) { - desc.ui_step = 1.0f; - } - } - if (desc.ui_max < desc.ui_min) { - std::swap(desc.ui_min, desc.ui_max); - } - - if (info.has_initializer_value) { - for (u32 i = 0; i < desc.components; ++i) { - if (desc.kind == FxUniformKind::Floating) { - desc.default_value[i] = info.initializer_value.as_float[i]; - } else { - desc.default_value[i] = static_cast(info.initializer_value.as_int[i]); - } - } - } - - return desc; -} - -FxEffectDesc DescribeEffect(const std::filesystem::path& path, const std::filesystem::path& root) { - FxEffectDesc desc; - desc.file = Common::FS::PathToUTF8String(std::filesystem::relative(path, root)); - desc.name = Common::FS::PathToUTF8String(path.stem()); - - const auto compiled = - CompileFxEffect(path, CATALOG_PROBE_WIDTH, CATALOG_PROBE_HEIGHT, CATALOG_PROBE_DEPTH); - if (!compiled.Succeeded()) { - desc.error = compiled.error; - return desc; - } - - for (const auto& technique : compiled.module.techniques) { - desc.techniques.push_back(technique.name); - } - - if (!compiled.module.techniques.empty()) { - const auto& annotations = compiled.module.techniques.front().annotations; - desc.label = AnnotationString(annotations, "ui_label"); - desc.description = AnnotationString(annotations, "ui_tooltip"); - } - if (desc.label.empty()) { - desc.label = desc.name; - } - - for (const auto& uniform : compiled.module.uniforms) { - FxUniformDesc uniform_desc = DescribeUniform(uniform); - if (uniform_desc.ui_type == FxUiType::Hidden) { - continue; - } - desc.uniforms.push_back(std::move(uniform_desc)); - } - - return desc; -} - -} // Anonymous namespace - -std::filesystem::path GetFxRootDirectory() { - return Common::FS::GetEdenPath(Common::FS::EdenPath::PostShaderDir); -} - -std::vector GetFxIncludePaths(const std::filesystem::path& effect_path) { - const auto root = GetFxRootDirectory(); - std::vector paths; - paths.push_back(effect_path.parent_path()); - paths.push_back(root); - paths.push_back(root / "Shaders"); - - const auto last = std::unique(paths.begin(), paths.end()); - paths.erase(last, paths.end()); - return paths; -} - -std::filesystem::path ResolveFxTexturePath(const std::filesystem::path& effect_path, - std::string_view source) { - const auto root = GetFxRootDirectory(); - const std::filesystem::path name{source}; - - const std::array candidates{ - effect_path.parent_path() / name, - root / "Textures" / name, - root / name, - }; - - for (const auto& candidate : candidates) { - if (Common::FS::Exists(candidate)) { - return candidate; - } - } - - return std::filesystem::path(); -} - -void ReloadFxCatalog() { - catalog.clear(); - catalog_scanned = true; - - const auto root = GetFxRootDirectory(); - if (!Common::FS::Exists(root) && !Common::FS::CreateDirs(root)) { - return; - } - - for (const auto& bundled : BUNDLED_FX_EFFECTS) { - const auto path = root / bundled.name; - if (Common::FS::Exists(path)) { - continue; - } - void(Common::FS::WriteStringToFile(path, Common::FS::FileType::TextFile, bundled.source)); - } - - std::vector effect_files; - Common::FS::IterateDirEntriesRecursively( - root, - [&](const std::filesystem::directory_entry& entry) { - if (entry.path().extension() == ".fx") { - effect_files.push_back(entry.path()); - } - return true; - }, - Common::FS::DirEntryFilter::File); - - std::sort(effect_files.begin(), effect_files.end()); - - for (const auto& file : effect_files) { - FxEffectDesc desc = DescribeEffect(file, root); - if (!desc.error.empty()) { - LOG_WARNING(Render, "Post-processing effect '{}' failed to compile:\n{}", desc.file, - desc.error); - } - catalog.push_back(std::move(desc)); - } - - const size_t usable = std::count_if(catalog.begin(), catalog.end(), - [](const FxEffectDesc& d) { return d.Valid(); }); - LOG_INFO(Render, "Loaded {} post-processing effects ({} usable)", catalog.size(), usable); -} - -const std::vector& GetFxCatalog() { - if (!catalog_scanned) { - ReloadFxCatalog(); - } - return catalog; -} - -const FxEffectDesc* FindFxEffect(std::string_view file) { - const auto& effects = GetFxCatalog(); - const auto it = std::find_if(effects.begin(), effects.end(), - [&](const FxEffectDesc& d) { return d.file == file; }); - if (it == effects.end()) { - return nullptr; - } - return &*it; -} - -const FxUniformDesc* FindFxUniform(const FxEffectDesc& effect, std::string_view name) { - const auto it = std::find_if(effect.uniforms.begin(), effect.uniforms.end(), - [&](const FxUniformDesc& u) { return u.name == name; }); - if (it == effect.uniforms.end()) { - return nullptr; - } - return &*it; -} - -} // namespace VideoCore diff --git a/src/video_core/post_processing/fx_effect.h b/src/video_core/post_processing/fx_effect.h deleted file mode 100644 index bedf68809a..0000000000 --- a/src/video_core/post_processing/fx_effect.h +++ /dev/null @@ -1,77 +0,0 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - -#pragma once - -#include -#include -#include -#include -#include - -#include "common/common_types.h" - -namespace VideoCore { - -enum class FxUniformKind { - Boolean, - Integer, - Floating, -}; - -enum class FxUiType { - Hidden, - Slider, - Drag, - Combo, - Radio, - CheckBox, - Color, - InputBox, -}; - -struct FxUniformDesc { - std::string name; - std::string label; - std::string tooltip; - std::string category; - FxUniformKind kind{FxUniformKind::Floating}; - u32 components{1}; - FxUiType ui_type{FxUiType::Hidden}; - f32 ui_min{0.0f}; - f32 ui_max{1.0f}; - f32 ui_step{0.01f}; - std::vector items; - std::array default_value{}; -}; - -struct FxEffectDesc { - std::string file; - std::string name; - std::string label; - std::string description; - std::vector techniques; - std::vector uniforms; - std::string error; - - bool Valid() const { - return error.empty() && !techniques.empty(); - } -}; - -std::filesystem::path GetFxRootDirectory(); - -std::vector GetFxIncludePaths(const std::filesystem::path& effect_path); - -std::filesystem::path ResolveFxTexturePath(const std::filesystem::path& effect_path, - std::string_view source); - -void ReloadFxCatalog(); - -const std::vector& GetFxCatalog(); - -const FxEffectDesc* FindFxEffect(std::string_view file); - -const FxUniformDesc* FindFxUniform(const FxEffectDesc& effect, std::string_view name); - -} // namespace VideoCore diff --git a/src/video_core/post_processing/fx_preset.cpp b/src/video_core/post_processing/fx_preset.cpp deleted file mode 100644 index bd66a7d807..0000000000 --- a/src/video_core/post_processing/fx_preset.cpp +++ /dev/null @@ -1,261 +0,0 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - -#include - -#include "bundled_fx_presets.h" -#include "common/fs/file.h" -#include "common/fs/fs.h" -#include "common/fs/path_util.h" -#include "common/settings.h" -#include "video_core/post_processing/fx_chain.h" -#include "video_core/post_processing/fx_preset.h" - -namespace VideoCore { - -namespace { - -std::vector preset_catalog; -bool preset_catalog_scanned = false; - -std::string Trim(std::string_view value) { - size_t begin = 0; - while (begin < value.size() && (value[begin] == ' ' || value[begin] == '\t')) { - ++begin; - } - size_t end = value.size(); - while (end > begin) { - const char c = value[end - 1]; - if (c != ' ' && c != '\t' && c != '\r' && c != '\n') { - break; - } - --end; - } - return std::string(value.substr(begin, end - begin)); -} - -FxPresetDesc ParsePreset(std::string_view text) { - FxPresetDesc desc; - - size_t start = 0; - while (start <= text.size()) { - size_t end = text.find('\n', start); - if (end == std::string_view::npos) { - end = text.size(); - } - const std::string_view line = text.substr(start, end - start); - start = end + 1; - - const size_t equals = line.find('='); - if (equals == std::string_view::npos) { - continue; - } - - const std::string key = Trim(line.substr(0, equals)); - const std::string value = Trim(line.substr(equals + 1)); - - if (key == "name") { - desc.name = value; - } else if (key == "description") { - desc.description = value; - } else if (key == "chain") { - desc.chain = value; - } - } - - return desc; -} - -std::string PresetFileName(std::string_view name) { - std::string out; - for (const char c : name) { - if (c == ' ') { - out += '_'; - continue; - } - const bool keep = (c >= 'a' && c <= 'z') || (c >= 'A' && c <= 'Z') || - (c >= '0' && c <= '9') || c == '-' || c == '_'; - if (keep) { - out += c; - } - } - if (out.empty()) { - out = "preset"; - } - return out + ".fxp"; -} - -std::string ComposePreset(const FxPresetDesc& desc) { - std::string out; - out += "name="; - out += desc.name; - out += '\n'; - out += "description="; - out += desc.description; - out += '\n'; - out += "chain="; - out += desc.chain; - out += '\n'; - return out; -} - -} // Anonymous namespace - -std::filesystem::path GetFxPresetDirectory() { - return Common::FS::GetEdenPath(Common::FS::EdenPath::PostPresetDir); -} - -void ReloadFxPresetCatalog() { - preset_catalog.clear(); - preset_catalog_scanned = true; - - const auto root = GetFxPresetDirectory(); - if (!Common::FS::Exists(root) && !Common::FS::CreateDirs(root)) { - return; - } - - std::vector bundled_names; - for (const auto& bundled : BUNDLED_FX_PRESETS) { - const auto path = root / bundled.name; - bundled_names.emplace_back(bundled.name); - if (Common::FS::Exists(path)) { - continue; - } - void(Common::FS::WriteStringToFile(path, Common::FS::FileType::TextFile, bundled.source)); - } - - std::vector preset_files; - Common::FS::IterateDirEntriesRecursively( - root, - [&](const std::filesystem::directory_entry& entry) { - if (entry.path().extension() == ".fxp") { - preset_files.push_back(entry.path()); - } - return true; - }, - Common::FS::DirEntryFilter::File); - - std::sort(preset_files.begin(), preset_files.end()); - - for (const auto& file : preset_files) { - const std::string text = - Common::FS::ReadStringFromFile(file, Common::FS::FileType::TextFile); - - FxPresetDesc desc = ParsePreset(text); - if (desc.name.empty() || desc.chain.empty()) { - continue; - } - - desc.file = Common::FS::PathToUTF8String(file.filename()); - desc.bundled = std::find(bundled_names.begin(), bundled_names.end(), desc.file) != - bundled_names.end(); - preset_catalog.push_back(std::move(desc)); - } -} - -const std::vector& GetFxPresetCatalog() { - if (!preset_catalog_scanned) { - ReloadFxPresetCatalog(); - } - return preset_catalog; -} - -const FxPresetDesc* FindFxPreset(std::string_view name) { - const auto& presets = GetFxPresetCatalog(); - const auto it = std::find_if(presets.begin(), presets.end(), - [&](const FxPresetDesc& p) { return p.name == name; }); - if (it == presets.end()) { - return nullptr; - } - return &*it; -} - -bool ApplyFxPreset(std::string_view name) { - const FxPresetDesc* preset = FindFxPreset(name); - if (preset == nullptr) { - return false; - } - - FxChain::Instance().SetEntries(ParseFxChain(preset->chain)); - FxChain::Instance().DropUnknownEntries(); - FxChain::Instance().StoreToSettings(); - SetActiveFxPreset(preset->name); - return true; -} - -bool SaveFxPreset(std::string_view name, std::string_view description) { - if (!IsFxPresetName(name)) { - return false; - } - - const auto root = GetFxPresetDirectory(); - if (!Common::FS::Exists(root) && !Common::FS::CreateDirs(root)) { - return false; - } - - FxPresetDesc desc; - desc.name = std::string(name); - desc.description = std::string(description); - desc.chain = SerializeFxChain(FxChain::Instance().Entries()); - - const std::string body = ComposePreset(desc); - const std::string file = PresetFileName(name); - if (Common::FS::WriteStringToFile(root / file, Common::FS::FileType::TextFile, body) != - body.size()) { - return false; - } - - ReloadFxPresetCatalog(); - SetActiveFxPreset(name); - return true; -} - -bool DeleteFxPreset(std::string_view name) { - const FxPresetDesc* preset = FindFxPreset(name); - if (preset == nullptr || preset->bundled) { - return false; - } - - const auto path = GetFxPresetDirectory() / preset->file; - if (!Common::FS::RemoveFile(path)) { - return false; - } - - if (GetActiveFxPreset() == name) { - SetActiveFxPreset(std::string_view()); - } - ReloadFxPresetCatalog(); - return true; -} - -bool IsFxPresetName(std::string_view name) { - if (name.empty()) { - return false; - } - return name.find_first_of("\r\n=") == std::string_view::npos; -} - -std::string GetActiveFxPreset() { - return Settings::values.post_shader_preset.GetValue(); -} - -void SetActiveFxPreset(std::string_view name) { - Settings::values.post_shader_preset.SetValue(std::string(name)); -} - -bool IsActiveFxPresetModified() { - const std::string active = GetActiveFxPreset(); - if (active.empty()) { - return false; - } - - const FxPresetDesc* preset = FindFxPreset(active); - if (preset == nullptr) { - return true; - } - - return SerializeFxChain(FxChain::Instance().Entries()) != - SerializeFxChain(ParseFxChain(preset->chain)); -} - -} // namespace VideoCore diff --git a/src/video_core/post_processing/fx_preset.h b/src/video_core/post_processing/fx_preset.h deleted file mode 100644 index 23372b9495..0000000000 --- a/src/video_core/post_processing/fx_preset.h +++ /dev/null @@ -1,43 +0,0 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - -#pragma once - -#include -#include -#include -#include - -namespace VideoCore { - -struct FxPresetDesc { - std::string file; - std::string name; - std::string description; - std::string chain; - bool bundled{}; -}; - -std::filesystem::path GetFxPresetDirectory(); - -void ReloadFxPresetCatalog(); - -const std::vector& GetFxPresetCatalog(); - -const FxPresetDesc* FindFxPreset(std::string_view name); - -bool ApplyFxPreset(std::string_view name); - -bool SaveFxPreset(std::string_view name, std::string_view description); - -bool DeleteFxPreset(std::string_view name); - -bool IsFxPresetName(std::string_view name); - -std::string GetActiveFxPreset(); - -void SetActiveFxPreset(std::string_view name); - -bool IsActiveFxPresetModified(); - -} // namespace VideoCore diff --git a/src/video_core/query_cache/query_cache.h b/src/video_core/query_cache/query_cache.h index b8c1bc4f45..5404dec943 100644 --- a/src/video_core/query_cache/query_cache.h +++ b/src/video_core/query_cache/query_cache.h @@ -260,7 +260,7 @@ void QueryCacheBase::CounterReport(GPUVAddr addr, QueryType counter_type }; u8* pointer = impl->device_memory.template GetPointer(cpu_addr); u8* pointer_timestamp = impl->device_memory.template GetPointer(cpu_addr + 8); - bool is_synced = (Settings::IsGPUFenceBehaviorDefault() ? !Settings::IsGPULevelHigh() : !Settings::IsGPUFenceBehaviorBalanced() && !Settings::IsGPUFenceBehaviorAccurate()) && is_fence; + bool is_synced = (Settings::IsGPUFenceBehaviorDefault() ? !Settings::IsGPULevelHigh() : !Settings::IsGPUFenceBehaviorBalanced() && !Settings::IsGPUFenceBehaviorAccurate() && !Settings::IsGPUFenceBehaviorStrict()) && is_fence; std::function operation([this, is_synced, streamer, query_base = query, query_location, pointer, pointer_timestamp] { if (True(query_base->flags & QueryFlagBits::IsInvalidated)) { diff --git a/src/video_core/rasterizer_interface.h b/src/video_core/rasterizer_interface.h index b527c0e2a9..481efbf53b 100644 --- a/src/video_core/rasterizer_interface.h +++ b/src/video_core/rasterizer_interface.h @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later @@ -114,12 +111,6 @@ public: /// Notify rasterizer that any caches of the specified region are desync with guest virtual void OnCacheInvalidation(PAddr addr, u64 size) = 0; - virtual bool TryCacheInvalidation(DAddr addr, u64 size) { - if (MustFlushRegion(addr, size, VideoCommon::CacheType::BufferCache)) return false; - OnCacheInvalidation(addr, size); - return true; - } - virtual bool OnCPUWrite(PAddr addr, u64 size) = 0; /// Sync memory between guest and host. diff --git a/src/video_core/renderer_opengl/gl_shader_cache.cpp b/src/video_core/renderer_opengl/gl_shader_cache.cpp index 277cf222fa..df69eb97f5 100644 --- a/src/video_core/renderer_opengl/gl_shader_cache.cpp +++ b/src/video_core/renderer_opengl/gl_shader_cache.cpp @@ -414,11 +414,6 @@ GraphicsPipeline* ShaderCache::BuiltPipeline(GraphicsPipeline* pipeline) const n if (!use_asynchronous_shaders) { return pipeline; } - // If something is using depth, we can assume that games are not rendering anything which - // will be used one time. - if (maxwell3d->regs.zeta_enable) { - return nullptr; - } // If games are using a small index count, we can assume these are full screen quads. // Usually these shaders are only used once for building textures so we can assume they // can't be built async diff --git a/src/video_core/renderer_vulkan/present/frame_gen.cpp b/src/video_core/renderer_vulkan/present/frame_gen.cpp index e6d857323b..b0d16819e5 100644 --- a/src/video_core/renderer_vulkan/present/frame_gen.cpp +++ b/src/video_core/renderer_vulkan/present/frame_gen.cpp @@ -198,10 +198,6 @@ void FrameGen::Process(const Device& device, Frame* frame, VkFormat format, VkExtent2D guest_extent) { generated = false; - if (!shaders) { - shaders.emplace(device); - } - if (unavailable || !Settings::values.frame_gen.GetValue()) { if (chain) { scheduler.Finish(); @@ -211,14 +207,17 @@ void FrameGen::Process(const Device& device, Frame* frame, VkFormat format, return; } - if (!shaders->IsValid()) { + if (!frame->storage_view) { unavailable = true; return; } - if (!frame->storage_view) { - warm_streak = 0; - return; + if (!shaders) { + shaders.emplace(device); + if (!shaders->IsValid()) { + unavailable = true; + return; + } } peak_guest_extent.width = std::max(peak_guest_extent.width, guest_extent.width); diff --git a/src/video_core/renderer_vulkan/present/layer.cpp b/src/video_core/renderer_vulkan/present/layer.cpp index 9f4aaf390f..14935f92bb 100644 --- a/src/video_core/renderer_vulkan/present/layer.cpp +++ b/src/video_core/renderer_vulkan/present/layer.cpp @@ -18,10 +18,6 @@ #include "video_core/renderer_vulkan/present/sgsr.h" #include "video_core/renderer_vulkan/present/fxaa.h" #include "video_core/renderer_vulkan/present/layer.h" -#ifdef HAS_RESHADE -#include "video_core/post_processing/fx_chain.h" -#include "video_core/renderer_vulkan/present/post_process.h" -#endif #include "video_core/renderer_vulkan/present/present_push_constants.h" #include "video_core/renderer_vulkan/present/smaa.h" #include "video_core/renderer_vulkan/present/util.h" @@ -94,15 +90,9 @@ void Layer::ConfigureDraw(const Device& device, PresentPushConstants* out_push_c const u32 scaled_width = texture_info ? texture_info->scaled_width : texture_width; const u32 scaled_height = texture_info ? texture_info->scaled_height : texture_height; const bool use_accelerated = texture_info.has_value(); - const bool is_applet = - (framebuffer.layer_stack_mask & Service::Nvnflinger::LayerStackBit( - Service::Nvnflinger::LayerStackId::Recording)) == 0; RefreshResources(device, framebuffer); SetAntiAliasPass(device); -#ifdef HAS_RESHADE - SetPostProcessPass(device, is_applet); -#endif // Finish any pending renderpass scheduler.RequestOutsideRenderPassOperationContext(); @@ -125,12 +115,6 @@ void Layer::ConfigureDraw(const Device& device, PresentPushConstants* out_push_c smaa->Draw(device, scheduler, image_index, &source_image, &source_image_view); } -#ifdef HAS_RESHADE - if (post_process.has_value()) { - post_process->Draw(device, scheduler, image_index, &source_image, &source_image_view); - } -#endif - auto crop_rect = Tegra::NormalizeCrop(framebuffer, texture_width, texture_height); const VkExtent2D render_extent{ .width = scaled_width, @@ -141,11 +125,8 @@ void Layer::ConfigureDraw(const Device& device, PresentPushConstants* out_push_c source_image_view = fsr->Draw(device, scheduler, image_index, source_image, source_image_view, render_extent, crop_rect); crop_rect = {0, 0, 1, 1}; } else if (auto* sgsr = std::get_if(&sr_filter)) { - if (!is_applet) { - source_image_view = sgsr->Draw(device, scheduler, image_index, source_image, - source_image_view, render_extent, crop_rect); - crop_rect = {0, 0, 1, 1}; - } + source_image_view = sgsr->Draw(device, scheduler, image_index, source_image, source_image_view, render_extent, crop_rect); + crop_rect = {0, 0, 1, 1}; } SetMatrixData(device, *out_push_constants, layout); @@ -233,47 +214,6 @@ void Layer::SetAntiAliasPass(const Device& device) { } } -#ifdef HAS_RESHADE -void Layer::SetPostProcessPass(const Device& device, bool is_applet) { - if (is_applet) { - post_process.reset(); - return; - } - const VkExtent2D render_area{ - .width = Settings::values.resolution_info.ScaleUp(raw_width), - .height = Settings::values.resolution_info.ScaleUp(raw_height), - }; - - const u64 generation = VideoCore::FxChain::Instance().Snapshot().generation; - const bool enabled = Settings::values.post_shader_enabled.GetValue(); - - if (post_process_generation == generation && post_process_enabled == enabled && - post_process_extent.width == render_area.width && - post_process_extent.height == render_area.height) { - return; - } - - for (const u64 tick : resource_ticks) { - scheduler.Wait(tick); - } - - post_process_generation = generation; - post_process_enabled = enabled; - post_process_extent = render_area; - post_process.reset(); - - if (!enabled || VideoCore::FxChain::Instance().Size() == 0) { - return; - } - - post_process.emplace(device, memory_allocator, scheduler, image_count, render_area); - - if (post_process->Empty()) { - post_process.reset(); - } -} -#endif - void Layer::ReleaseRawImages() { for (const u64 tick : resource_ticks) { scheduler.Wait(tick); diff --git a/src/video_core/renderer_vulkan/present/layer.h b/src/video_core/renderer_vulkan/present/layer.h index b965ef7c49..4d75e86ba6 100644 --- a/src/video_core/renderer_vulkan/present/layer.h +++ b/src/video_core/renderer_vulkan/present/layer.h @@ -15,9 +15,6 @@ #include "video_core/renderer_vulkan/present/fsr.h" #include "video_core/renderer_vulkan/present/sgsr.h" #include "video_core/renderer_vulkan/present/fxaa.h" -#ifdef HAS_RESHADE -#include "video_core/renderer_vulkan/present/post_process.h" -#endif #include "video_core/renderer_vulkan/present/smaa.h" namespace Layout { @@ -69,9 +66,6 @@ private: void RefreshResources(const Device& device, const Tegra::FramebufferConfig& framebuffer); void SetAntiAliasPass(const Device& device); -#ifdef HAS_RESHADE - void SetPostProcessPass(const Device& device, bool is_applet); -#endif void ReleaseRawImages(); u64 CalculateBufferSize(const Tegra::FramebufferConfig& framebuffer) const; @@ -101,12 +95,6 @@ private: Settings::AntiAliasing anti_alias_setting{}; std::variant anti_alias{}; std::variant sr_filter{}; -#ifdef HAS_RESHADE - std::optional post_process{}; - u64 post_process_generation{}; - bool post_process_enabled{}; - VkExtent2D post_process_extent{}; -#endif std::vector resource_ticks{}; }; diff --git a/src/video_core/renderer_vulkan/present/lsfg_shaders.cpp b/src/video_core/renderer_vulkan/present/lsfg_shaders.cpp index 51c7e4c106..aafe0d6419 100644 --- a/src/video_core/renderer_vulkan/present/lsfg_shaders.cpp +++ b/src/video_core/renderer_vulkan/present/lsfg_shaders.cpp @@ -1,6 +1,7 @@ // SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project // SPDX-License-Identifier: GPL-3.0-or-later +#include "common/settings.h" #include "video_core/frame_gen/lossless_dll.h" #include "video_core/renderer_vulkan/present/lsfg_shaders.h" #include "video_core/renderer_vulkan/present/util.h" @@ -9,13 +10,16 @@ namespace Vulkan { LsfgShaders::LsfgShaders(const Device& device) { - if (!device.IsVulkanMemoryModelSupported() || !device.HasNullDescriptor() || - !device.IsFloat16Supported()) { + if (!device.IsVulkanMemoryModelSupported() || !device.HasNullDescriptor()) { return; } + const bool allow_fp16 = device.IsFloat16Supported(); + const bool prefer_fp16 = allow_fp16 && Settings::values.frame_gen_fp16.GetValue(); + VideoCore::FrameGen::ShaderModules code; - if (VideoCore::FrameGen::LoadShaderModules(code) != VideoCore::FrameGen::LosslessStatus::Ok) { + if (VideoCore::FrameGen::LoadShaderModules(code, allow_fp16, prefer_fp16) != + VideoCore::FrameGen::LosslessStatus::Ok) { return; } diff --git a/src/video_core/renderer_vulkan/present/post_process.cpp b/src/video_core/renderer_vulkan/present/post_process.cpp deleted file mode 100644 index 07d75b7025..0000000000 --- a/src/video_core/renderer_vulkan/present/post_process.cpp +++ /dev/null @@ -1,899 +0,0 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - -#include -#include -#include - -#include "common/fs/fs.h" -#include "common/fs/fs_util.h" -#include "common/logging.h" -#include "video_core/post_processing/fx_chain.h" -#include "video_core/post_processing/fx_compile.h" -#include "video_core/post_processing/fx_effect.h" -#include "video_core/renderer_vulkan/present/post_process.h" -#include "video_core/renderer_vulkan/present/util.h" -#include "video_core/renderer_vulkan/vk_scheduler.h" -#include "video_core/vulkan_common/vulkan_device.h" - -namespace Vulkan { - -namespace { - -constexpr VkFormat BACKBUFFER_FORMAT = VK_FORMAT_R16G16B16A16_SFLOAT; -constexpr size_t NO_TEXTURE = ~size_t{0}; - -VkFormat ToVkFormat(reshadefx::texture_format format) { - switch (format) { - case reshadefx::texture_format::r8: - return VK_FORMAT_R8_UNORM; - case reshadefx::texture_format::r16f: - return VK_FORMAT_R16_SFLOAT; - case reshadefx::texture_format::r32f: - return VK_FORMAT_R32_SFLOAT; - case reshadefx::texture_format::rg8: - return VK_FORMAT_R8G8_UNORM; - case reshadefx::texture_format::rg16: - return VK_FORMAT_R16G16_UNORM; - case reshadefx::texture_format::rg16f: - return VK_FORMAT_R16G16_SFLOAT; - case reshadefx::texture_format::rg32f: - return VK_FORMAT_R32G32_SFLOAT; - case reshadefx::texture_format::rgba8: - return VK_FORMAT_R8G8B8A8_UNORM; - case reshadefx::texture_format::rgba16: - return VK_FORMAT_R16G16B16A16_UNORM; - case reshadefx::texture_format::rgba16f: - return VK_FORMAT_R16G16B16A16_SFLOAT; - case reshadefx::texture_format::rgba32f: - return VK_FORMAT_R32G32B32A32_SFLOAT; - case reshadefx::texture_format::rgb10a2: - return VK_FORMAT_A2B10G10R10_UNORM_PACK32; - default: - return VK_FORMAT_R8G8B8A8_UNORM; - } -} - -VkSamplerAddressMode ToAddressMode(reshadefx::texture_address_mode mode) { - switch (mode) { - case reshadefx::texture_address_mode::wrap: - return VK_SAMPLER_ADDRESS_MODE_REPEAT; - case reshadefx::texture_address_mode::mirror: - return VK_SAMPLER_ADDRESS_MODE_MIRRORED_REPEAT; - case reshadefx::texture_address_mode::border: - return VK_SAMPLER_ADDRESS_MODE_CLAMP_TO_BORDER; - case reshadefx::texture_address_mode::clamp: - default: - return VK_SAMPLER_ADDRESS_MODE_CLAMP_TO_EDGE; - } -} - -VkBlendFactor ToBlendFactor(reshadefx::blend_factor func) { - switch (func) { - case reshadefx::blend_factor::zero: - return VK_BLEND_FACTOR_ZERO; - case reshadefx::blend_factor::source_color: - return VK_BLEND_FACTOR_SRC_COLOR; - case reshadefx::blend_factor::source_alpha: - return VK_BLEND_FACTOR_SRC_ALPHA; - case reshadefx::blend_factor::one_minus_source_color: - return VK_BLEND_FACTOR_ONE_MINUS_SRC_COLOR; - case reshadefx::blend_factor::one_minus_source_alpha: - return VK_BLEND_FACTOR_ONE_MINUS_SRC_ALPHA; - case reshadefx::blend_factor::dest_color: - return VK_BLEND_FACTOR_DST_COLOR; - case reshadefx::blend_factor::dest_alpha: - return VK_BLEND_FACTOR_DST_ALPHA; - case reshadefx::blend_factor::one_minus_dest_color: - return VK_BLEND_FACTOR_ONE_MINUS_DST_COLOR; - case reshadefx::blend_factor::one_minus_dest_alpha: - return VK_BLEND_FACTOR_ONE_MINUS_DST_ALPHA; - case reshadefx::blend_factor::one: - default: - return VK_BLEND_FACTOR_ONE; - } -} - -VkBlendOp ToBlendOp(reshadefx::blend_op op) { - switch (op) { - case reshadefx::blend_op::subtract: - return VK_BLEND_OP_SUBTRACT; - case reshadefx::blend_op::reverse_subtract: - return VK_BLEND_OP_REVERSE_SUBTRACT; - case reshadefx::blend_op::min: - return VK_BLEND_OP_MIN; - case reshadefx::blend_op::max: - return VK_BLEND_OP_MAX; - case reshadefx::blend_op::add: - default: - return VK_BLEND_OP_ADD; - } -} - -VkPrimitiveTopology ToTopology(reshadefx::primitive_topology topology) { - switch (topology) { - case reshadefx::primitive_topology::point_list: - return VK_PRIMITIVE_TOPOLOGY_POINT_LIST; - case reshadefx::primitive_topology::line_list: - return VK_PRIMITIVE_TOPOLOGY_LINE_LIST; - case reshadefx::primitive_topology::line_strip: - return VK_PRIMITIVE_TOPOLOGY_LINE_STRIP; - case reshadefx::primitive_topology::triangle_strip: - return VK_PRIMITIVE_TOPOLOGY_TRIANGLE_STRIP; - case reshadefx::primitive_topology::triangle_list: - default: - return VK_PRIMITIVE_TOPOLOGY_TRIANGLE_LIST; - } -} - -vk::RenderPass CreateFxRenderPass(const Device& device, VkFormat format, bool clear) { - VkAttachmentLoadOp load_op = VK_ATTACHMENT_LOAD_OP_LOAD; - VkImageLayout initial_layout = VK_IMAGE_LAYOUT_GENERAL; - if (clear) { - load_op = VK_ATTACHMENT_LOAD_OP_CLEAR; - initial_layout = VK_IMAGE_LAYOUT_UNDEFINED; - } - - const VkAttachmentDescription attachment{ - .flags = 0, - .format = format, - .samples = VK_SAMPLE_COUNT_1_BIT, - .loadOp = load_op, - .storeOp = VK_ATTACHMENT_STORE_OP_STORE, - .stencilLoadOp = VK_ATTACHMENT_LOAD_OP_DONT_CARE, - .stencilStoreOp = VK_ATTACHMENT_STORE_OP_DONT_CARE, - .initialLayout = initial_layout, - .finalLayout = VK_IMAGE_LAYOUT_GENERAL, - }; - - const VkAttachmentReference reference{ - .attachment = 0, - .layout = VK_IMAGE_LAYOUT_GENERAL, - }; - - const VkSubpassDescription subpass{ - .flags = 0, - .pipelineBindPoint = VK_PIPELINE_BIND_POINT_GRAPHICS, - .inputAttachmentCount = 0, - .pInputAttachments = nullptr, - .colorAttachmentCount = 1, - .pColorAttachments = &reference, - .pResolveAttachments = nullptr, - .pDepthStencilAttachment = nullptr, - .preserveAttachmentCount = 0, - .pPreserveAttachments = nullptr, - }; - - return device.GetLogical().CreateRenderPass(VkRenderPassCreateInfo{ - .sType = VK_STRUCTURE_TYPE_RENDER_PASS_CREATE_INFO, - .pNext = nullptr, - .flags = 0, - .attachmentCount = 1, - .pAttachments = &attachment, - .subpassCount = 1, - .pSubpasses = &subpass, - .dependencyCount = 0, - .pDependencies = nullptr, - }); -} - -vk::Pipeline CreateFxPipeline(const Device& device, vk::RenderPass& renderpass, - vk::PipelineLayout& layout, VkShaderModule vertex_shader, - VkShaderModule fragment_shader, - const reshadefx::pass& pass) { - const std::array stages{{ - { - .sType = VK_STRUCTURE_TYPE_PIPELINE_SHADER_STAGE_CREATE_INFO, - .pNext = nullptr, - .flags = 0, - .stage = VK_SHADER_STAGE_VERTEX_BIT, - .module = vertex_shader, - .pName = pass.vs_entry_point.c_str(), - .pSpecializationInfo = nullptr, - }, - { - .sType = VK_STRUCTURE_TYPE_PIPELINE_SHADER_STAGE_CREATE_INFO, - .pNext = nullptr, - .flags = 0, - .stage = VK_SHADER_STAGE_FRAGMENT_BIT, - .module = fragment_shader, - .pName = pass.ps_entry_point.c_str(), - .pSpecializationInfo = nullptr, - }, - }}; - - constexpr VkPipelineVertexInputStateCreateInfo vertex_input{ - .sType = VK_STRUCTURE_TYPE_PIPELINE_VERTEX_INPUT_STATE_CREATE_INFO, - .pNext = nullptr, - .flags = 0, - .vertexBindingDescriptionCount = 0, - .pVertexBindingDescriptions = nullptr, - .vertexAttributeDescriptionCount = 0, - .pVertexAttributeDescriptions = nullptr, - }; - - const VkPipelineInputAssemblyStateCreateInfo input_assembly{ - .sType = VK_STRUCTURE_TYPE_PIPELINE_INPUT_ASSEMBLY_STATE_CREATE_INFO, - .pNext = nullptr, - .flags = 0, - .topology = ToTopology(pass.topology), - .primitiveRestartEnable = VK_FALSE, - }; - - constexpr VkPipelineViewportStateCreateInfo viewport_state{ - .sType = VK_STRUCTURE_TYPE_PIPELINE_VIEWPORT_STATE_CREATE_INFO, - .pNext = nullptr, - .flags = 0, - .viewportCount = 1, - .pViewports = nullptr, - .scissorCount = 1, - .pScissors = nullptr, - }; - - constexpr VkPipelineRasterizationStateCreateInfo rasterization{ - .sType = VK_STRUCTURE_TYPE_PIPELINE_RASTERIZATION_STATE_CREATE_INFO, - .pNext = nullptr, - .flags = 0, - .depthClampEnable = VK_FALSE, - .rasterizerDiscardEnable = VK_FALSE, - .polygonMode = VK_POLYGON_MODE_FILL, - .cullMode = VK_CULL_MODE_NONE, - .frontFace = VK_FRONT_FACE_COUNTER_CLOCKWISE, - .depthBiasEnable = VK_FALSE, - .depthBiasConstantFactor = 0.0f, - .depthBiasClamp = 0.0f, - .depthBiasSlopeFactor = 0.0f, - .lineWidth = 1.0f, - }; - - constexpr VkPipelineMultisampleStateCreateInfo multisampling{ - .sType = VK_STRUCTURE_TYPE_PIPELINE_MULTISAMPLE_STATE_CREATE_INFO, - .pNext = nullptr, - .flags = 0, - .rasterizationSamples = VK_SAMPLE_COUNT_1_BIT, - .sampleShadingEnable = VK_FALSE, - .minSampleShading = 0.0f, - .pSampleMask = nullptr, - .alphaToCoverageEnable = VK_FALSE, - .alphaToOneEnable = VK_FALSE, - }; - - VkBool32 blend_enable = VK_FALSE; - if (pass.blend_enable[0]) { - blend_enable = VK_TRUE; - } - - const VkPipelineColorBlendAttachmentState blending{ - .blendEnable = blend_enable, - .srcColorBlendFactor = ToBlendFactor(pass.source_color_blend_factor[0]), - .dstColorBlendFactor = ToBlendFactor(pass.dest_color_blend_factor[0]), - .colorBlendOp = ToBlendOp(pass.color_blend_op[0]), - .srcAlphaBlendFactor = ToBlendFactor(pass.source_alpha_blend_factor[0]), - .dstAlphaBlendFactor = ToBlendFactor(pass.dest_alpha_blend_factor[0]), - .alphaBlendOp = ToBlendOp(pass.alpha_blend_op[0]), - .colorWriteMask = static_cast(pass.render_target_write_mask[0] & 0xF), - }; - - const VkPipelineColorBlendStateCreateInfo color_blend{ - .sType = VK_STRUCTURE_TYPE_PIPELINE_COLOR_BLEND_STATE_CREATE_INFO, - .pNext = nullptr, - .flags = 0, - .logicOpEnable = VK_FALSE, - .logicOp = VK_LOGIC_OP_COPY, - .attachmentCount = 1, - .pAttachments = &blending, - .blendConstants = {0.0f, 0.0f, 0.0f, 0.0f}, - }; - - constexpr std::array dynamic_states{ - VK_DYNAMIC_STATE_VIEWPORT, - VK_DYNAMIC_STATE_SCISSOR, - }; - - const VkPipelineDynamicStateCreateInfo dynamic_state{ - .sType = VK_STRUCTURE_TYPE_PIPELINE_DYNAMIC_STATE_CREATE_INFO, - .pNext = nullptr, - .flags = 0, - .dynamicStateCount = static_cast(dynamic_states.size()), - .pDynamicStates = dynamic_states.data(), - }; - - return device.GetLogical().CreateGraphicsPipeline(VkGraphicsPipelineCreateInfo{ - .sType = VK_STRUCTURE_TYPE_GRAPHICS_PIPELINE_CREATE_INFO, - .pNext = nullptr, - .flags = 0, - .stageCount = static_cast(stages.size()), - .pStages = stages.data(), - .pVertexInputState = &vertex_input, - .pInputAssemblyState = &input_assembly, - .pTessellationState = nullptr, - .pViewportState = &viewport_state, - .pRasterizationState = &rasterization, - .pMultisampleState = &multisampling, - .pDepthStencilState = nullptr, - .pColorBlendState = &color_blend, - .pDynamicState = &dynamic_state, - .layout = *layout, - .renderPass = *renderpass, - .subpass = 0, - .basePipelineHandle = nullptr, - .basePipelineIndex = 0, - }); -} - -} // Anonymous namespace - -PostProcessChain::PostProcessChain(const Device& device, MemoryAllocator& allocator, - Scheduler& scheduler, size_t image_count, VkExtent2D extent) - : m_extent(extent) - , m_image_count(u32(image_count)) -{ - m_start = std::chrono::steady_clock::now(); - m_previous = m_start; - - CreatePingPongImages(device, allocator); - - m_fallback_sampler = CreateWrappedSampler(device); - m_fallback_image = CreateWrappedImage(allocator, VkExtent2D{1, 1}, VK_FORMAT_R8G8B8A8_UNORM); - m_fallback_view = CreateWrappedImageView(device, m_fallback_image, VK_FORMAT_R8G8B8A8_UNORM); - - if (!BuildEffects(device, allocator, scheduler)) { - m_effects.clear(); - } -} - -PostProcessChain::~PostProcessChain() = default; - -bool PostProcessChain::Empty() const { - return m_effects.empty(); -} - -void PostProcessChain::CreatePingPongImages(const Device& device, MemoryAllocator& allocator) { - m_frames.resize(m_image_count); - for (auto& frame : m_frames) { - for (size_t i = 0; i < frame.images.size(); ++i) { - frame.images[i] = CreateWrappedImage(allocator, m_extent, BACKBUFFER_FORMAT); - frame.views[i] = CreateWrappedImageView(device, frame.images[i], BACKBUFFER_FORMAT); - } - } -} - -bool PostProcessChain::BuildEffects(const Device& device, MemoryAllocator& allocator, - Scheduler& scheduler) { - const auto snapshot = VideoCore::FxChain::Instance().Snapshot(); - if (snapshot.entries.empty()) { - return true; - } - - const auto root = VideoCore::GetFxRootDirectory(); - - for (size_t entry_index = 0; entry_index < snapshot.entries.size(); ++entry_index) { - const auto& entry = snapshot.entries[entry_index]; - const auto path = root / entry.file; - - const auto compiled = VideoCore::CompileFxEffect(path, m_extent.width, m_extent.height, 8); - if (!compiled.Succeeded()) { - LOG_ERROR(Render_Vulkan, "Post-processing effect '{}' failed to compile:\n{}", - entry.file, compiled.error); - continue; - } - - const auto& module = compiled.module; - - const auto technique = std::find_if( - module.techniques.begin(), module.techniques.end(), - [&](const reshadefx::technique& t) { return t.name == entry.technique; }); - if (technique == module.techniques.end()) { - LOG_ERROR(Render_Vulkan, "Effect '{}' has no technique '{}'", entry.file, - entry.technique); - continue; - } - - Effect effect; - effect.entry_index = entry_index; - effect.file = entry.file; - effect.uniform_size = module.total_uniform_size; - for (const auto& [name, words] : compiled.entry_points) { - effect.shaders.emplace(name, CreateWrappedShaderModule(device, words)); - } - - for (const auto& texture : module.textures) { - Texture out; - out.name = texture.unique_name; - out.extent = VkExtent2D{texture.width, texture.height}; - out.format = ToVkFormat(texture.format); - - if (texture.semantic == "COLOR") { - out.is_backbuffer = true; - effect.textures.push_back(std::move(out)); - continue; - } - if (texture.semantic == "DEPTH") { - effect.textures.push_back(std::move(out)); - continue; - } - - out.image = CreateWrappedImage(allocator, out.extent, out.format); - out.view = CreateWrappedImageView(device, out.image, out.format); - effect.textures.push_back(std::move(out)); - } - - for (const auto& sampler : module.samplers) { - Sampler out; - out.texture_index = NO_TEXTURE; - for (size_t i = 0; i < effect.textures.size(); ++i) { - if (effect.textures[i].name == sampler.texture_name) { - out.texture_index = i; - break; - } - } - - VkFilter mag_filter = VK_FILTER_LINEAR; - VkFilter min_filter = VK_FILTER_LINEAR; - VkSamplerMipmapMode mip_mode = VK_SAMPLER_MIPMAP_MODE_LINEAR; - const u32 filter = static_cast(sampler.filter); - if ((filter & 0x10) == 0) { - min_filter = VK_FILTER_NEAREST; - } - if ((filter & 0x04) == 0) { - mag_filter = VK_FILTER_NEAREST; - } - if ((filter & 0x01) == 0) { - mip_mode = VK_SAMPLER_MIPMAP_MODE_NEAREST; - } - - out.sampler = device.GetLogical().CreateSampler(VkSamplerCreateInfo{ - .sType = VK_STRUCTURE_TYPE_SAMPLER_CREATE_INFO, - .pNext = nullptr, - .flags = 0, - .magFilter = mag_filter, - .minFilter = min_filter, - .mipmapMode = mip_mode, - .addressModeU = ToAddressMode(sampler.address_u), - .addressModeV = ToAddressMode(sampler.address_v), - .addressModeW = ToAddressMode(sampler.address_w), - .mipLodBias = sampler.lod_bias, - .anisotropyEnable = VK_FALSE, - .maxAnisotropy = 1.0f, - .compareEnable = VK_FALSE, - .compareOp = VK_COMPARE_OP_NEVER, - .minLod = sampler.min_lod, - .maxLod = sampler.max_lod, - .borderColor = VK_BORDER_COLOR_FLOAT_TRANSPARENT_BLACK, - .unnormalizedCoordinates = VK_FALSE, - }); - - effect.samplers.push_back(std::move(out)); - } - - for (const auto& uniform : module.uniforms) { - UniformWrite write; - write.name = uniform.name; - write.offset = uniform.offset; - write.components = std::min(uniform.type.components(), 4); - write.kind = UniformKind::Floating; - if (uniform.type.is_boolean()) { - write.kind = UniformKind::Boolean; - } else if (uniform.type.is_integral()) { - write.kind = UniformKind::Integer; - } - - for (const auto& annotation : uniform.annotations) { - if (annotation.name != "source") { - continue; - } - const std::string& source = annotation.value.string_data; - if (source == "frametime") { - write.source = UniformSource::FrameTime; - } else if (source == "framecount") { - write.source = UniformSource::FrameCount; - } else if (source == "timer") { - write.source = UniformSource::Timer; - } else if (source == "random") { - write.source = UniformSource::Random; - } else if (source == "pingpong") { - write.source = UniformSource::PingPong; - } - } - - if (uniform.has_initializer_value) { - for (u32 i = 0; i < write.components; ++i) { - if (write.kind == UniformKind::Floating) { - write.fallback[i] = uniform.initializer_value.as_float[i]; - } else { - write.fallback[i] = static_cast(uniform.initializer_value.as_int[i]); - } - } - } - - write.args = {0.0f, 1.0f, 1.0f, 0.0f}; - for (const auto& annotation : uniform.annotations) { - if (annotation.name == "min" && annotation.type.is_floating_point()) { - write.args[0] = annotation.value.as_float[0]; - } - if (annotation.name == "max" && annotation.type.is_floating_point()) { - write.args[1] = annotation.value.as_float[0]; - } - if (annotation.name == "step" && annotation.type.is_floating_point()) { - write.args[2] = annotation.value.as_float[0]; - } - } - write.state = write.args[0]; - - effect.uniforms.push_back(std::move(write)); - } - - effect.uniform_layout = CreateWrappedDescriptorSetLayout( - device, std::array{VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER}, - VK_SHADER_STAGE_VERTEX_BIT | VK_SHADER_STAGE_FRAGMENT_BIT); - - for (const auto& pass : technique->passes) { - Pass out; - out.num_vertices = pass.num_vertices; - out.clear = pass.clear_render_targets != 0; - out.target_texture = NO_TEXTURE; - out.extent = m_extent; - - const std::string& target = pass.render_target_names[0]; - if (target.empty()) { - out.writes_backbuffer = true; - } else { - for (size_t i = 0; i < effect.textures.size(); ++i) { - if (effect.textures[i].name == target) { - out.target_texture = i; - out.extent = effect.textures[i].extent; - break; - } - } - if (out.target_texture == NO_TEXTURE) { - LOG_WARNING(Render_Vulkan, "Effect '{}' pass targets unknown texture '{}'", - entry.file, target); - out.writes_backbuffer = true; - } - } - - if (pass.viewport_width != 0 && pass.viewport_height != 0) { - out.extent = VkExtent2D{pass.viewport_width, pass.viewport_height}; - } - - VkFormat target_format = BACKBUFFER_FORMAT; - if (!out.writes_backbuffer) { - target_format = effect.textures[out.target_texture].format; - } - - u32 binding_count = 0; - for (const auto& binding : pass.sampler_bindings) { - SamplerBinding entry_binding; - entry_binding.binding = binding.entry_point_binding; - entry_binding.sampler_index = binding.index; - out.sampler_bindings.push_back(entry_binding); - binding_count = std::max(binding_count, binding.entry_point_binding + 1); - } - - const std::vector sampler_types( - std::max(binding_count, 1), VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER); - out.sampler_layout = CreateWrappedDescriptorSetLayout( - device, sampler_types, VK_SHADER_STAGE_VERTEX_BIT | VK_SHADER_STAGE_FRAGMENT_BIT); - - const std::array set_layouts{*effect.uniform_layout, *out.sampler_layout}; - out.pipeline_layout = - device.GetLogical().CreatePipelineLayout(VkPipelineLayoutCreateInfo{ - .sType = VK_STRUCTURE_TYPE_PIPELINE_LAYOUT_CREATE_INFO, - .pNext = nullptr, - .flags = 0, - .setLayoutCount = static_cast(set_layouts.size()), - .pSetLayouts = set_layouts.data(), - .pushConstantRangeCount = 0, - .pPushConstantRanges = nullptr, - }); - - const auto vertex_shader = effect.shaders.find(pass.vs_entry_point); - const auto fragment_shader = effect.shaders.find(pass.ps_entry_point); - if (vertex_shader == effect.shaders.end() || - fragment_shader == effect.shaders.end()) { - LOG_WARNING(Render_Vulkan, "Effect '{}' pass references a missing entry point", - entry.file); - continue; - } - - out.renderpass = CreateFxRenderPass(device, target_format, out.clear); - out.pipeline = CreateFxPipeline(device, out.renderpass, out.pipeline_layout, - *vertex_shader->second, *fragment_shader->second, pass); - - if (out.writes_backbuffer) { - out.backbuffer_slot = static_cast(effect.backbuffer_pass_count % 2); - ++effect.backbuffer_pass_count; - for (u32 image = 0; image < m_image_count; ++image) { - for (size_t slot = 0; slot < 2; ++slot) { - out.framebuffers.push_back(CreateWrappedFramebuffer( - device, out.renderpass, m_frames[image].views[slot], out.extent)); - } - } - } else { - out.framebuffers.push_back( - CreateWrappedFramebuffer(device, out.renderpass, - effect.textures[out.target_texture].view, out.extent)); - } - - effect.passes.push_back(std::move(out)); - } - - if (effect.passes.empty()) { - LOG_WARNING(Render_Vulkan, "Effect '{}' technique '{}' has no passes", entry.file, - entry.technique); - continue; - } - - const u32 buffer_size = std::max(effect.uniform_size, 4); - for (u32 i = 0; i < m_image_count; ++i) { - effect.uniform_buffers.push_back( - CreateWrappedBuffer(allocator, buffer_size, MemoryUsage::Upload)); - } - - size_t sampler_descriptor_count = 0; - size_t sampler_set_count = 0; - for (const auto& pass : effect.passes) { - sampler_descriptor_count += - m_image_count * std::max(pass.sampler_bindings.size(), 1); - sampler_set_count += m_image_count; - } - - effect.descriptor_pool = CreateWrappedDescriptorPool( - device, m_image_count + sampler_descriptor_count, m_image_count + sampler_set_count, - {VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER, VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER}); - - const std::vector uniform_layouts(m_image_count, - *effect.uniform_layout); - effect.uniform_sets = CreateWrappedDescriptorSets(effect.descriptor_pool, uniform_layouts); - - for (auto& pass : effect.passes) { - const std::vector layouts(m_image_count, *pass.sampler_layout); - pass.sampler_sets = CreateWrappedDescriptorSets(effect.descriptor_pool, layouts); - } - - m_effects.push_back(std::move(effect)); - } - - return true; -} - -void PostProcessChain::PrepareImages(const Device& device, Scheduler& scheduler) { - if (m_images_ready) { - return; - } - - scheduler.Record([this](vk::CommandBuffer cmdbuf) { - ClearColorImage(cmdbuf, *m_fallback_image); - for (auto& frame : m_frames) { - for (auto& image : frame.images) { - ClearColorImage(cmdbuf, *image); - } - } - for (auto& effect : m_effects) { - for (auto& texture : effect.textures) { - if (texture.image) { - ClearColorImage(cmdbuf, *texture.image); - } - } - } - }); - scheduler.Finish(); - - m_images_ready = true; -} - -void PostProcessChain::UpdateUniforms(Effect& effect, size_t image_index, f32 delta_seconds) { - if (effect.uniform_size == 0) { - return; - } - - static thread_local std::mt19937 rng{std::random_device{}()}; - - std::vector staging(effect.uniform_size, 0); - const f32 elapsed = - std::chrono::duration(std::chrono::steady_clock::now() - m_start).count(); - const auto overrides = VideoCore::FxChain::Instance().EntryValues(effect.entry_index); - - for (auto& uniform : effect.uniforms) { - std::array value = uniform.fallback; - - const auto override = overrides.find(uniform.name); - if (override != overrides.end()) { - value = override->second; - } - - switch (uniform.source) { - case UniformSource::FrameTime: - value[0] = delta_seconds * 1000.0f; - break; - case UniformSource::FrameCount: - value[0] = static_cast(m_frame_count); - break; - case UniformSource::Timer: - value[0] = elapsed * 1000.0f; - break; - case UniformSource::Random: { - const int low = static_cast(uniform.args[0]); - int high = static_cast(uniform.args[1]); - if (high <= low) { - high = low + 1; - } - std::uniform_int_distribution dist(low, high); - value[0] = static_cast(dist(rng)); - break; - } - case UniformSource::PingPong: { - const f32 min_value = uniform.args[0]; - f32 max_value = uniform.args[1]; - if (max_value <= min_value) { - max_value = min_value + 1.0f; - } - f32 step = uniform.args[2]; - if (step == 0.0f) { - step = 1.0f; - } - uniform.state += uniform.direction * step * delta_seconds; - if (uniform.state >= max_value) { - uniform.state = max_value; - uniform.direction = -1.0f; - } - if (uniform.state <= min_value) { - uniform.state = min_value; - uniform.direction = 1.0f; - } - value[0] = uniform.state; - value[1] = uniform.direction; - break; - } - case UniformSource::Value: - default: - break; - } - - for (u32 i = 0; i < uniform.components; ++i) { - const size_t offset = uniform.offset + i * sizeof(u32); - if (offset + sizeof(u32) > staging.size()) { - break; - } - if (uniform.kind == UniformKind::Floating) { - const f32 element = value[i]; - std::memcpy(staging.data() + offset, &element, sizeof(f32)); - } else { - const s32 element = static_cast(value[i]); - std::memcpy(staging.data() + offset, &element, sizeof(s32)); - } - } - } - - const std::span mapped = effect.uniform_buffers[image_index].Mapped(); - if (mapped.size() >= staging.size()) { - std::memcpy(mapped.data(), staging.data(), staging.size()); - effect.uniform_buffers[image_index].Flush(); - } -} - -void PostProcessChain::UpdateDescriptors(const Device& device, Effect& effect, Pass& pass, - size_t image_index, VkImageView backbuffer_view) { - std::vector image_infos; - std::vector writes; - image_infos.reserve(pass.sampler_bindings.size() + 1); - - const VkDescriptorSet sampler_set = pass.sampler_sets[image_index]; - - for (const auto& binding : pass.sampler_bindings) { - VkImageView view = *m_fallback_view; - VkSampler handle = *m_fallback_sampler; - - if (binding.sampler_index < effect.samplers.size()) { - const Sampler& sampler = effect.samplers[binding.sampler_index]; - if (sampler.sampler) { - handle = *sampler.sampler; - } - if (sampler.texture_index != NO_TEXTURE) { - const Texture& texture = effect.textures[sampler.texture_index]; - if (texture.is_backbuffer) { - view = backbuffer_view; - } else if (texture.view) { - view = *texture.view; - } - } - } - - writes.push_back( - CreateWriteDescriptorSet(image_infos, handle, view, sampler_set, binding.binding)); - } - - const VkDescriptorBufferInfo buffer_info{ - .buffer = *effect.uniform_buffers[image_index], - .offset = 0, - .range = VK_WHOLE_SIZE, - }; - - writes.push_back(VkWriteDescriptorSet{ - .sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET, - .pNext = nullptr, - .dstSet = effect.uniform_sets[image_index], - .dstBinding = 0, - .dstArrayElement = 0, - .descriptorCount = 1, - .descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER, - .pImageInfo = nullptr, - .pBufferInfo = &buffer_info, - .pTexelBufferView = nullptr, - }); - - device.GetLogical().UpdateDescriptorSets(writes, {}); -} - -void PostProcessChain::Draw(const Device& device, Scheduler& scheduler, size_t image_index, - VkImage* inout_image, VkImageView* inout_image_view) { - if (m_effects.empty()) { - return; - } - - PrepareImages(device, scheduler); - - const auto now = std::chrono::steady_clock::now(); - const f32 delta_seconds = std::chrono::duration(now - m_previous).count(); - m_previous = now; - ++m_frame_count; - - FrameImages& frame = m_frames[image_index]; - VkImage current_image = *inout_image; - VkImageView current_view = *inout_image_view; - u32 slot = 0; - - for (auto& effect : m_effects) { - UpdateUniforms(effect, image_index, delta_seconds); - - for (size_t pass_index = 0; pass_index < effect.passes.size(); ++pass_index) { - Pass& pass = effect.passes[pass_index]; - - UpdateDescriptors(device, effect, pass, image_index, current_view); - - VkFramebuffer framebuffer{}; - VkImage target_image{}; - if (pass.writes_backbuffer) { - const u32 target_slot = (slot + 1) % 2; - framebuffer = *pass.framebuffers[image_index * 2 + target_slot]; - target_image = *frame.images[target_slot]; - } else { - framebuffer = *pass.framebuffers[0]; - target_image = *effect.textures[pass.target_texture].image; - } - - const VkImage source_image = current_image; - const VkRenderPass renderpass = *pass.renderpass; - const VkPipeline pipeline = *pass.pipeline; - const VkPipelineLayout layout = *pass.pipeline_layout; - const VkDescriptorSet uniform_set = effect.uniform_sets[image_index]; - const VkDescriptorSet sampler_set = pass.sampler_sets[image_index]; - const VkExtent2D extent = pass.extent; - const u32 vertices = pass.num_vertices; - - scheduler.RequestOutsideRenderPassOperationContext(); - scheduler.Record([=](vk::CommandBuffer cmdbuf) { - TransitionImageLayout(cmdbuf, source_image, VK_IMAGE_LAYOUT_GENERAL); - TransitionImageLayout(cmdbuf, target_image, VK_IMAGE_LAYOUT_GENERAL); - BeginRenderPass(cmdbuf, renderpass, framebuffer, extent); - cmdbuf.BindPipeline(VK_PIPELINE_BIND_POINT_GRAPHICS, pipeline); - cmdbuf.BindDescriptorSets(VK_PIPELINE_BIND_POINT_GRAPHICS, layout, 0, - std::array{uniform_set, sampler_set}, {}); - cmdbuf.Draw(vertices, 1, 0, 0); - cmdbuf.EndRenderPass(); - TransitionImageLayout(cmdbuf, target_image, VK_IMAGE_LAYOUT_GENERAL); - }); - - if (pass.writes_backbuffer) { - slot = (slot + 1) % 2; - current_image = *frame.images[slot]; - current_view = *frame.views[slot]; - } - } - } - - *inout_image = current_image; - *inout_image_view = current_view; -} - -} // namespace Vulkan diff --git a/src/video_core/renderer_vulkan/present/post_process.h b/src/video_core/renderer_vulkan/present/post_process.h deleted file mode 100644 index 9d42bd4751..0000000000 --- a/src/video_core/renderer_vulkan/present/post_process.h +++ /dev/null @@ -1,140 +0,0 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - -#pragma once - -#include -#include -#include -#include -#include - -#include "common/common_types.h" -#include "video_core/vulkan_common/vulkan_memory_allocator.h" -#include "video_core/vulkan_common/vulkan_wrapper.h" - -namespace Vulkan { - -class Device; -class Scheduler; - -class PostProcessChain { -public: - explicit PostProcessChain(const Device& device, MemoryAllocator& allocator, Scheduler& scheduler, - size_t image_count, VkExtent2D extent); - ~PostProcessChain(); - - void Draw(const Device& device, Scheduler& scheduler, size_t image_index, VkImage* inout_image, - VkImageView* inout_image_view); - - bool Empty() const; - -private: - enum class UniformKind : u32 { - Boolean, - Integer, - Floating, - }; - - enum class UniformSource : u32 { - Value, - FrameTime, - FrameCount, - Timer, - Random, - PingPong, - }; - - struct UniformWrite { - std::string name; - u32 offset{}; - u32 components{}; - UniformKind kind{UniformKind::Floating}; - UniformSource source{UniformSource::Value}; - std::array fallback{}; - std::array args{}; - f32 state{}; - f32 direction{1.0f}; - }; - - struct Texture { - std::string name; - vk::Image image{}; - vk::ImageView view{}; - VkExtent2D extent{}; - VkFormat format{}; - bool is_backbuffer{}; - }; - - struct Sampler { - vk::Sampler sampler{}; - size_t texture_index{}; - }; - - struct SamplerBinding { - u32 binding{}; - size_t sampler_index{}; - }; - - struct Pass { - vk::RenderPass renderpass{}; - vk::Pipeline pipeline{}; - vk::DescriptorSetLayout sampler_layout{}; - vk::PipelineLayout pipeline_layout{}; - vk::DescriptorSets sampler_sets{}; - std::vector sampler_bindings{}; - std::vector framebuffers{}; - size_t target_texture{}; - VkExtent2D extent{}; - u32 num_vertices{3}; - bool clear{}; - bool writes_backbuffer{}; - u32 backbuffer_slot{}; - }; - - struct Effect { - size_t entry_index{}; - std::string file{}; - std::map shaders{}; - std::vector textures{}; - std::vector samplers{}; - std::vector passes{}; - std::vector uniforms{}; - u32 uniform_size{}; - std::vector uniform_buffers{}; - vk::DescriptorSetLayout uniform_layout{}; - vk::DescriptorPool descriptor_pool{}; - vk::DescriptorSets uniform_sets{}; - size_t backbuffer_pass_count{}; - u32 backbuffer_slots{1}; - }; - - struct FrameImages { - std::array images{}; - std::array views{}; - }; - - bool BuildEffects(const Device& device, MemoryAllocator& allocator, Scheduler& scheduler); - void CreatePingPongImages(const Device& device, MemoryAllocator& allocator); - void PrepareImages(const Device& device, Scheduler& scheduler); - void UpdateUniforms(Effect& effect, size_t image_index, f32 delta_seconds); - void UpdateDescriptors(const Device& device, Effect& effect, Pass& pass, size_t image_index, - VkImageView backbuffer_view); - - const VkExtent2D m_extent; - const u32 m_image_count; - - std::vector m_effects{}; - std::vector m_frames{}; - - vk::Sampler m_fallback_sampler{}; - vk::Image m_fallback_image{}; - vk::ImageView m_fallback_view{}; - - std::chrono::steady_clock::time_point m_start{}; - std::chrono::steady_clock::time_point m_previous{}; - u64 m_frame_count{}; - bool m_images_ready{}; -}; - -} // namespace Vulkan diff --git a/src/video_core/renderer_vulkan/renderer_vulkan.cpp b/src/video_core/renderer_vulkan/renderer_vulkan.cpp index 27ca531186..6290e79d93 100644 --- a/src/video_core/renderer_vulkan/renderer_vulkan.cpp +++ b/src/video_core/renderer_vulkan/renderer_vulkan.cpp @@ -24,9 +24,6 @@ #include "video_core/gpu.h" #include "video_core/present.h" #include "video_core/renderer_vulkan/present/util.h" -#ifdef HAS_RESHADE -#include "video_core/post_processing/fx_chain.h" -#endif #include "video_core/renderer_vulkan/renderer_vulkan.h" #include "video_core/renderer_vulkan/vk_blit_screen.h" #include "video_core/renderer_vulkan/vk_rasterizer.h" @@ -186,10 +183,6 @@ try scheduler.RegisterOnSubmit([this] { turbo_mode->QueueSubmitted(); }); } -#ifdef HAS_RESHADE - VideoCore::FxChain::Instance().LoadFromSettings(); -#endif - Report(); } catch (const vk::Exception& exception) { LOG_ERROR(Render_Vulkan, "Vulkan initialization failed with error: {}", exception.what()); @@ -217,15 +210,13 @@ void RendererVulkan::Composite(std::span framebu scheduler.RequestOutsideRenderPassOperationContext(); blit_swapchain.DrawToFrame(device, rasterizer, frame, framebuffers, - render_window.GetFramebufferLayout(), - present_manager.SwapchainImageCount(), + render_window.GetFramebufferLayout(), swapchain.GetImageCount(), swapchain.GetImageViewFormat()); #ifdef HAS_LSFG void(frame_gen.WantedGenerations(present_manager.MaxExtraFrames())); - frame_gen.Process(device, frame, present_manager.SwapchainImageFormat(), - GuestExtent(framebuffers)); + frame_gen.Process(device, frame, swapchain.GetImageFormat(), GuestExtent(framebuffers)); const size_t generated_frames = frame_gen.GeneratedFrameCount(); for (size_t generation = 0; generation < generated_frames; ++generation) { diff --git a/src/video_core/renderer_vulkan/vk_blit_screen.cpp b/src/video_core/renderer_vulkan/vk_blit_screen.cpp index 205382f81a..96eeeb8045 100644 --- a/src/video_core/renderer_vulkan/vk_blit_screen.cpp +++ b/src/video_core/renderer_vulkan/vk_blit_screen.cpp @@ -8,7 +8,6 @@ // SPDX-License-Identifier: GPL-2.0-or-later #include -#include "common/settings.h" #include "video_core/framebuffer_config.h" #include "video_core/present.h" #include "video_core/renderer_vulkan/present/filters.h" @@ -88,18 +87,13 @@ void BlitScreen::SetWindowAdaptPass(const Device& device) { void BlitScreen::PrepareFrame(const Device& device, Frame* frame, const Layout::FramebufferLayout& layout) { - if (!window_adapt) { - return; - } - - if (frame->width != layout.width || frame->height != layout.height) { - WaitIdle(device); - } else if (!present_manager.NeedsStorage(frame, true)) { + if (!window_adapt || (frame->width == layout.width && frame->height == layout.height)) { return; } + WaitIdle(device); present_manager.RecreateFrame(frame, layout.width, layout.height, swapchain_view_format, - window_adapt->GetRenderPass(), true); + window_adapt->GetRenderPass()); } void BlitScreen::DrawToFrame(const Device& device, RasterizerVulkan& rasterizer, Frame* frame, @@ -126,20 +120,16 @@ void BlitScreen::DrawToFrame(const Device& device, RasterizerVulkan& rasterizer, swapchain_view_format = current_swapchain_view_format; } - const bool storage_required = Settings::values.frame_gen.GetValue(); if (resource_update_required) { WaitIdle(device); SetWindowAdaptPass(device); if (presentation_recreate_required) { present_manager.RecreateFrame(frame, layout.width, layout.height, swapchain_view_format, - window_adapt->GetRenderPass(), storage_required); + window_adapt->GetRenderPass()); } image_index = 0; - } else if (present_manager.NeedsStorage(frame, storage_required)) { - present_manager.RecreateFrame(frame, layout.width, layout.height, swapchain_view_format, - window_adapt->GetRenderPass(), true); } const VkExtent2D window_size{ diff --git a/src/video_core/renderer_vulkan/vk_buffer_cache.cpp b/src/video_core/renderer_vulkan/vk_buffer_cache.cpp index 493de2cc20..958f3b2a2e 100644 --- a/src/video_core/renderer_vulkan/vk_buffer_cache.cpp +++ b/src/video_core/renderer_vulkan/vk_buffer_cache.cpp @@ -419,15 +419,15 @@ void BufferCacheRuntime::TickFrame(Common::SlotVector& slot_buffers) noe } u64 BufferCacheRuntime::CurrentTick() { - return scheduler.CurrentTick(); + return scheduler.GetMasterSemaphore().CurrentTick(); } -bool BufferCacheRuntime::IsFree(u64 tick) { - return scheduler.IsFree(tick); +u64 BufferCacheRuntime::KnownGpuTick() { + return scheduler.GetMasterSemaphore().KnownGpuTick(); } -void BufferCacheRuntime::Wait(u64 tick) { - scheduler.Wait(tick); +void BufferCacheRuntime::Wait(u64 buffer_tick) { + scheduler.Wait(buffer_tick); } void BufferCacheRuntime::Finish() { @@ -471,7 +471,7 @@ void BufferCacheRuntime::CopyBuffer(VkBuffer dst_buffer, VkBuffer src_buffer, if (src_buffer == staging_pool.StreamBuf() && can_reorder_upload) { scheduler.RecordWithUploadBuffer([src_buffer, dst_buffer, vk_copies]( vk::CommandBuffer, vk::CommandBuffer upload_cmdbuf) { - upload_cmdbuf.CopyBuffer(src_buffer, dst_buffer, vk_copies); + upload_cmdbuf.CopyBuffer(src_buffer, dst_buffer, VideoCommon::FixSmallVectorADL(vk_copies)); }); return; } @@ -482,7 +482,7 @@ void BufferCacheRuntime::CopyBuffer(VkBuffer dst_buffer, VkBuffer src_buffer, cmdbuf.PipelineBarrier(vk::PIPELINE_STAGE_GRAPHICS_COMPUTE_TRANSFER, VK_PIPELINE_STAGE_TRANSFER_BIT, 0, READ_BARRIER); } - cmdbuf.CopyBuffer(src_buffer, dst_buffer, vk_copies); + cmdbuf.CopyBuffer(src_buffer, dst_buffer, VideoCommon::FixSmallVectorADL(vk_copies)); if (barrier) { cmdbuf.PipelineBarrier(VK_PIPELINE_STAGE_TRANSFER_BIT, vk::PIPELINE_STAGE_GRAPHICS_COMPUTE, 0, WRITE_BARRIER); diff --git a/src/video_core/renderer_vulkan/vk_buffer_cache.h b/src/video_core/renderer_vulkan/vk_buffer_cache.h index fff1f8164d..fbd8c2e753 100644 --- a/src/video_core/renderer_vulkan/vk_buffer_cache.h +++ b/src/video_core/renderer_vulkan/vk_buffer_cache.h @@ -112,9 +112,9 @@ public: u64 CurrentTick(); - bool IsFree(u64 tick); + u64 KnownGpuTick(); - void Wait(u64 tick); + void Wait(u64 buffer_tick); void Finish(); diff --git a/src/video_core/renderer_vulkan/vk_pipeline_cache.cpp b/src/video_core/renderer_vulkan/vk_pipeline_cache.cpp index d4ffcd8317..642b9fa223 100644 --- a/src/video_core/renderer_vulkan/vk_pipeline_cache.cpp +++ b/src/video_core/renderer_vulkan/vk_pipeline_cache.cpp @@ -23,7 +23,6 @@ #include "shader_recompiler/environment.h" #include "shader_recompiler/frontend/maxwell/control_flow.h" #include "shader_recompiler/frontend/maxwell/translate_program.h" -#include "shader_recompiler/ir_opt/passes.h" #include "shader_recompiler/program_header.h" #include "video_core/engines/kepler_compute.h" #include "video_core/engines/maxwell_3d.h" @@ -363,7 +362,7 @@ PipelineCache::PipelineCache(Tegra::MaxwellDeviceMemoryManager& device_memory_, const auto subgroup_stage_bit{[subgroup_stages](VkShaderStageFlags flag, Shader::Stage stage) { return (subgroup_stages & flag) != 0 ? (1u << static_cast(stage)) : 0u; }}; - u32 supported_subgroup_stages{ + const u32 supported_subgroup_stages{ subgroup_stage_bit(VK_SHADER_STAGE_VERTEX_BIT, Shader::Stage::VertexA) | subgroup_stage_bit(VK_SHADER_STAGE_VERTEX_BIT, Shader::Stage::VertexB) | subgroup_stage_bit(VK_SHADER_STAGE_TESSELLATION_CONTROL_BIT, @@ -373,9 +372,6 @@ PipelineCache::PipelineCache(Tegra::MaxwellDeviceMemoryManager& device_memory_, subgroup_stage_bit(VK_SHADER_STAGE_GEOMETRY_BIT, Shader::Stage::Geometry) | subgroup_stage_bit(VK_SHADER_STAGE_FRAGMENT_BIT, Shader::Stage::Fragment) | subgroup_stage_bit(VK_SHADER_STAGE_COMPUTE_BIT, Shader::Stage::Compute)}; - if (driver_id == VK_DRIVER_ID_MESA_TURNIP) { - supported_subgroup_stages &= ~(1u << static_cast(Shader::Stage::Geometry)); - } profile = Shader::Profile{ .supported_spirv = device.SupportedSpirvVersion(), .unified_descriptor_binding = true, @@ -413,8 +409,6 @@ PipelineCache::PipelineCache(Tegra::MaxwellDeviceMemoryManager& device_memory_, .support_shader_quad_control = device.IsKhrShaderQuadControlSupported(), .support_quad_shuffles = device.IsSubgroupFeatureSupported(VK_SUBGROUP_FEATURE_QUAD_BIT), .support_vote = device.IsSubgroupFeatureSupported(VK_SUBGROUP_FEATURE_VOTE_BIT), - .support_shuffle_relative = - device.IsSubgroupFeatureSupported(VK_SUBGROUP_FEATURE_SHUFFLE_RELATIVE_BIT), .supported_subgroup_stages = supported_subgroup_stages, .support_viewport_index_layer_non_geometry = device.IsExtShaderViewportIndexLayerSupported(), @@ -447,22 +441,16 @@ PipelineCache::PipelineCache(Tegra::MaxwellDeviceMemoryManager& device_memory_, driver_id == VK_DRIVER_ID_AMD_OPEN_SOURCE || driver_id == VK_DRIVER_ID_MESA_RADV || driver_id == VK_DRIVER_ID_INTEL_PROPRIETARY_WINDOWS || - driver_id == VK_DRIVER_ID_INTEL_OPEN_SOURCE_MESA || - driver_id == VK_DRIVER_ID_QUALCOMM_PROPRIETARY || - driver_id == VK_DRIVER_ID_MESA_TURNIP, + driver_id == VK_DRIVER_ID_INTEL_OPEN_SOURCE_MESA, .has_broken_spirv_clamp = driver_id == VK_DRIVER_ID_INTEL_PROPRIETARY_WINDOWS, - .has_broken_spirv_position_input = driver_id == VK_DRIVER_ID_QUALCOMM_PROPRIETARY, + .has_broken_spirv_position_input = driver_id == false, .has_broken_unsigned_image_offsets = false, .has_broken_signed_operations = false, .has_broken_fp16_float_controls = driver_id == VK_DRIVER_ID_NVIDIA_PROPRIETARY, .has_broken_fp32_denorm_flush = driver_id == VK_DRIVER_ID_QUALCOMM_PROPRIETARY, .ignore_nan_fp_comparisons = false, - .has_broken_spirv_subgroup_mask_vector_extract_dynamic = - driver_id == VK_DRIVER_ID_QUALCOMM_PROPRIETARY && - device.GetDriverVersion() < VK_MAKE_VERSION(512, 672, 0), - .has_broken_spirv_subgroup_shuffle = driver_id == VK_DRIVER_ID_QUALCOMM_PROPRIETARY, - .max_subgroup_size = device.GetMaxSubgroupSize(), + .has_broken_spirv_subgroup_mask_vector_extract_dynamic = false, .has_broken_robust = device.IsNvidia() && device.GetNvidiaArch() <= NvidiaArchitecture::Arch_Pascal, .min_ssbo_alignment = device.GetStorageBufferAlignment(), @@ -489,10 +477,8 @@ PipelineCache::PipelineCache(Tegra::MaxwellDeviceMemoryManager& device_memory_, driver_id == VK_DRIVER_ID_SAMSUNG_PROPRIETARY, .support_snorm_render_buffer = true, .support_viewport_index_layer = device.IsExtShaderViewportIndexLayerSupported(), - .support_viewport_mask = device.IsNvViewportArray2Supported(), .support_geometry_shader_passthrough = device.IsNvGeometryShaderPassthroughSupported(), .support_conditional_barrier = device.SupportsConditionalBarriers(), - .single_lane_geometry_subgroups = !profile.SupportsSubgroupStage(Shader::Stage::Geometry), }; host_info.ApplyDescriptorLimitPolicy(); @@ -789,11 +775,6 @@ GraphicsPipeline* PipelineCache::BuiltPipeline(GraphicsPipeline* pipeline) const if (!use_asynchronous_shaders) { return pipeline; } - // If something is using depth, we can assume that games are not rendering anything which - // will be used one time. - if (maxwell3d->regs.zeta_enable) { - return nullptr; - } // If games are using a small index count, we can assume these are full screen quads. // Usually these shaders are only used once for building textures so we can assume they // can't be built async @@ -845,11 +826,6 @@ std::unique_ptr PipelineCache::CreateGraphicsPipeline( programs[index] = MergeDualVertexPrograms(program_va, program_vb, env); } - if (device.GetDriverID() != VK_DRIVER_ID_NVIDIA_PROPRIETARY && Shader::Optimization::HasBrokenPattern(programs[index])) { - LOG_WARNING(Render_Vulkan, "0x{:016x}: Skipping shader with known issues", key.unique_hashes[index]); - return nullptr; - } - if (Settings::values.dump_guest_shaders) { env.Dump(hash, key.unique_hashes[index]); } diff --git a/src/video_core/renderer_vulkan/vk_present_manager.cpp b/src/video_core/renderer_vulkan/vk_present_manager.cpp index 9298764546..3491f8fb75 100644 --- a/src/video_core/renderer_vulkan/vk_present_manager.cpp +++ b/src/video_core/renderer_vulkan/vk_present_manager.cpp @@ -23,13 +23,15 @@ namespace Vulkan { namespace { constexpr size_t MAX_FRAMES_IN_FLIGHT = 7; -constexpr u32 MAX_PRESENT_ATTEMPTS = 3; #ifdef HAS_LSFG static_assert(MAX_FRAMES_IN_FLIGHT <= LSFG_MAX_TARGETS); #endif bool CanStoreToFrame(const vk::PhysicalDevice& physical_device, VkFormat format) { #ifdef HAS_LSFG + if (!Settings::values.frame_gen.GetValue()) { + return false; + } const VkFormatProperties props{physical_device.GetFormatProperties(format)}; return (props.optimalTilingFeatures & VK_FORMAT_FEATURE_STORAGE_IMAGE_BIT) != 0; #else @@ -158,7 +160,6 @@ PresentManager::PresentManager(const vk::Instance& instance_, .pNext = nullptr, .flags = VK_FENCE_CREATE_SIGNALED_BIT, }); - frame.storage_capable = storage_supported; free_queue.push_back(&frame); } @@ -204,22 +205,15 @@ size_t PresentManager::MaxExtraFrames() const { return image_count - 1; } -bool PresentManager::NeedsStorage(const Frame* frame, bool required) const { - return required && frame->storage_capable && !frame->storage_view; -} - void PresentManager::RecreateFrame(Frame* frame, u32 width, u32 height, VkFormat image_view_format, - VkRenderPass rd, bool storage) { + VkRenderPass rd) { auto& dld = device.GetLogical(); frame->width = width; frame->height = height; - const bool with_storage = storage && frame->storage_capable; - VkImageUsageFlags storage_usage = 0; - if (with_storage) { - storage_usage = VK_IMAGE_USAGE_STORAGE_BIT; - } + const VkImageUsageFlags storage_usage = + storage_supported ? static_cast(VK_IMAGE_USAGE_STORAGE_BIT) : 0; frame->image = memory_allocator.CreateImage({ .sType = VK_STRUCTURE_TYPE_IMAGE_CREATE_INFO, @@ -270,7 +264,7 @@ void PresentManager::RecreateFrame(Frame* frame, u32 width, u32 height, VkFormat }); frame->storage_view = vk::ImageView{}; - if (with_storage) { + if (storage_supported) { frame->storage_view = dld.CreateImageView({ .sType = VK_STRUCTURE_TYPE_IMAGE_VIEW_CREATE_INFO, .pNext = nullptr, @@ -373,33 +367,12 @@ void PresentManager::SetImageCount() { #else image_count = std::min(swapchain.GetImageCount(), MAX_FRAMES_IN_FLIGHT); #endif - swapchain_image_count = swapchain.GetImageCount(); - swapchain_image_format = swapchain.GetImageFormat(); -} - -void PresentManager::DiscardFrame(Frame* frame) { - static constexpr VkPipelineStageFlags wait_stage = VK_PIPELINE_STAGE_TOP_OF_PIPE_BIT; - const VkSemaphore render_ready = *frame->render_ready; - const VkSubmitInfo submit_info{ - .sType = VK_STRUCTURE_TYPE_SUBMIT_INFO, - .pNext = nullptr, - .waitSemaphoreCount = 1U, - .pWaitSemaphores = &render_ready, - .pWaitDstStageMask = &wait_stage, - .commandBufferCount = 0U, - .pCommandBuffers = nullptr, - .signalSemaphoreCount = 0U, - .pSignalSemaphores = nullptr, - }; - - std::scoped_lock submit_lock{scheduler.submit_mutex}; - void(device.GetGraphicsQueue().Submit(submit_info, *frame->present_done)); } void PresentManager::CopyToSwapchain(Frame* frame) { bool requires_recreation = false; - for (u32 attempt = 0; attempt < MAX_PRESENT_ATTEMPTS; ++attempt) { + while (true) { try { // Recreate surface and swapchain if needed. if (requires_recreation) { @@ -419,8 +392,6 @@ void PresentManager::CopyToSwapchain(Frame* frame) { requires_recreation = true; } } - - DiscardFrame(frame); } void PresentManager::CopyToSwapchainImpl(Frame* frame) { diff --git a/src/video_core/renderer_vulkan/vk_present_manager.h b/src/video_core/renderer_vulkan/vk_present_manager.h index ab2b76f10f..577a82098a 100644 --- a/src/video_core/renderer_vulkan/vk_present_manager.h +++ b/src/video_core/renderer_vulkan/vk_present_manager.h @@ -6,7 +6,6 @@ #pragma once -#include #include #include #include @@ -37,7 +36,6 @@ struct Frame { vk::CommandBuffer cmdbuf; vk::Semaphore render_ready; vk::Fence present_done; - bool storage_capable{}; }; class PresentManager { @@ -59,9 +57,7 @@ public: /// Recreates the present frame to match the provided parameters void RecreateFrame(Frame* frame, u32 width, u32 height, VkFormat image_view_format, - VkRenderPass rd, bool storage); - - [[nodiscard]] bool NeedsStorage(const Frame* frame, bool required) const; + VkRenderPass rd); /// Waits for the present thread to finish presenting all queued frames. void WaitPresent(); @@ -69,9 +65,6 @@ public: /// How many additional frames can be queued without stalling the render thread [[nodiscard]] size_t MaxExtraFrames() const; - [[nodiscard]] std::size_t SwapchainImageCount() const { return swapchain_image_count; } - [[nodiscard]] VkFormat SwapchainImageFormat() const { return swapchain_image_format; } - private: void PresentThread(std::stop_token token); @@ -81,8 +74,6 @@ private: void RecreateSwapchain(Frame* frame); - void DiscardFrame(Frame* frame); - void SetImageCount(); private: @@ -106,9 +97,7 @@ private: bool blit_supported; bool storage_supported; bool use_present_thread; - std::atomic image_count{}; - std::atomic swapchain_image_count{}; - std::atomic swapchain_image_format{}; + std::size_t image_count{}; }; } // namespace Vulkan diff --git a/src/video_core/renderer_vulkan/vk_query_cache.cpp b/src/video_core/renderer_vulkan/vk_query_cache.cpp index f63c924e39..2b5aa24053 100644 --- a/src/video_core/renderer_vulkan/vk_query_cache.cpp +++ b/src/video_core/renderer_vulkan/vk_query_cache.cpp @@ -814,7 +814,7 @@ public: new_query->flags |= VideoCommon::QueryFlagBits::IsFinalValueSynced; return index; } - + scheduler.RequestOutsideRenderPassOperationContext(); CloseCounter(); auto [bank_slot, data_slot] = ProduceCounterBuffer(slot); @@ -952,6 +952,8 @@ private: } has_flushed_end_pending = false; + // Refresh buffer state before ending transform feedback to ensure counters_count is up-to-date. + UpdateBuffers(); if (buffers_count == 0) { LOG_DEBUG(Render_Vulkan, "EndTransformFeedbackEXT called with no counters (buffers_count=0)"); scheduler.Record([](vk::CommandBuffer cmdbuf) { diff --git a/src/video_core/renderer_vulkan/vk_rasterizer.cpp b/src/video_core/renderer_vulkan/vk_rasterizer.cpp index 264ffb28b5..f43bea1220 100644 --- a/src/video_core/renderer_vulkan/vk_rasterizer.cpp +++ b/src/video_core/renderer_vulkan/vk_rasterizer.cpp @@ -798,18 +798,6 @@ void RasterizerVulkan::OnCacheInvalidation(DAddr addr, u64 size) { pipeline_cache.InvalidateRegion(addr, size); } -bool RasterizerVulkan::TryCacheInvalidation(DAddr addr, u64 size) { - if (addr == 0 || size == 0) return true; - { - std::scoped_lock lock{buffer_cache.mutex, texture_cache.mutex}; - if (buffer_cache.IsRegionGpuModified(addr, size)) return false; - texture_cache.WriteMemory(addr, size); - buffer_cache.WriteMemory(addr, size); - } - pipeline_cache.InvalidateRegion(addr, size); - return true; -} - void RasterizerVulkan::InvalidateGPUCache() { gpu.InvalidateGPUCache(); } diff --git a/src/video_core/renderer_vulkan/vk_rasterizer.h b/src/video_core/renderer_vulkan/vk_rasterizer.h index ae9929ca0b..7470aa4f14 100644 --- a/src/video_core/renderer_vulkan/vk_rasterizer.h +++ b/src/video_core/renderer_vulkan/vk_rasterizer.h @@ -106,7 +106,6 @@ public: VideoCommon::CacheType which = VideoCommon::CacheType::All) override; void InnerInvalidation(std::span> sequences) override; void OnCacheInvalidation(DAddr addr, u64 size) override; - bool TryCacheInvalidation(DAddr addr, u64 size) override; bool OnCPUWrite(DAddr addr, u64 size) override; void InvalidateGPUCache() override; void UnmapMemory(DAddr addr, u64 size) override; diff --git a/src/video_core/renderer_vulkan/vk_texture_cache.cpp b/src/video_core/renderer_vulkan/vk_texture_cache.cpp index 583cb6edaf..c3f56408b5 100644 --- a/src/video_core/renderer_vulkan/vk_texture_cache.cpp +++ b/src/video_core/renderer_vulkan/vk_texture_cache.cpp @@ -1642,7 +1642,7 @@ void TextureCacheRuntime::CopyImage(Image& dst, Image& src, VK_PIPELINE_STAGE_TRANSFER_BIT, 0, nullptr, nullptr, pre_barriers); cmdbuf.CopyImage(src_image, VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL, dst_image, - VK_IMAGE_LAYOUT_TRANSFER_DST_OPTIMAL, vk_copies); + VK_IMAGE_LAYOUT_TRANSFER_DST_OPTIMAL, VideoCommon::FixSmallVectorADL(vk_copies)); cmdbuf.PipelineBarrier( VK_PIPELINE_STAGE_TRANSFER_BIT, VK_PIPELINE_STAGE_LATE_FRAGMENT_TESTS_BIT | VK_PIPELINE_STAGE_COMPUTE_SHADER_BIT | @@ -2006,7 +2006,7 @@ void Image::UploadMemory(VkBuffer buffer, VkDeviceSize offset, scheduler->Record([src_buffer, temp_vk_image, vk_aspect_mask, vk_copies](vk::CommandBuffer cmdbuf) { - CopyBufferToImage(cmdbuf, src_buffer, temp_vk_image, vk_aspect_mask, false, vk_copies); + CopyBufferToImage(cmdbuf, src_buffer, temp_vk_image, vk_aspect_mask, false, VideoCommon::FixSmallVectorADL(vk_copies)); }); const auto [samples_x, samples_y] = VideoCommon::SamplesLog2(info.num_samples); @@ -2060,7 +2060,7 @@ void Image::UploadMemory(VkBuffer buffer, VkDeviceSize offset, scheduler->Record([src_buffer, vk_image, vk_aspect_mask, was_initialized, vk_copies](vk::CommandBuffer cmdbuf) { - CopyBufferToImage(cmdbuf, src_buffer, vk_image, vk_aspect_mask, was_initialized, vk_copies); + CopyBufferToImage(cmdbuf, src_buffer, vk_image, vk_aspect_mask, was_initialized, VideoCommon::FixSmallVectorADL(vk_copies)); }); if (is_rescaled) { @@ -2850,6 +2850,8 @@ Sampler::VariantKey Sampler::MakeKey(const ImageView& image_view, bool is_depth) VariantKey key{}; key.reduce_anisotropy = has_added_anisotropy && !image_view.SupportsAnisotropy(); key.force_nearest = has_linear_filtering && IsPixelFormatInteger(image_view.format); + key.drop_depth_comparison = + is_depth && has_depth_comparison && !image_view.SupportsDepthComparison(); key.drop_reduction = has_minmax_reduction && !image_view.SupportsMinmaxFilter(); key.drop_custom_border = has_custom_border_colors && image_view.RequiresBorderColorFormat(); key.srgb_border = has_srgb_border_color && IsPixelFormatSRGB(image_view.format); @@ -2927,6 +2929,9 @@ VkSampler Sampler::Emplace(VariantKey key) { create_info.anisotropyEnable = static_cast(default_anisotropy > 1.0f); create_info.maxAnisotropy = default_anisotropy; } + if (key.drop_depth_comparison) { + create_info.compareEnable = VK_FALSE; + } if (!custom_border) { create_info.borderColor = ConvertBorderColor(color); } diff --git a/src/video_core/renderer_vulkan/vk_texture_cache.h b/src/video_core/renderer_vulkan/vk_texture_cache.h index 2e9736f707..68bf2af991 100644 --- a/src/video_core/renderer_vulkan/vk_texture_cache.h +++ b/src/video_core/renderer_vulkan/vk_texture_cache.h @@ -536,6 +536,7 @@ private: struct VariantKey { bool reduce_anisotropy; bool force_nearest; + bool drop_depth_comparison; bool drop_reduction; bool drop_custom_border; bool srgb_border; diff --git a/src/video_core/texture_cache/texture_cache.h b/src/video_core/texture_cache/texture_cache.h index e92e54f8ce..640bd38407 100644 --- a/src/video_core/texture_cache/texture_cache.h +++ b/src/video_core/texture_cache/texture_cache.h @@ -140,7 +140,7 @@ void TextureCache

::RunGarbageCollector() { } if (must_download) { auto map = runtime.DownloadStagingBuffer(image.unswizzled_size_bytes); - const auto copies = FullDownloadCopies(image.info); + const auto copies = FixSmallVectorADL(FullDownloadCopies(image.info)); image.DownloadMemory(map, copies); runtime.Finish(); SwizzleImage(*gpu_memory, image.gpu_addr, image.info, copies, map.mapped_span, swizzle_data_buffer); @@ -629,7 +629,7 @@ void TextureCache

::DownloadMemory(DAddr cpu_addr, size_t size) { for (const ImageId image_id : images) { Image& image = slot_images[image_id]; auto map = runtime.DownloadStagingBuffer(image.unswizzled_size_bytes); - const auto copies = FullDownloadCopies(image.info); + const auto copies = FixSmallVectorADL(FullDownloadCopies(image.info)); image.DownloadMemory(map, copies); runtime.Finish(); SwizzleImage(*gpu_memory, image.gpu_addr, image.info, copies, map.mapped_span, @@ -893,7 +893,7 @@ void TextureCache

::CommitAsyncFlushes() { for (const PendingDownload& download_info : download_ids) { if (download_info.is_swizzle) { Image& image = slot_images[download_info.object_id]; - const auto copies = FullDownloadCopies(image.info); + const auto copies = FixSmallVectorADL(FullDownloadCopies(image.info)); image.DownloadMemory(download_map, copies); download_map.offset += Common::AlignUp(image.unswizzled_size_bytes, 64); } @@ -926,7 +926,7 @@ void TextureCache

::PopAsyncFlushes() { auto& download_buffer = download_map[download_info.async_buffer_id]; if (download_info.is_swizzle) { const ImageBase& image = slot_images[download_info.object_id]; - const auto copies = FullDownloadCopies(image.info); + const auto copies = FixSmallVectorADL(FullDownloadCopies(image.info)); download_buffer.offset -= Common::AlignUp(image.unswizzled_size_bytes, 64); std::span download_span = download_buffer.mapped_span.subspan(download_buffer.offset); @@ -964,7 +964,7 @@ void TextureCache

::PopAsyncFlushes() { continue; } Image& image = slot_images[download_info.object_id]; - const auto copies = FullDownloadCopies(image.info); + const auto copies = FixSmallVectorADL(FullDownloadCopies(image.info)); image.DownloadMemory(download_map, copies); download_map.offset += image.unswizzled_size_bytes; } @@ -977,7 +977,7 @@ void TextureCache

::PopAsyncFlushes() { continue; } const ImageBase& image = slot_images[download_info.object_id]; - const auto copies = FullDownloadCopies(image.info); + const auto copies = FixSmallVectorADL(FullDownloadCopies(image.info)); SwizzleImage(*gpu_memory, image.gpu_addr, image.info, copies, download_span, swizzle_data_buffer); download_map.offset += image.unswizzled_size_bytes; download_span = download_span.subspan(image.unswizzled_size_bytes); @@ -1160,7 +1160,7 @@ void TextureCache

::UploadImageContents(Image& image, StagingBuffer& staging) gpu_memory->ReadBlock(gpu_addr, mapped_span.data(), mapped_span.size_bytes(), VideoCommon::CacheType::NoTextureCache); const auto uploads = FullUploadSwizzles(image.info); - runtime.AccelerateImageUpload(image, staging, uploads, 0, 0); + runtime.AccelerateImageUpload(image, staging, FixSmallVectorADL(uploads), 0, 0); return; } @@ -1168,11 +1168,11 @@ void TextureCache

::UploadImageContents(Image& image, StagingBuffer& staging) *gpu_memory, gpu_addr, image.guest_size_bytes, &swizzle_data_buffer); if (True(image.flags & ImageFlagBits::Converted)) { unswizzle_data_buffer.resize_destructive(image.unswizzled_size_bytes); - auto copies = UnswizzleImage(*gpu_memory, gpu_addr, image.info, swizzle_data, unswizzle_data_buffer); + auto copies = FixSmallVectorADL(UnswizzleImage(*gpu_memory, gpu_addr, image.info, swizzle_data, unswizzle_data_buffer)); ConvertImage(unswizzle_data_buffer, image.info, mapped_span, copies); image.UploadMemory(staging, copies); } else { - const auto copies = UnswizzleImage(*gpu_memory, gpu_addr, image.info, swizzle_data, mapped_span); + const auto copies = FixSmallVectorADL(UnswizzleImage(*gpu_memory, gpu_addr, image.info, swizzle_data, mapped_span)); image.UploadMemory(staging, copies); } } @@ -1401,7 +1401,7 @@ void TextureCache

::TickAsyncDecode() { auto staging = runtime.UploadStagingBuffer(MapSizeBytes(image)); std::memcpy(staging.mapped_span.data(), async_decode->decoded_data.data(), async_decode->decoded_data.size()); - image.UploadMemory(staging, async_decode->copies); + image.UploadMemory(staging, FixSmallVectorADL(async_decode->copies)); image.flags &= ~ImageFlagBits::IsDecoding; has_uploads = true; i = async_decodes.erase(i); @@ -1469,7 +1469,7 @@ void TextureCache

::TickAsyncUnswizzle() { if (z_count > 0) { const auto uploads = FullUploadSwizzles(task.info); - runtime.AccelerateImageUpload(image, task.staging_buffer, uploads, z_start, z_count); + runtime.AccelerateImageUpload(image, task.staging_buffer, FixSmallVectorADL(uploads), z_start, z_count); task.last_submitted_offset += (static_cast(z_count) * task.bytes_per_slice); } } @@ -1730,9 +1730,9 @@ ImageId TextureCache

::JoinImages(const ImageInfo& info, GPUVAddr gpu_addr, DA const u32 down_shift = can_rescale ? resolution.down_shift : 0; auto copies = MakeShrinkImageCopies(new_info, overlap.info, base, up_scale, down_shift); if (overlap.info.num_samples != new_image.info.num_samples) { - runtime.CopyImageMSAA(new_image, overlap, copies); + runtime.CopyImageMSAA(new_image, overlap, FixSmallVectorADL(copies)); } else { - runtime.CopyImage(new_image, overlap, copies); + runtime.CopyImage(new_image, overlap, FixSmallVectorADL(copies)); } new_image.modification_tick = overlap.modification_tick; } diff --git a/src/video_core/texture_cache/util.h b/src/video_core/texture_cache/util.h index 590d85b042..3e8bb00032 100644 --- a/src/video_core/texture_cache/util.h +++ b/src/video_core/texture_cache/util.h @@ -1,4 +1,4 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project +// SPDX-FileCopyrightText: Copyright 2025 Eden Emulator Project // SPDX-License-Identifier: GPL-3.0-or-later // SPDX-FileCopyrightText: Copyright 2020 yuzu Emulator Project @@ -122,4 +122,25 @@ void DeduceBlitImages(ImageInfo& dst_info, ImageInfo& src_info, const ImageBase* [[nodiscard]] u32 MapSizeBytes(const ImageBase& image); +// TODO: Remove once Debian STABLE no longer has such outdated boost +// This is a gcc bug where ADL lookup fails for range niebloids of std::span +// for any given type of the static_vector/small_vector, etc which makes a whole mess +// for anything using std::span so we just do this terrible hack on older versions of +// GCC12 because people actually still use stable debian so... yeah +// One may say: "This is bad for performance" - to which I say, using GCC 12 you already know +// what kind of bs you will be dealing with anyways. +template +#if BOOST_VERSION >= 108100 || __GNUC__ > 12 +[[nodiscard]] boost::container::small_vector FixSmallVectorADL(const boost::container::small_vector& v) { + return v; +} +#else +[[nodiscard]] std::vector FixSmallVectorADL(const boost::container::small_vector& v) { + std::vector u; + for (auto const& e : v) + u.push_back(e); + return u; +} +#endif + } // namespace VideoCommon diff --git a/src/video_core/vulkan_common/vulkan_device.h b/src/video_core/vulkan_common/vulkan_device.h index bbf3754e39..077b1c3e23 100644 --- a/src/video_core/vulkan_common/vulkan_device.h +++ b/src/video_core/vulkan_common/vulkan_device.h @@ -483,11 +483,6 @@ FN_MAX_LIMIT_LIST return properties.subgroup_properties.supportedStages; } - u32 GetMaxSubgroupSize() const { - return (std::max)(properties.subgroup_properties.subgroupSize, - properties.subgroup_size_control.maxSubgroupSize); - } - /// Returns the maximum number of push descriptors. u32 MaxPushDescriptors() const { return properties.push_descriptor.maxPushDescriptors; diff --git a/src/video_core/vulkan_common/vulkan_wrapper.cpp b/src/video_core/vulkan_common/vulkan_wrapper.cpp index bb43fe399f..5044881598 100644 --- a/src/video_core/vulkan_common/vulkan_wrapper.cpp +++ b/src/video_core/vulkan_common/vulkan_wrapper.cpp @@ -460,8 +460,20 @@ Instance Instance::Create(u32 version, Span layers, Span gloom + yellow line glitch appears +#ifdef __ANDROID__ + const VkApplicationInfo application_info{ + .sType = VK_STRUCTURE_TYPE_APPLICATION_INFO, + .pNext = nullptr, + .pApplicationName = "PUBGMobile", + .applicationVersion = VK_MAKE_VERSION(1, 7, 0), + .pEngineName = "UnrealEngine", + .engineVersion = VK_MAKE_VERSION(4, 23, 0), + .apiVersion = VK_API_VERSION_1_3, + }; +#else const VkApplicationInfo application_info{ .sType = VK_STRUCTURE_TYPE_APPLICATION_INFO, .pNext = nullptr, @@ -471,6 +483,7 @@ Instance Instance::Create(u32 version, Span layers, Span,15>:CANNOT_EXPLICITLY_INSTANTIATE>) diff --git a/src/yuzu/bootmanager.cpp b/src/yuzu/bootmanager.cpp index 308db3621b..f9c0233901 100644 --- a/src/yuzu/bootmanager.cpp +++ b/src/yuzu/bootmanager.cpp @@ -73,7 +73,6 @@ class QPaintEngine; class QSurface; constexpr int default_mouse_constrain_timeout = 10; -constexpr int default_mouse_update_timeout = 5; class RenderWidget : public QWidget { public: @@ -139,10 +138,6 @@ GRenderWindow::GRenderWindow(MainWindow* parent, mouse_constrain_timer.setInterval(default_mouse_constrain_timeout); connect(&mouse_constrain_timer, &QTimer::timeout, this, &GRenderWindow::ConstrainMouse); - - mouse_update_timer.setInterval(default_mouse_update_timeout); - connect(&mouse_update_timer, &QTimer::timeout, this, &GRenderWindow::UpdateMouse); - mouse_update_timer.start(); } void GRenderWindow::ExecuteProgram(std::size_t program_index) { @@ -492,6 +487,7 @@ void GRenderWindow::mousePressEvent(QMouseEvent* event) { input_subsystem->GetMouse()->PressMouseButton(button); input_subsystem->GetMouse()->PressButton(pos.x(), pos.y(), button); input_subsystem->GetMouse()->PressTouchButton(touch_x, touch_y, button); + input_subsystem->GetMouse()->NotifyChanged(); emit MouseActivity(); } @@ -512,6 +508,7 @@ void GRenderWindow::mouseMoveEvent(QMouseEvent* event) { input_subsystem->GetMouse()->MouseMove(touch_x, touch_y); input_subsystem->GetMouse()->TouchMove(touch_x, touch_y); input_subsystem->GetMouse()->Move(pos.x(), pos.y(), center_x, center_y); + input_subsystem->GetMouse()->NotifyChanged(); // Center mouse for mouse panning if (Settings::values.mouse_panning && !Settings::values.mouse_enabled) { @@ -521,7 +518,8 @@ void GRenderWindow::mouseMoveEvent(QMouseEvent* event) { // Constrain mouse for mouse emulation with mouse panning if (Settings::values.mouse_panning && Settings::values.mouse_enabled) { const auto [clamped_mouse_x, clamped_mouse_y] = ClipToTouchScreen(x, y); - QCursor::setPos(mapToGlobal(QPoint{int(clamped_mouse_x), int(clamped_mouse_y)})); + QCursor::setPos(mapToGlobal( + QPoint{static_cast(clamped_mouse_x), static_cast(clamped_mouse_y)})); } mouse_constrain_timer.stop(); @@ -536,10 +534,16 @@ void GRenderWindow::mouseReleaseEvent(QMouseEvent* event) { const auto button = QtButtonToMouseButton(event->button()); input_subsystem->GetMouse()->ReleaseButton(button); + input_subsystem->GetMouse()->NotifyChanged(); } void GRenderWindow::ConstrainMouse() { - if (QtCommon::emu_thread == nullptr || Settings::values.mouse_panning || !this->isActiveWindow()) { + if (QtCommon::emu_thread == nullptr || !Settings::values.mouse_panning) { + mouse_constrain_timer.stop(); + return; + } + + if (!this->isActiveWindow()) { mouse_constrain_timer.stop(); return; } @@ -548,22 +552,22 @@ void GRenderWindow::ConstrainMouse() { const auto pos = mapFromGlobal(QCursor::pos()); const int new_pos_x = std::clamp(pos.x(), 0, width()); const int new_pos_y = std::clamp(pos.y(), 0, height()); - QCursor::setPos(mapToGlobal(QPoint{new_pos_x, new_pos_y})); - } else { - const int center_x = width() / 2; - const int center_y = height() / 2; - QCursor::setPos(mapToGlobal(QPoint{center_x, center_y})); - } -} -void GRenderWindow::UpdateMouse() { - input_subsystem->GetMouse()->NotifyChanged(); // required to reset mouse once it's no longer moved + QCursor::setPos(mapToGlobal(QPoint{new_pos_x, new_pos_y})); + return; + } + + const int center_x = width() / 2; + const int center_y = height() / 2; + + QCursor::setPos(mapToGlobal(QPoint{center_x, center_y})); } void GRenderWindow::wheelEvent(QWheelEvent* event) { const int x = event->angleDelta().x(); const int y = event->angleDelta().y(); input_subsystem->GetMouse()->MouseWheelChange(x, y); + input_subsystem->GetMouse()->NotifyChanged(); } void GRenderWindow::TouchBeginEvent(const QTouchEvent* event) { @@ -712,6 +716,7 @@ void GRenderWindow::focusOutEvent(QFocusEvent* event) { input_subsystem->GetKeyboard()->ReleaseAllKeys(); input_subsystem->GetTouchScreen()->ReleaseAllTouch(); input_subsystem->GetMouse()->ReleaseAllButtons(); + input_subsystem->GetMouse()->NotifyChanged(); } void GRenderWindow::resizeEvent(QResizeEvent* event) { diff --git a/src/yuzu/bootmanager.h b/src/yuzu/bootmanager.h index bb18bbb3bb..1ed61a8191 100644 --- a/src/yuzu/bootmanager.h +++ b/src/yuzu/bootmanager.h @@ -144,7 +144,6 @@ private: void TouchUpdateEvent(const QTouchEvent* event); void TouchEndEvent(); void ConstrainMouse(); - void UpdateMouse(); void RequestCameraCapture(); void OnCameraCapture(int requestId, const QImage& img); @@ -185,7 +184,6 @@ private: #endif QTimer mouse_constrain_timer; - QTimer mouse_update_timer; protected: void showEvent(QShowEvent* event) override; diff --git a/src/yuzu/configuration/configure_applets.h b/src/yuzu/configuration/configure_applets.h index b794b49e0b..54f494d2f1 100644 --- a/src/yuzu/configuration/configure_applets.h +++ b/src/yuzu/configuration/configure_applets.h @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: 2024 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later @@ -11,6 +8,7 @@ class QCheckBox; class QLineEdit; +class QComboBox; class QDateTimeEdit; namespace Core { class System; diff --git a/src/yuzu/configuration/configure_graphics.cpp b/src/yuzu/configuration/configure_graphics.cpp index 641f65d82a..f294403397 100644 --- a/src/yuzu/configuration/configure_graphics.cpp +++ b/src/yuzu/configuration/configure_graphics.cpp @@ -37,10 +37,6 @@ #include "yuzu/configuration/configure_graphics.h" #include "yuzu/configuration/shared_widget.h" -#ifdef HAS_RESHADE -#include "yuzu/configuration/configure_post_processing.h" -#endif - ConfigureGraphics::ConfigureGraphics( const Core::System& system_, std::vector& records_, const std::function& expose_compute_option_, @@ -220,12 +216,6 @@ void ConfigureGraphics::Setup(const ConfigurationShared::Builder& builder) { std::vector hold_api; for (const auto setting : Settings::values.linkage.by_category[Settings::Category::Renderer]) { -#ifndef HAS_RESHADE - if (setting->Id() == Settings::values.post_shader_enabled.Id()) { - continue; - } -#endif - ConfigurationShared::Widget* widget = [&]() { if (setting->Id() == Settings::values.fsr_sharpening_slider.Id()) { // FSR needs a reversed slider and a 0.5 multiplier @@ -305,23 +295,6 @@ void ConfigureGraphics::Setup(const ConfigurationShared::Builder& builder) { // Keep track of the resolution combobox to update other UI tabs that need it resolution_combobox = widget->combobox; hold_graphics.emplace(setting->Id(), widget); -#ifdef HAS_RESHADE - } else if (setting->Id() == Settings::values.post_shader_enabled.Id()) { - QPushButton* post_shader_button = new QPushButton(tr("Configure Effects..."), widget); - post_shader_button->setVisible(widget->checkbox->isChecked()); - - connect(post_shader_button, &QAbstractButton::clicked, this, [this]() { - ConfigurePostProcessing dialog(this); - dialog.exec(); - }); - connect(widget->checkbox, &QCheckBox::toggled, post_shader_button, - &QWidget::setVisible); - - QBoxLayout* row = qobject_cast(widget->layout()); - row->insertWidget(1, post_shader_button); - - hold_graphics.emplace(setting->Id(), widget); -#endif } else { hold_graphics.emplace(setting->Id(), widget); } diff --git a/src/yuzu/configuration/configure_post_processing.cpp b/src/yuzu/configuration/configure_post_processing.cpp deleted file mode 100644 index 659c3618f2..0000000000 --- a/src/yuzu/configuration/configure_post_processing.cpp +++ /dev/null @@ -1,517 +0,0 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - -#include -#include -#include - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -#include "common/settings.h" -#include "video_core/post_processing/fx_chain.h" -#include "video_core/post_processing/fx_effect.h" -#include "video_core/post_processing/fx_preset.h" -#include "yuzu/configuration/configure_post_processing.h" - -namespace { - -std::array CurrentValue(int index, const VideoCore::FxUniformDesc& uniform) { - auto& chain = VideoCore::FxChain::Instance(); - if (chain.HasValue(static_cast(index), uniform.name)) { - return chain.GetValue(static_cast(index), uniform.name); - } - return uniform.default_value; -} - -int SliderSteps(const VideoCore::FxUniformDesc& uniform) { - const float span = uniform.ui_max - uniform.ui_min; - const int steps = static_cast(std::lround(span / uniform.ui_step)); - if (steps < 1) { - return 1; - } - return steps; -} - -QString FormatValue(const VideoCore::FxUniformDesc& uniform, float value) { - if (uniform.kind == VideoCore::FxUniformKind::Floating) { - return QString::number(value, 'f', 3); - } - return QString::number(static_cast(std::lround(value))); -} - -QString SlotLabel(const VideoCore::FxEffectDesc& effect, const std::string& technique) { - const QString name = QString::fromStdString(effect.label); - if (effect.techniques.size() == 1) { - return name; - } - return name + QStringLiteral(" · ") + QString::fromStdString(technique); -} - -} // Anonymous namespace - -ConfigurePostProcessing::ConfigurePostProcessing(QWidget* parent) : QDialog(parent) { - setWindowTitle(tr("Post-Processing Effects")); - setMinimumWidth(560); - setMinimumHeight(460); - - auto* root = new QVBoxLayout(this); - - auto* description = - new QLabel(tr("Changes apply immediately while a game is running."), this); - description->setWordWrap(true); - root->addWidget(description); - - enabled_box = new QCheckBox(tr("Enable post-processing"), this); - enabled_box->setChecked(Settings::values.post_shader_enabled.GetValue()); - connect(enabled_box, &QCheckBox::toggled, this, [](bool checked) { - Settings::values.post_shader_enabled.SetValue(checked); - }); - root->addWidget(enabled_box); - - auto* preset_row = new QHBoxLayout(); - preset_row->addWidget(new QLabel(tr("Preset:"), this)); - - preset_combo = new QComboBox(this); - preset_row->addWidget(preset_combo, 1); - - auto* apply_button = new QPushButton(tr("Apply"), this); - connect(apply_button, &QPushButton::clicked, this, [this]() { - const QString name = preset_combo->currentData().toString(); - if (name.isEmpty()) { - return; - } - VideoCore::ApplyFxPreset(name.toStdString()); - ApplyStructuralChange(); - }); - preset_row->addWidget(apply_button); - - auto* reset_button = new QPushButton(tr("Reset Values"), this); - reset_button->setToolTip(tr("Return every effect to the values the preset ships with.")); - connect(reset_button, &QPushButton::clicked, this, [this]() { - const std::string active = VideoCore::GetActiveFxPreset(); - if (active.empty()) { - return; - } - VideoCore::ApplyFxPreset(active); - ApplyStructuralChange(); - }); - preset_row->addWidget(reset_button); - - auto* save_button = new QPushButton(tr("Save As..."), this); - connect(save_button, &QPushButton::clicked, this, [this]() { - bool accepted = false; - const QString name = - QInputDialog::getText(this, tr("Save Preset"), tr("Preset name:"), QLineEdit::Normal, - QString(), &accepted); - if (!accepted || name.trimmed().isEmpty()) { - return; - } - VideoCore::SaveFxPreset(name.trimmed().toStdString(), std::string()); - PopulatePresetCombo(); - RefreshPresetStatus(); - }); - preset_row->addWidget(save_button); - - auto* clear_button = new QPushButton(tr("Clear"), this); - clear_button->setToolTip(tr("Remove every effect in use and deselect the preset.")); - connect(clear_button, &QPushButton::clicked, this, [this]() { - VideoCore::FxChain::Instance().Clear(); - VideoCore::SetActiveFxPreset(std::string()); - preset_combo->setCurrentIndex(0); - ApplyStructuralChange(); - }); - preset_row->addWidget(clear_button); - - root->addLayout(preset_row); - - preset_status = new QLabel(this); - preset_status->setWordWrap(true); - root->addWidget(preset_status); - - auto* scroll = new QScrollArea(this); - scroll->setWidgetResizable(true); - slots_container = new QWidget(scroll); - slots_layout = new QVBoxLayout(slots_container); - slots_layout->setAlignment(Qt::AlignTop); - scroll->setWidget(slots_container); - root->addWidget(scroll, 1); - - auto* actions = new QHBoxLayout(); - - auto* add_button = new QPushButton(tr("Add Effect"), this); - auto* add_menu = new QMenu(add_button); - for (const auto& effect : VideoCore::GetFxCatalog()) { - if (!effect.Valid()) { - continue; - } - for (const auto& technique : effect.techniques) { - QAction* action = add_menu->addAction(SlotLabel(effect, technique)); - action->setToolTip(QString::fromStdString(effect.description)); - const std::string file = effect.file; - const std::string name = technique; - connect(action, &QAction::triggered, this, [this, file, name]() { - VideoCore::FxChain::Instance().Append(file, name); - ApplyStructuralChange(); - }); - } - } - add_button->setMenu(add_menu); - actions->addWidget(add_button); - - actions->addStretch(); - root->addLayout(actions); - - auto* buttons = new QDialogButtonBox(QDialogButtonBox::Close, this); - connect(buttons, &QDialogButtonBox::rejected, this, &QDialog::close); - root->addWidget(buttons); - - VideoCore::ReloadFxCatalog(); - VideoCore::ReloadFxPresetCatalog(); - VideoCore::FxChain::Instance().LoadFromSettings(); - VideoCore::FxChain::Instance().DropUnknownEntries(); - PopulatePresetCombo(); - RebuildRows(); - RefreshPresetStatus(); -} - -ConfigurePostProcessing::~ConfigurePostProcessing() = default; - -void ConfigurePostProcessing::ApplyStructuralChange() { - VideoCore::FxChain::Instance().StoreToSettings(); - RebuildRows(); - RefreshPresetStatus(); -} - -void ConfigurePostProcessing::PopulatePresetCombo() { - const QString previous = preset_combo->currentData().toString(); - preset_combo->clear(); - preset_combo->addItem(tr("None"), QString()); - - for (const auto& preset : VideoCore::GetFxPresetCatalog()) { - const QString name = QString::fromStdString(preset.name); - preset_combo->addItem(name, name); - preset_combo->setItemData(preset_combo->count() - 1, - QString::fromStdString(preset.description), Qt::ToolTipRole); - } - - const int restored = preset_combo->findData(previous); - if (!previous.isEmpty() && restored >= 0) { - preset_combo->setCurrentIndex(restored); - return; - } - - const int active = preset_combo->findData(QString::fromStdString(VideoCore::GetActiveFxPreset())); - if (active >= 0) { - preset_combo->setCurrentIndex(active); - return; - } - - preset_combo->setCurrentIndex(0); -} - -void ConfigurePostProcessing::RefreshPresetStatus() { - const std::string active = VideoCore::GetActiveFxPreset(); - if (active.empty()) { - if (VideoCore::FxChain::Instance().Size() == 0) { - preset_status->setText( - tr("No effects in use. Pick a preset and press Apply, or add effects one " - "by one.")); - return; - } - preset_status->setText(tr("Custom chain. Pick a preset above and press Apply to replace it.")); - return; - } - - if (VideoCore::IsActiveFxPresetModified()) { - preset_status->setText( - tr("Active preset: %1 (modified). Press Reset Values to go back to how it ships.") - .arg(QString::fromStdString(active))); - return; - } - - preset_status->setText(tr("Active preset: %1").arg(QString::fromStdString(active))); -} - -void ConfigurePostProcessing::PopulateEffectCombo(QComboBox* combo, - const VideoCore::FxChainEntry& entry) const { - combo->clear(); - int selected = -1; - - for (const auto& effect : VideoCore::GetFxCatalog()) { - if (!effect.Valid()) { - continue; - } - for (const auto& technique : effect.techniques) { - const QString key = QString::fromStdString(effect.file + "|" + technique); - combo->addItem(SlotLabel(effect, technique), key); - combo->setItemData(combo->count() - 1, QString::fromStdString(effect.description), - Qt::ToolTipRole); - if (effect.file == entry.file && technique == entry.technique) { - selected = combo->count() - 1; - } - } - } - - if (selected >= 0) { - combo->setCurrentIndex(selected); - } -} - -void ConfigurePostProcessing::BuildUniformWidget(QWidget* parent, QVBoxLayout* layout, int index, - const VideoCore::FxUniformDesc& uniform) { - const auto value = CurrentValue(index, uniform); - const QString label = QString::fromStdString(uniform.label); - - if (uniform.ui_type == VideoCore::FxUiType::CheckBox) { - auto* box = new QCheckBox(label, parent); - box->setChecked(value[0] != 0.0f); - if (!uniform.tooltip.empty()) { - box->setToolTip(QString::fromStdString(uniform.tooltip)); - } - const std::string name = uniform.name; - connect(box, &QCheckBox::toggled, this, [index, name](bool checked) { - std::array next{}; - if (checked) { - next[0] = 1.0f; - } - VideoCore::FxChain::Instance().SetValue(static_cast(index), name, next); - VideoCore::FxChain::Instance().StoreToSettings(); - }); - layout->addWidget(box); - return; - } - - if (uniform.ui_type == VideoCore::FxUiType::Combo || - uniform.ui_type == VideoCore::FxUiType::Radio) { - auto* row = new QHBoxLayout(); - row->addWidget(new QLabel(label, parent)); - auto* combo = new QComboBox(parent); - for (size_t i = 0; i < uniform.items.size(); ++i) { - combo->addItem(QString::fromStdString(uniform.items[i]), static_cast(i)); - } - if (combo->count() == 0) { - combo->addItem(tr("Enabled"), 1); - combo->addItem(tr("Disabled"), 0); - } - const int current = static_cast(std::lround(value[0])); - if (current >= 0 && current < combo->count()) { - combo->setCurrentIndex(current); - } - if (!uniform.tooltip.empty()) { - combo->setToolTip(QString::fromStdString(uniform.tooltip)); - } - const std::string name = uniform.name; - connect(combo, &QComboBox::currentIndexChanged, this, [index, name](int selected) { - std::array next{}; - next[0] = static_cast(selected); - VideoCore::FxChain::Instance().SetValue(static_cast(index), name, next); - VideoCore::FxChain::Instance().StoreToSettings(); - }); - row->addWidget(combo, 1); - layout->addLayout(row); - return; - } - - auto* grid = new QGridLayout(); - for (unsigned component = 0; component < uniform.components; ++component) { - QString component_label = label; - if (uniform.components > 1) { - component_label = label + QStringLiteral(" [%1]").arg(component); - } - - auto* name_label = new QLabel(component_label, parent); - auto* value_label = new QLabel(parent); - value_label->setMinimumWidth(64); - value_label->setAlignment(Qt::AlignRight | Qt::AlignVCenter); - value_label->setText(FormatValue(uniform, value[component])); - - auto* slider = new QSlider(Qt::Horizontal, parent); - slider->setMinimum(0); - slider->setMaximum(SliderSteps(uniform)); - slider->setValue( - static_cast(std::lround((value[component] - uniform.ui_min) / uniform.ui_step))); - if (!uniform.tooltip.empty()) { - slider->setToolTip(QString::fromStdString(uniform.tooltip)); - } - - const std::string name = uniform.name; - const auto desc = uniform; - connect(slider, &QSlider::valueChanged, this, - [index, name, desc, component, value_label](int steps) { - auto next = CurrentValue(index, desc); - next[component] = desc.ui_min + static_cast(steps) * desc.ui_step; - VideoCore::FxChain::Instance().SetValue(static_cast(index), name, next); - VideoCore::FxChain::Instance().StoreToSettings(); - value_label->setText(FormatValue(desc, next[component])); - }); - - grid->addWidget(name_label, static_cast(component), 0); - grid->addWidget(slider, static_cast(component), 1); - grid->addWidget(value_label, static_cast(component), 2); - } - layout->addLayout(grid); -} - -QWidget* ConfigurePostProcessing::BuildSlot(int index, const VideoCore::FxChainEntry& entry) { - auto* group = new QFrame(slots_container); - group->setObjectName(QStringLiteral("fxSlot")); - group->setStyleSheet(QStringLiteral( - "QFrame#fxSlot { background-color: palette(alternate-base);" - " border: 1px solid palette(mid); border-radius: 6px; }")); - auto* layout = new QVBoxLayout(group); - - auto* header = new QHBoxLayout(); - - auto* toggle = new QToolButton(group); - toggle->setArrowType(Qt::RightArrow); - toggle->setAutoRaise(true); - toggle->setCheckable(true); - header->addWidget(toggle); - - auto* combo = new QComboBox(group); - PopulateEffectCombo(combo, entry); - connect(combo, &QComboBox::currentIndexChanged, this, [this, index, combo](int) { - const QString key = combo->currentData().toString(); - const qsizetype separator = key.indexOf(QLatin1Char('|')); - if (separator < 0) { - return; - } - VideoCore::FxChain::Instance().Replace(static_cast(index), - key.left(separator).toStdString(), - key.mid(separator + 1).toStdString()); - ApplyStructuralChange(); - }); - header->addWidget(combo, 1); - - auto* up_button = new QToolButton(group); - up_button->setText(QStringLiteral("▲")); - up_button->setEnabled(index > 0); - connect(up_button, &QToolButton::clicked, this, [this, index]() { - VideoCore::FxChain::Instance().Move(static_cast(index), -1); - ApplyStructuralChange(); - }); - header->addWidget(up_button); - - auto* down_button = new QToolButton(group); - down_button->setText(QStringLiteral("▼")); - down_button->setEnabled(static_cast(index) + 1 < VideoCore::FxChain::Instance().Size()); - connect(down_button, &QToolButton::clicked, this, [this, index]() { - VideoCore::FxChain::Instance().Move(static_cast(index), 1); - ApplyStructuralChange(); - }); - header->addWidget(down_button); - - auto* reset_button = new QToolButton(group); - reset_button->setText(QStringLiteral("⟲")); - reset_button->setToolTip(tr("Reset to defaults")); - connect(reset_button, &QToolButton::clicked, this, [this, index]() { - VideoCore::FxChain::Instance().ResetValues(static_cast(index)); - ApplyStructuralChange(); - }); - header->addWidget(reset_button); - - auto* remove_button = new QToolButton(group); - remove_button->setText(QStringLiteral("✕")); - connect(remove_button, &QToolButton::clicked, this, [this, index]() { - VideoCore::FxChain::Instance().Remove(static_cast(index)); - ApplyStructuralChange(); - }); - header->addWidget(remove_button); - - layout->addLayout(header); - - auto* body = new QWidget(group); - auto* body_layout = new QVBoxLayout(body); - body_layout->setContentsMargins(0, 0, 0, 0); - body->setVisible(false); - layout->addWidget(body); - - connect(toggle, &QToolButton::toggled, this, [toggle, body](bool open) { - body->setVisible(open); - if (open) { - toggle->setArrowType(Qt::DownArrow); - } else { - toggle->setArrowType(Qt::RightArrow); - } - }); - - const VideoCore::FxEffectDesc* effect = VideoCore::FindFxEffect(entry.file); - if (effect == nullptr) { - auto* missing = - new QLabel(tr("Effect '%1' was not found.").arg(QString::fromStdString(entry.file)), - group); - missing->setWordWrap(true); - body_layout->addWidget(missing); - return group; - } - - if (!effect->error.empty()) { - auto* failed = new QLabel( - tr("Effect failed to compile:\n%1").arg(QString::fromStdString(effect->error)), group); - failed->setWordWrap(true); - body_layout->addWidget(failed); - return group; - } - - std::string current_category; - for (const auto& uniform : effect->uniforms) { - if (uniform.category != current_category) { - current_category = uniform.category; - if (!current_category.empty()) { - auto* category = new QLabel(QString::fromStdString(current_category), group); - category->setStyleSheet(QStringLiteral("font-weight: bold;")); - body_layout->addWidget(category); - } - } - BuildUniformWidget(body, body_layout, index, uniform); - } - - return group; -} - -void ConfigurePostProcessing::RebuildRows() { - QLayoutItem* item = nullptr; - while ((item = slots_layout->takeAt(0)) != nullptr) { - if (item->widget() != nullptr) { - item->widget()->deleteLater(); - } - delete item; - } - - bool has_usable = false; - for (const auto& effect : VideoCore::GetFxCatalog()) { - if (effect.Valid()) { - has_usable = true; - break; - } - } - - if (!has_usable) { - auto* empty = new QLabel( - tr("No usable ReShade FX effects were found. Place .fx files in the post_shaders " - "folder."), - slots_container); - empty->setWordWrap(true); - slots_layout->addWidget(empty); - return; - } - - const auto entries = VideoCore::FxChain::Instance().Entries(); - for (size_t i = 0; i < entries.size(); ++i) { - slots_layout->addWidget(BuildSlot(static_cast(i), entries[i])); - } -} diff --git a/src/yuzu/configuration/configure_post_processing.h b/src/yuzu/configuration/configure_post_processing.h deleted file mode 100644 index 5873bbaa01..0000000000 --- a/src/yuzu/configuration/configure_post_processing.h +++ /dev/null @@ -1,42 +0,0 @@ -// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - -#pragma once - -#include - -class QCheckBox; -class QComboBox; -class QLabel; -class QVBoxLayout; -class QWidget; - -namespace VideoCore { -struct FxChainEntry; -struct FxEffectDesc; -struct FxUniformDesc; -} - -class ConfigurePostProcessing : public QDialog { - Q_OBJECT - -public: - explicit ConfigurePostProcessing(QWidget* parent = nullptr); - ~ConfigurePostProcessing() override; - -private: - void RebuildRows(); - QWidget* BuildSlot(int index, const VideoCore::FxChainEntry& entry); - void BuildUniformWidget(QWidget* parent, QVBoxLayout* layout, int index, - const VideoCore::FxUniformDesc& uniform); - void PopulateEffectCombo(QComboBox* combo, const VideoCore::FxChainEntry& entry) const; - void ApplyStructuralChange(); - void PopulatePresetCombo(); - void RefreshPresetStatus(); - - QVBoxLayout* slots_layout{}; - QWidget* slots_container{}; - QComboBox* preset_combo{}; - QLabel* preset_status{}; - QCheckBox* enabled_box{}; -}; diff --git a/src/yuzu/configuration/shared_widget.cpp b/src/yuzu/configuration/shared_widget.cpp index 5e8e04be58..0f59ee23a6 100644 --- a/src/yuzu/configuration/shared_widget.cpp +++ b/src/yuzu/configuration/shared_widget.cpp @@ -140,12 +140,7 @@ QWidget* Widget::CreateCombobox(std::function& serializer, if (combobox_enumerations.contains(type)) { enumeration = &combobox_enumerations.at(type); for (const auto& [id, name] : *enumeration) { - if (type == Settings::EnumMetadata::Index() && - id == static_cast(Settings::AppletMode::Disabled) && - setting.Id() != Settings::values.controller_applet_mode.Id()) { - continue; - } - combobox->addItem(name, id); + combobox->addItem(name); } } else { return combobox; @@ -163,8 +158,9 @@ QWidget* Widget::CreateCombobox(std::function& serializer, const u32 setting_value = std::strtoul(setting.ToString().c_str(), nullptr, 0); combobox->setCurrentIndex(find_index(setting_value)); - serializer = [this]() { - return std::to_string(combobox->currentData().toUInt()); + serializer = [this, enumeration]() { + int current = combobox->currentIndex(); + return std::to_string(enumeration->at(current).first); }; restore_func = [this, find_index]() { diff --git a/src/yuzu/game/common.h b/src/yuzu/game/common.h index 063733e8d8..03505d6313 100644 --- a/src/yuzu/game/common.h +++ b/src/yuzu/game/common.h @@ -12,29 +12,25 @@ namespace Yuzu { inline bool ContainsAllWords(const QString& haystack, const QString& userinput) { const QStringList userinput_split = userinput.split(QLatin1Char{' '}, Qt::SkipEmptyParts); - return std::all_of(userinput_split.begin(), userinput_split.end(), [&haystack](const QString& s) { - return haystack.contains(s); - }); + return std::all_of(userinput_split.begin(), userinput_split.end(), + [&haystack](const QString& s) { return haystack.contains(s); }); } inline bool FilterMatches(const QString& filter, const QStandardItem* item) { if (filter.isEmpty()) return true; - auto const sluggify = [](const QString& s) { - QString o(s.normalized(QString::NormalizationForm_D).toLower()); - return o.replace(QRegularExpression(QStringLiteral("[^a-z\\s]")), QStringLiteral("")); - }; - - const auto norm_filter = sluggify(filter); const auto program_id = item->data(GameListItemPath::ProgramIdRole).toULongLong(); - const QString file_path = sluggify(item->data(GameListItemPath::FullPathRole).toString()); - const QString file_title = sluggify(item->data(GameListItemPath::TitleRole).toString()); + + const QString file_path = item->data(GameListItemPath::FullPathRole).toString().toLower(); + const QString file_title = item->data(GameListItemPath::TitleRole).toString().toLower(); const QString file_program_id = QStringLiteral("%1").arg(program_id, 16, 16, QLatin1Char{'0'}); - const QString file_name = sluggify(file_path.mid(file_path.lastIndexOf(QLatin1Char{'/'}) + 1) + QLatin1Char{' '} + file_title); - return (ContainsAllWords(file_name, norm_filter) - || ContainsAllWords(file_title, norm_filter)) - || (file_program_id.size() == 16 && file_program_id.contains(norm_filter)); + + const QString file_name = + file_path.mid(file_path.lastIndexOf(QLatin1Char{'/'}) + 1) + QLatin1Char{' '} + file_title; + + return Yuzu::ContainsAllWords(file_name, filter) || + (file_program_id.size() == 16 && file_program_id.contains(filter)); } } // namespace Yuzu diff --git a/src/yuzu/main.ui b/src/yuzu/main.ui index 92b725fa11..13ded52cc0 100644 --- a/src/yuzu/main.ui +++ b/src/yuzu/main.ui @@ -148,7 +148,6 @@ - @@ -605,11 +604,6 @@ Show &Performance Overlay - - - Post-Processing &Shaders... - - true diff --git a/src/yuzu/main_window.cpp b/src/yuzu/main_window.cpp index ad76e5b2db..9a167e18f7 100644 --- a/src/yuzu/main_window.cpp +++ b/src/yuzu/main_window.cpp @@ -3,7 +3,6 @@ // Static Qt on macOS doesn't use Vulkan // Other platforms do, and thus have conflicting VulkanMemoryAllocator symbols -#include "core/launch_params.h" #if defined(QT_STATICPLUGIN) && !defined(__APPLE__) #undef VMA_IMPLEMENTATION #endif @@ -14,10 +13,6 @@ #include "common/settings_enums.h" #include "frontend_common/settings_generator.h" #include "render/performance_overlay.h" -#ifdef HAS_RESHADE -#include "configuration/configure_post_processing.h" -#include "video_core/post_processing/fx_preset.h" -#endif #include "updater/update_dialog.h" #include "common/fs/ryujinx_compat.h" @@ -516,28 +511,79 @@ MainWindow::MainWindow(bool has_broken_vulkan) // to prevent the UI from blowing up. UpdateUITheme(); - if (QStringList args = QApplication::arguments(); args.size() >= 2) { - QList qba{}; - for (auto const& e : args) - qba.push_back(e.toUtf8()); - std::vector args_cstr{}; - for (auto& e : qba) - args_cstr.push_back(e.data()); + QStringList args = QApplication::arguments(); - auto const lp = Core::ParseLaunchParams(*QtCommon::system, args_cstr.size(), args_cstr.data(), nullptr); + if (args.size() < 2) { + return; + } - // Override fullscreen setting if gamepath or argument is provided - if (!lp.filepath.empty() || lp.fullscreen) { - ui->action_Fullscreen->setChecked(lp.fullscreen); + QString game_path; + bool should_launch_qlaunch = false; + bool should_launch_hlaunch = false; + bool should_launch_setup = false; + bool has_gamepath = false; + bool is_fullscreen = false; + + // Preserves drag/drop functionality + for (int i = 1; i < args.size(); ++i) { + if (args[i] == QStringLiteral("-f")) { + // Launch game in fullscreen mode + is_fullscreen = true; + } else if (args[i] == QStringLiteral("-u") && i < args.size() - 1) { + // Launch game with a specific user + int user_arg_idx = ++i; + bool argument_ok; + std::size_t selected_user = args[user_arg_idx].toUInt(&argument_ok); + if (!argument_ok) { + // try to look it up by username, only finds the first username that matches. + std::string const user_arg_str = args[user_arg_idx].toStdString(); + auto const user_idx = + QtCommon::system->GetProfileManager().GetUserIndex(user_arg_str); + if (user_idx != std::nullopt) { + selected_user = user_idx.value(); + } else { + LOG_ERROR(Frontend, "Invalid user argument '{}'", user_arg_str); + continue; + } + } + if (QtCommon::system->GetProfileManager().UserExistsIndex(selected_user)) { + Settings::values.current_user = s32(selected_user); + user_flag_cmd_line = true; + } else { + LOG_ERROR(Frontend, "Selected user {} doesn't exist", selected_user); + } + } else if (args[i] == QStringLiteral("-g") && i < args.size() - 1) { + // Launch game at path + game_path = args[++i]; + has_gamepath = true; + } else if (args[i] == QStringLiteral("-input-profile") && i < args.size() - 1) { + auto& players = Settings::values.players.GetValue(); + players[0].profile_name = args[++i].toStdString(); + } else if (args[i] == QStringLiteral("-qlaunch")) { + should_launch_qlaunch = true; + } else if (args[i] == QStringLiteral("-hlaunch")) { + should_launch_hlaunch = true; + } else if (args[i] == QStringLiteral("-setup")) { + should_launch_setup = true; + } else { + game_path = args[i]; + has_gamepath = true; } + } - if (!lp.filepath.empty()) { - BootGame(QString::fromStdString(lp.filepath), ApplicationAppletParameters()); - } else if (lp.launch_setup) { - LaunchFirmwareApplet(u64(Service::AM::AppletProgramId::Starter), std::nullopt); - } else if (lp.launch_qlaunch) { + // Override fullscreen setting if gamepath or argument is provided + if (has_gamepath || is_fullscreen) { + ui->action_Fullscreen->setChecked(is_fullscreen); + } + + if (should_launch_setup) { + LaunchFirmwareApplet(u64(Service::AM::AppletProgramId::Starter), std::nullopt); + } else { + if (!game_path.isEmpty()) { + BootGame(game_path, ApplicationAppletParameters()); + } else if (should_launch_qlaunch) { LaunchFirmwareApplet(u64(Service::AM::AppletProgramId::QLaunch), std::nullopt); - } else if (lp.launch_hlaunch) { + } else if (should_launch_hlaunch) { std::filesystem::path const sd_dir = Common::FS::GetEdenPathString(Common::FS::EdenPath::SDMCDir); auto const hbl_path = (sd_dir / "atmosphere" / "hbl.nsp").string(); @@ -1041,41 +1087,6 @@ void MainWindow::InitializeWidgets() { statusBar()->insertPermanentWidget(0, volume_button); -#ifdef HAS_RESHADE - post_shader_status_button = new QPushButton(); - post_shader_status_button->setObjectName(QStringLiteral("TogglableStatusBarButton")); - post_shader_status_button->setFocusPolicy(Qt::NoFocus); - post_shader_status_button->setCheckable(true); - connect(post_shader_status_button, &QPushButton::clicked, this, [this] { - const bool enabled = Settings::values.post_shader_enabled.GetValue(); - Settings::values.post_shader_enabled.SetValue(!enabled); - UpdatePostShaderText(); - }); - UpdatePostShaderText(); - post_shader_status_button->setContextMenuPolicy(Qt::CustomContextMenu); - connect(post_shader_status_button, &QPushButton::customContextMenuRequested, - [this](const QPoint& menu_location) { - QMenu context_menu; - - for (auto const& preset : VideoCore::GetFxPresetCatalog()) { - context_menu.addAction(QString::fromStdString(preset.name), - [this, name = preset.name] { - VideoCore::ApplyFxPreset(name); - Settings::values.post_shader_enabled.SetValue(true); - UpdatePostShaderText(); - }); - } - - context_menu.addSeparator(); - context_menu.addAction(tr("Configure Effects..."), this, - &MainWindow::OnPostProcessingShaders); - - context_menu.exec(post_shader_status_button->mapToGlobal(menu_location)); - post_shader_status_button->repaint(); - }); - statusBar()->insertPermanentWidget(0, post_shader_status_button); -#endif - // setup AA button aa_status_button = new QPushButton(); aa_status_button->setObjectName(QStringLiteral("TogglableStatusBarButton")); @@ -1506,11 +1517,6 @@ void MainWindow::ConnectMenuEvents() { connect_menu(ui->action_Show_Filter_Bar, &MainWindow::OnToggleFilterBar); connect_menu(ui->action_Show_Status_Bar, &MainWindow::OnToggleStatusBar); connect_menu(ui->action_Show_Performance_Overlay, &MainWindow::OnTogglePerfOverlay); -#ifdef HAS_RESHADE - connect_menu(ui->action_Post_Processing_Shaders, &MainWindow::OnPostProcessingShaders); -#else - ui->action_Post_Processing_Shaders->setVisible(false); -#endif connect_menu(ui->action_Reset_Window_Size_720, &MainWindow::ResetWindowSize720); connect_menu(ui->action_Reset_Window_Size_900, &MainWindow::ResetWindowSize900); @@ -1786,7 +1792,7 @@ bool MainWindow::LoadROM(const QString& filename, Service::AM::FrontendAppletPar QtCommon::system->SetFrontendAppletSet({ std::make_unique(*this), // Amiibo Settings - (Settings::values.controller_applet_mode.GetValue() == Settings::AppletMode::Disabled) + (UISettings::values.controller_applet_disabled.GetValue() == true) ? nullptr : std::make_unique(*this), // Controller Selector std::make_unique(*this), // Error Display @@ -2797,9 +2803,9 @@ void MainWindow::IncrementInstallProgress() { void MainWindow::OnMenuInstallToNAND() { const QString file_filter = - tr("Installable Switch File (*.nca *.nsp *.nsz *.xci *.xcz);;Nintendo Content Archive " - "(*.nca);;Nintendo Submission Package (*.nsp *.nsz);;NX Cartridge " - "Image (*.xci *.xcz)"); + tr("Installable Switch File (*.nca *.nsp *.xci);;Nintendo Content Archive " + "(*.nca);;Nintendo Submission Package (*.nsp);;NX Cartridge " + "Image (*.xci)"); QStringList filenames = QFileDialog::getOpenFileNames( this, tr("Install Files"), QString::fromStdString(UISettings::values.roms_path), @@ -2856,10 +2862,7 @@ void MainWindow::OnMenuInstallToNAND() { QFuture future; ContentManager::InstallResult result; - if (file.endsWith(QStringLiteral("nsp"), Qt::CaseInsensitive) || - file.endsWith(QStringLiteral("nsz"), Qt::CaseInsensitive) || - file.endsWith(QStringLiteral("xci"), Qt::CaseInsensitive) || - file.endsWith(QStringLiteral("xcz"), Qt::CaseInsensitive)) { + if (file.endsWith(QStringLiteral("nsp"), Qt::CaseInsensitive)) { const auto progress_callback = [this](size_t size, size_t progress) { emit UpdateInstallProgress(); if (install_progress->wasCanceled()) { @@ -3664,12 +3667,12 @@ void MainWindow::OnToggleGraphicsAPI() { api = Settings::RendererBackend::OpenGL_GLSL; break; case Settings::RendererBackend::OpenGL_GLSL: + api = Settings::RendererBackend::OpenGL_GLSL; + break; + case Settings::RendererBackend::OpenGL_SPIRV: api = Settings::RendererBackend::OpenGL_GLASM; break; case Settings::RendererBackend::OpenGL_GLASM: - api = Settings::RendererBackend::OpenGL_SPIRV; - break; - case Settings::RendererBackend::OpenGL_SPIRV: api = Settings::RendererBackend::Null; break; #else @@ -3890,23 +3893,6 @@ void MainWindow::OnTogglePerfOverlay() { perf_overlay->setVisible(ui->action_Show_Performance_Overlay->isChecked()); } -#ifdef HAS_RESHADE -void MainWindow::OnPostProcessingShaders() { - if (post_processing_dialog == nullptr) { - post_processing_dialog = new ConfigurePostProcessing(this); - connect(post_processing_dialog, &QDialog::finished, post_processing_dialog, [this]() { - post_processing_dialog->deleteLater(); - post_processing_dialog = nullptr; - UpdatePostShaderText(); - }); - } - - post_processing_dialog->show(); - post_processing_dialog->raise(); - post_processing_dialog->activateWindow(); -} -#endif - void MainWindow::OnGameListRefresh() { // Resets metadata cache and reloads QtCommon::Game::ResetMetadata(false); @@ -4252,26 +4238,6 @@ void MainWindow::UpdateAAText() { : aa_text.toUpper()); } -#ifdef HAS_RESHADE -void MainWindow::UpdatePostShaderText() { - const bool enabled = Settings::values.post_shader_enabled.GetValue(); - post_shader_status_button->setChecked(enabled); - - if (!enabled) { - post_shader_status_button->setText(tr("NO FX")); - return; - } - - const std::string preset = VideoCore::GetActiveFxPreset(); - if (preset.empty()) { - post_shader_status_button->setText(tr("FX")); - return; - } - - post_shader_status_button->setText(QString::fromStdString(preset).toUpper()); -} -#endif - void MainWindow::UpdateVolumeUI() { const auto volume_value = static_cast(Settings::values.volume.GetValue()); volume_slider->setValue(volume_value); diff --git a/src/yuzu/main_window.h b/src/yuzu/main_window.h index 8aedeec721..693f16b598 100644 --- a/src/yuzu/main_window.h +++ b/src/yuzu/main_window.h @@ -56,9 +56,6 @@ class QSlider; class QHBoxLayout; class WaitTreeWidget; class PerformanceOverlay; -#ifdef HAS_RESHADE -class ConfigurePostProcessing; -#endif enum class GameListOpenTarget; enum class DumpRomFSTarget; class GameListPlaceholder; @@ -394,9 +391,6 @@ private slots: void OnToggleFilterBar(); void OnToggleStatusBar(); void OnTogglePerfOverlay(); -#ifdef HAS_RESHADE - void OnPostProcessingShaders(); -#endif void OnGameListRefresh(); void InitializeHotkeys(); void ToggleFullscreen(); @@ -448,7 +442,6 @@ private: void UpdateAPIText(); void UpdateFilterText(); void UpdateAAText(); - void UpdatePostShaderText(); void UpdateVolumeUI(); void UpdateStatusBar(); void UpdateGPUAccuracyButton(); @@ -502,9 +495,6 @@ private: QTimer shutdown_timer; OverlayDialog* shutdown_dialog{}; PerformanceOverlay* perf_overlay = nullptr; -#ifdef HAS_RESHADE - ConfigurePostProcessing* post_processing_dialog = nullptr; -#endif GameListPlaceholder* game_list_placeholder = nullptr; @@ -525,7 +515,6 @@ private: QPushButton* dock_status_button = nullptr; QPushButton* filter_status_button = nullptr; QPushButton* aa_status_button = nullptr; - QPushButton* post_shader_status_button = nullptr; VolumeButton* volume_button = nullptr; QWidget* volume_popup = nullptr; QSlider* volume_slider = nullptr; diff --git a/src/yuzu_cmd/CMakeLists.txt b/src/yuzu_cmd/CMakeLists.txt index 17a1545167..09a9bd6da1 100644 --- a/src/yuzu_cmd/CMakeLists.txt +++ b/src/yuzu_cmd/CMakeLists.txt @@ -42,6 +42,9 @@ target_link_libraries(yuzu-cmd PRIVATE common core input_common frontend_common if (ENABLE_OPENGL) target_link_libraries(yuzu-cmd PRIVATE glad) endif() +if (MSVC) + target_link_libraries(yuzu-cmd PRIVATE getopt) +endif() target_link_libraries(yuzu-cmd PRIVATE ${PLATFORM_LIBRARIES} Threads::Threads) create_resource("../../dist/eden.bmp" "yuzu_cmd/yuzu_icon.h" "yuzu_icon") diff --git a/src/yuzu_cmd/emu_window/emu_window_sdl3.cpp b/src/yuzu_cmd/emu_window/emu_window_sdl3.cpp index 950e001f81..cff2292bb2 100644 --- a/src/yuzu_cmd/emu_window/emu_window_sdl3.cpp +++ b/src/yuzu_cmd/emu_window/emu_window_sdl3.cpp @@ -37,16 +37,10 @@ EmuWindow_SDL3::EmuWindow_SDL3(InputCommon::InputSubsystem* input_subsystem_, Co SDL_SetWindowTitle(this_->render_window, title.c_str()); return 2000; }, this); - mouse_timer = SDL_AddTimer(100, [](void *userdata, SDL_TimerID, Uint32) -> Uint32 { - auto* this_ = (EmuWindow_SDL3*)userdata; - this_->input_subsystem->GetMouse()->NotifyChanged(); - return 100; - }, this); } EmuWindow_SDL3::~EmuWindow_SDL3() { SDL_RemoveTimer(titlebar_timer); - SDL_RemoveTimer(mouse_timer); system.HIDCore().UnloadInputDevices(); input_subsystem->Shutdown(); SDL_Quit(); diff --git a/src/yuzu_cmd/emu_window/emu_window_sdl3.h b/src/yuzu_cmd/emu_window/emu_window_sdl3.h index ffabaeb143..bf63b65554 100644 --- a/src/yuzu_cmd/emu_window/emu_window_sdl3.h +++ b/src/yuzu_cmd/emu_window/emu_window_sdl3.h @@ -84,9 +84,6 @@ protected: /// Periodic changer of titlebar (independent of event loop) SDL_TimerID titlebar_timer; - // Mouse resetter once it - SDL_TimerID mouse_timer; - /// Is the window still open? bool is_open = true; diff --git a/src/yuzu_cmd/yuzu.cpp b/src/yuzu_cmd/yuzu.cpp index 473a5b1014..a161418289 100644 --- a/src/yuzu_cmd/yuzu.cpp +++ b/src/yuzu_cmd/yuzu.cpp @@ -10,7 +10,6 @@ #include #include #include "common/settings_enums.h" -#include "core/launch_params.h" #ifdef __EMSCRIPTEN__ #include #endif @@ -53,6 +52,12 @@ #include "common/windows/timer_resolution.h" #endif +#undef _UNICODE +#include +#ifndef _MSC_VER +#include +#endif + #ifdef _WIN32 extern "C" { // tells Nvidia and AMD drivers to use the dedicated GPU by default on laptops with switchable @@ -62,6 +67,25 @@ __declspec(dllexport) int AmdPowerXpressRequestHighPerformance = 1; } #endif +static void PrintHelp(const char* argv0) { + std::cout << "Usage: " << argv0 + << " [options] \n" + "-c, --config Load the specified configuration file\n" + "-f, --fullscreen Start in fullscreen mode\n" + "-g, --game File path of the game to load\n" + "-h, --help Display this help and exit\n" + "-m, --multiplayer=nick:password@address:port" + " Nickname, password, address and port for multiplayer\n" + "-p, --program Pass following string as arguments to executable\n" + "-u, --user Select a specific user profile from 0 to 7\n" + "-d, --debug Run the GDB stub on a port from 1 to 65535\n" + "-v, --version Output version information and exit\n"; +} + +static void PrintVersion() { + std::cout << "Eden " << Common::g_scm_branch << " " << Common::g_scm_desc << std::endl; +} + static void OnStateChanged(const Network::RoomMember::State& state) { switch (state) { case Network::RoomMember::State::Idle: @@ -184,18 +208,168 @@ extern "C" SDL_AppResult SDL_AppInit(void **appstate, int argc, char **argv) { LOG_CRITICAL(Frontend, "Failed to get command line arguments"); return SDL_APP_FAILURE; } -#else - wchar_t **argv_w = nullptr; #endif - Core::LaunchParams lp = Core::ParseLaunchParams(state->system, argc, argv, argv_w); + std::string filepath; + std::optional config_path{}; + std::string program_args; + std::optional selected_user{}; + std::optional override_gdb_port{}; + bool use_multiplayer = false; + bool fullscreen = false; + bool force_null_render = false; + bool force_single_core = false; + std::string nickname{}; + std::string password{}; + std::string address{}; + std::string input_profile{}; + std::optional log_filter{}; + u16 port = Network::DefaultRoomPort; + + static struct option long_options[] = { + // clang-format off + {"debug", no_argument, 0, 'd'}, + {"config", required_argument, 0, 'c'}, + {"fullscreen", no_argument, 0, 'f'}, + {"help", no_argument, 0, 'h'}, + {"game", required_argument, 0, 'g'}, + {"multiplayer", required_argument, 0, 'm'}, + {"program", optional_argument, 0, 'p'}, + {"user", required_argument, 0, 'u'}, + {"version", no_argument, 0, 'v'}, + {"input-profile", no_argument, 0, 'i'}, + {"null-render", no_argument, 0, 'n'}, + {"singlecore", no_argument, 0, 's'}, + {"filter", no_argument, 0, 'x'}, + {0, 0, 0, 0}, + // clang-format on + }; + + while (optind < argc) { + int arg = getopt_long(argc, argv, "g:fhvcip::c:u:d:", long_options, &option_index); + if (arg != -1) { + switch (char(arg)) { + case 'd': + override_gdb_port = uint16_t(atoi(optarg)); + break; + case 'c': + config_path = optarg; + break; + case 'f': + fullscreen = true; + LOG_INFO(Frontend, "Starting in fullscreen mode..."); + break; + case 'h': + PrintHelp(argv[0]); + return SDL_APP_FAILURE; + case 'g': + filepath = std::string(optarg); + break; + case 'i': { + input_profile = std::string(optarg); + break; + } + case 'm': { + use_multiplayer = true; + const std::string str_arg(optarg); + // regex to check if the format is nickname:password@ip:port + // with optional :password + const std::regex re("^([^:]+)(?::(.+))?@([^:]+)(?::([0-9]+))?$"); + if (!std::regex_match(str_arg, re)) { + std::cout << "Wrong format for option --multiplayer\n"; + PrintHelp(argv[0]); + return SDL_APP_FAILURE; + } + + std::smatch match; + std::regex_search(str_arg, match, re); + ASSERT(match.size() == 5); + nickname = match[1]; + password = match[2]; + address = match[3]; + if (!match[4].str().empty()) { + port = u16(std::strtoul(match[4].str().c_str(), nullptr, 0)); + } + std::regex nickname_re("^[a-zA-Z0-9._\\- ]+$"); + if (!std::regex_match(nickname, nickname_re)) { + LOG_ERROR(Frontend, "Nickname is not valid. Must be 4 to 20 alphanumeric characters"); + return SDL_APP_FAILURE; + } + if (address.empty()) { + LOG_ERROR(Frontend, "Address to room must not be empty"); + return SDL_APP_FAILURE; + } + break; + } + case 'p': + program_args = argv[optind]; + ++optind; + break; + case 'u': + selected_user = atoi(optarg); + break; + case 'v': + PrintVersion(); + return SDL_APP_FAILURE; + case 'n': + force_null_render = true; + break; + case 's': + force_single_core = true; + break; + case 'x': + log_filter = argv[optind]; + ++optind; + break; + } + } else { +#ifdef _WIN32 + filepath = Common::UTF16ToUTF8(argv_w[optind]); +#else + filepath = argv[optind]; +#endif + optind++; + } + } + + SdlConfig config{config_path}; + + // apply the log_filter setting + // the logger was initialized before and doesn't pick up the filter on its own + Common::Log::Filter filter; + filter.ParseFilterString(log_filter.value_or(Settings::values.log_filter.GetValue())); + Common::Log::SetGlobalFilter(filter); + + if (!program_args.empty()) { + Settings::values.program_args = program_args; + } + + if (!input_profile.empty()) { + auto& players = Settings::values.players.GetValue(); + players[0].profile_name = input_profile; + } + + if (selected_user.has_value()) { + Settings::values.current_user = std::clamp(*selected_user, 0, 7); + } + + if (override_gdb_port.has_value()) { + Settings::values.use_gdbstub = true; + Settings::values.gdbstub_port = *override_gdb_port; + } + + if (force_single_core) { + Settings::values.use_multi_core = false; + } + + if (force_null_render) { + Settings::values.renderer_backend = Settings::RendererBackend::Null; + } + #ifdef _WIN32 LocalFree(argv_w); #endif - SdlConfig config{lp.config_path}; - Core::ApplyLaunchParams(lp); - - if (lp.filepath.empty()) { + if (filepath.empty()) { LOG_CRITICAL(Frontend, "Failed to load ROM: No ROM specified"); return SDL_APP_FAILURE; } @@ -212,14 +386,14 @@ extern "C" SDL_AppResult SDL_AppInit(void **appstate, int argc, char **argv) { case Settings::RendererBackend::OpenGL_GLSL: case Settings::RendererBackend::OpenGL_GLASM: case Settings::RendererBackend::OpenGL_SPIRV: - state->emu_window = std::make_unique(&input_subsystem, state->system, lp.fullscreen); + state->emu_window = std::make_unique(&input_subsystem, state->system, fullscreen); break; #endif case Settings::RendererBackend::Vulkan: - state->emu_window = std::make_unique(&input_subsystem, state->system, lp.fullscreen); + state->emu_window = std::make_unique(&input_subsystem, state->system, fullscreen); break; case Settings::RendererBackend::Null: - state->emu_window = std::make_unique(&input_subsystem, state->system, lp.fullscreen); + state->emu_window = std::make_unique(&input_subsystem, state->system, fullscreen); break; default: LOG_CRITICAL(Frontend, "Invalid renderer backend"); @@ -239,12 +413,12 @@ extern "C" SDL_AppResult SDL_AppInit(void **appstate, int argc, char **argv) { Service::AM::FrontendAppletParameters load_parameters{ .applet_id = Service::AM::AppletId::Application, }; - const Core::SystemResultStatus load_result = state->system.Load(*state->emu_window, lp.filepath, load_parameters); + const Core::SystemResultStatus load_result = state->system.Load(*state->emu_window, filepath, load_parameters); switch (load_result) { case Core::SystemResultStatus::Success: break; // Expected case case Core::SystemResultStatus::ErrorGetLoader: - LOG_CRITICAL(Frontend, "Failed to obtain loader for {}!", lp.filepath); + LOG_CRITICAL(Frontend, "Failed to obtain loader for {}!", filepath); return SDL_APP_FAILURE; case Core::SystemResultStatus::ErrorLoader: LOG_CRITICAL(Frontend, "Failed to load ROM!"); @@ -266,14 +440,14 @@ extern "C" SDL_AppResult SDL_AppInit(void **appstate, int argc, char **argv) { return SDL_APP_FAILURE; } - if (lp.use_multiplayer) { + if (use_multiplayer) { if (auto member = Network::GetRoomMember().lock()) { member->BindOnChatMessageReceived(OnMessageReceived); member->BindOnStatusMessageReceived(OnStatusMessageReceived); member->BindOnStateChanged(OnStateChanged); member->BindOnError(OnNetworkError); - LOG_DEBUG(Network, "Start connection to {}:{} with nickname {}", lp.address, lp.port, lp.nickname); - member->Join(lp.nickname, lp.address.c_str(), lp.port, 0, Network::NoPreferredIP, lp.password); + LOG_DEBUG(Network, "Start connection to {}:{} with nickname {}", address, port, nickname); + member->Join(nickname, address.c_str(), port, 0, Network::NoPreferredIP, password); } else { LOG_ERROR(Network, "Could not access RoomMember"); return SDL_APP_FAILURE; diff --git a/tools/README.md b/tools/README.md index cde6a21464..e9315e1dfb 100644 --- a/tools/README.md +++ b/tools/README.md @@ -19,6 +19,7 @@ Tools for Eden and other subprojects. When adding new scripts please use `#!/bin - `shellcheck.sh`: Ensure POSIX compliance (and syntax sanity) for all tools in this directory and subdirectories. - `llvmpipe-run.sh`: Sets environment variables needed to run any command (or Eden) with llvmpipe. - `optimize-assets.sh`: Optimizes PNG assets with OptiPng. +- `setup-cross-sysroot.sh`: Allows to quickly create a sysroot of a given system for cross compilation (experimental). - `update-cpm.sh`: Updates CPM.cmake to the latest version. - `update-icons.sh`: Rebuild all icons (macOS, Windows, bitmaps) based on the master SVG file (`dist/dev.eden_emu.eden.svg`) * Also optimizes the master SVG diff --git a/tools/setup-cross-sysroot.sh b/tools/setup-cross-sysroot.sh new file mode 100755 index 0000000000..d27ff44481 --- /dev/null +++ b/tools/setup-cross-sysroot.sh @@ -0,0 +1,86 @@ +#!/bin/sh -e +# SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project +# SPDX-License-Identifier: GPL-3.0-or-later + +die() { + echo "$@" >&2 + exit 1 +} +help() { + cat << EOF +--arch Specify the target architecture (default: ppc64) +--os Specify the OS sysroot to use (default: freebsd) +--sysroot Specify sysroot to use +EOF +} + +TARGET_ARCH="ppc64" +TARGET_OS="freebsd" +TARGET_CMAKE="$TARGET_ARCH-pc-$TARGET_OS" +BASE_DIR="$PWD" + +while true; do + case "$1" in + --arch) shift; TARGET_ARCH=$1; [ -z "$TARGET_ARCH" ] && die "Expected argument";; + --os) shift; TARGET_OS=$1; [ -z "$TARGET_OS" ] && die "Expected argument";; + --sysroot) shift; SYSROOT=$1; [ -z "$SYSROOT" ] && die "Expected argument";; + --help) help "$@";; + --*) die "Invalid option $1" ;; + "$0" | "") break;; + esac + shift +done + +[ -z "$SYSROOT" ] && SYSROOT="$HOME/opt/$TARGET_ARCH-$TARGET_OS/sysroot" +mkdir -p "$SYSROOT" && cd "$SYSROOT" +case "$TARGET_OS" in +freebsd*) + case "$TARGET_ARCH" in + ppc64pe) URL="https://download.freebsd.org/ftp/releases/powerpc/powerpc64pe/14.3-RELEASE/base.txz" break;; + ppc64le) URL="https://download.freebsd.org/ftp/releases/powerpc/powerpc64le/14.3-RELEASE/base.txz" break;; + ppc64) URL="https://download.freebsd.org/ftp/releases/powerpc/powerpc64/14.3-RELEASE/base.txz" break;; + ppc) URL="https://download.freebsd.org/ftp/releases/powerpc/powerpc/14.3-RELEASE/base.txz" break;; + amd64 | x86_64) URL="https://download.freebsd.org/ftp/releases/amd64/14.3-RELEASE/base.txz" break;; + arm64*) URL="https://download.freebsd.org/ftp/releases/arm64/$TARGET_ARCH/14.3-RELEASE/base.txz" break;; + arm*) URL="https://download.freebsd.org/ftp/releases/arm/$TARGET_ARCH/14.3-RELEASE/base.txz" break;; + *) die "Unknown arch $TARGET_ARCH" break;; + esac + [ -z "$TARGET_CMAKE" ] && TARGET_CMAKE="$TARGET_ARCH-pc-$TARGET_OS" + [ -f "base.txz" ] || fetch "$URL" || die "Can't download" + tar -xvzf base.txz + break;; +*) die "Unknown OS $TARGET_OS" break;; +esac + +[ -z "$CC" ] && CC=$(which clang) +[ -z "$CXX" ] && CXX=$(which clang++) + +TOOLCHAIN_FILE="$BASE_DIR/$TARGET_CMAKE-toolchain.cmake" +cat << EOF >"$TOOLCHAIN_FILE" +# Script to generate .cmake toolchain files :) +# See https://man.freebsd.org/cgi/man.cgi?query=cmake-toolchains&sektion=7&manpath=FreeBSD+13.2-RELEASE+and+Ports + +set(CMAKE_SYSROOT "$SYSROOT") +set(CMAKE_STAGING_PREFIX "$SYSROOT") + +set(CMAKE_C_COMPILER $CC) +set(CMAKE_CXX_COMPILER $CXX) +set(CMAKE_C_FLAGS "--target=$TARGET_CMAKE") +set(CMAKE_CXX_FLAGS "--target=$TARGET_CMAKE") + +set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) +set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY) +EOF + +# cmake \ +# -DCMAKE_TOOLCHAIN_FILE="$TOOLCHAIN_FILE" \ +# -DCMAKE_BUILD_TYPE=Release \ +# -B "build-$TARGET_CMAKE" \ +# -DDYNARMIC_TESTS=ON \ +# -DENABLE_QT=OFF \ +# -DENABLE_SDL2=OFF \ +# -DYUZU_USE_CPM=ON \ +# -DYUZU_USE_EXTERNAL_FFMPEG=ON +#cmake --build "build-$TARGET_CMAKE" dynarmic_tests -- -j8